/**
 * Author Box Frontend Styles
 * Styles for the author box displayed in blog posts
 */

/* Main Author Box Container */
.entry-author.author-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.entry-author.author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #007cba, #005a87);
}

/* Flex Layout */
.entry-author .flex-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.entry-author .flex-col.mr {
    margin-right: 0;
}

.entry-author .flex-col.flex-grow {
    flex: 1;
}

/* Author Image */
.entry-author .blog-author-image {
    position: relative;
}

.entry-author .blog-author-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-author .blog-author-image:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Author Name */
.entry-author .author-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.entry-author .author-name a {
    color: #1d2327;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-author .author-name a:hover {
    color: #007cba;
}

.entry-author .author-name.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Author Position */
.entry-author .author-position {
    font-size: 14px;
    color: #007cba;
    margin: 0 0 10px 0;
    font-style: italic;
    line-height: 1.4;
}

.entry-author .author-position strong {
    color: #005a87;
    font-weight: 600;
}

/* Author Description */
.entry-author .author-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin: 0 0 15px 0;
}

.entry-author .author-desc.small {
    font-size: 14px;
}

/* Social Links */
.entry-author .author-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.entry-author .author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #007cba;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.entry-author .author-social a:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.entry-author .author-social a[href*="facebook"] {
    background: #1877f2;
}

.entry-author .author-social a[href*="facebook"]:hover {
    background: #166fe5;
}

.entry-author .author-social a[href*="twitter"] {
    background: #1da1f2;
}

.entry-author .author-social a[href*="twitter"]:hover {
    background: #0d95e8;
}

.entry-author .author-social a[href*="linkedin"] {
    background: #0077b5;
}

.entry-author .author-social a[href*="linkedin"]:hover {
    background: #006ba1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-author.author-box {
        padding: 20px;
        margin: 20px 0;
    }
    
    .entry-author .flex-row {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .entry-author .blog-author-image {
        align-self: center;
    }
    
    .entry-author .blog-author-image img {
        width: 80px;
        height: 80px;
    }
    
    .entry-author .author-name {
        font-size: 18px;
        text-align: center;
    }
    
    .entry-author .author-position {
        text-align: center;
    }
    
    .entry-author .author-desc {
        text-align: center;
        font-size: 14px;
    }
    
    .entry-author .author-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .entry-author.author-box {
        padding: 15px;
        margin: 15px 0;
    }
    
    .entry-author .blog-author-image img {
        width: 70px;
        height: 70px;
    }
    
    .entry-author .author-name {
        font-size: 16px;
    }
    
    .entry-author .author-position {
        font-size: 13px;
    }
    
    .entry-author .author-desc {
        font-size: 13px;
    }
    
    .entry-author .author-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .entry-author.author-box {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .entry-author .author-name a {
        color: #f7fafc;
    }
    
    .entry-author .author-name a:hover {
        color: #63b3ed;
    }
    
    .entry-author .author-desc {
        color: #e2e8f0;
    }
    
    .entry-author .author-position {
        color: #63b3ed;
    }
    
    .entry-author .author-position strong {
        color: #90cdf4;
    }
}

/* Print Styles */
@media print {
    .entry-author.author-box {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .entry-author .author-social {
        display: none;
    }
    
    .entry-author .blog-author-image img {
        box-shadow: none;
    }
}

/* Animation */
.entry-author.author-box {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.entry-author .author-social a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.entry-author .author-name a:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    border-radius: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .entry-author.author-box {
        border: 2px solid #000;
        background: #fff;
    }
    
    .entry-author .author-name a {
        color: #000;
    }
    
    .entry-author .author-desc {
        color: #000;
    }
    
    .entry-author .author-social a {
        border: 2px solid #000;
    }
}
