/**
 * GiftCodeNgon - Author Page Styles
 * 
 * @version 1.0.0
 */

/* ================================
   Author Header (Hero)
   ================================ */
.author-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Background decoration */
.author-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.author-header-inner {
    display: flex;
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

/* Left Column: Avatar */
.author-profile-left {
    flex-shrink: 0;
}

.author-avatar-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.author-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--color-surface);
    box-shadow: var(--shadow-sm);
}

/* Right Column: Info */
.author-profile-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.author-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-role-badge {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Social Links */
.author-social-links {
    display: flex;
    gap: var(--space-2);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 18px;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-btn.threads:hover {
    background: #000000;
    border-color: #333;
}

.social-btn.x:hover {
    background: #000000;
    border-color: #333;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-btn.github:hover {
    background: #333;
    border-color: #555;
}

.social-btn.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Bio */
.author-bio {
    color: var(--color-text-secondary);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 800px;
}

.author-bio p {
    margin-bottom: var(--space-2);
}

.author-bio p:last-child {
    margin-bottom: 0;
}

/* Stats */
.author-stats {
    display: flex;
    gap: var(--space-8);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Or keep left aligned? Let's try left aligned for cleaner look with text */
    align-items: flex-start;
}

.stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
}

/* Section Heading override */
.section-heading {
    position: relative;
    padding-left: 16px;
    margin-bottom: var(--space-6);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: white;
}

.section-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-heading i {
    margin-right: 8px;
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .author-header {
        padding: var(--space-6);
    }

    .author-header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-6);
    }

    .author-meta-top {
        flex-direction: column;
        justify-content: center;
        gap: var(--space-4);
    }

    .author-title {
        flex-direction: column;
        gap: var(--space-2);
    }

    .author-social-links {
        justify-content: center;
    }

    .author-stats {
        justify-content: center;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: var(--space-4);
    }

    .stat-item {
        align-items: center;
    }
}