/* Author Page Styles */

.author-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Back Link */
.author-container .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.author-container .back-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.author-container .back-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Author Card */
.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .author-card {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }
}

/* Author Photo */
.author-photo-container {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .author-photo-container {
        margin-bottom: 0;
    }
}

.author-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.author-photo.photo-fallback {
    background: var(--bg-tertiary);
    padding: 2rem;
}

.author-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    border: 4px solid var(--accent-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.author-photo-placeholder svg {
    width: 80px;
    height: 80px;
}

/* Author Info */
.author-info {
    flex: 1;
}

.author-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.author-role {
    font-size: 1.1rem;
    color: var(--accent-primary);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

/* Social Links */
.author-social {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .author-social {
        justify-content: flex-start;
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.social-link.linkedin {
    background: #0077b5;
    color: white;
}

.social-link.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

/* Author Bio Section */
.author-bio-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* CSRaid Info Section */
.csraid-info-section {
    margin-bottom: 2rem;
}

.csraid-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
}

.csraid-logo {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 10px;
    color: white;
}

.csraid-logo svg {
    width: 1.5rem;
    height: 1.5rem;
}

.csraid-info {
    flex: 1;
}

.csraid-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.csraid-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.csraid-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.csraid-link svg {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.csraid-link:hover {
    color: var(--accent-hover);
}

.csraid-link:hover svg {
    transform: translateX(4px);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .author-card {
    background: var(--bg-tertiary, #1f2937);
}

[data-theme="dark"] .author-bio-section {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .csraid-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(59, 130, 246, 0.4);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .author-container {
        padding: 0.75rem;
    }

    .author-card {
        padding: 1.5rem;
    }

    .author-photo {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-role {
        font-size: 1rem;
    }

    .author-bio-section {
        padding: 1.5rem;
    }

    .csraid-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }
}
