/* ===== TOP AUTHORS PAGE ===== */
.authors-page {
    padding: 40px;
    box-sizing: border-box;
    margin-left: 260px;
    margin-top: 72px;
    transition: margin-left 0.3s ease;
}

@media (min-width: 769px) {
    body.sidebar-collapsed .authors-page {
        margin-left: 64px;
    }
}

@media (max-width: 768px) {
    .authors-page {
        margin-left: 0;
    }
}

/* Page Header */
.authors-page-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 50%, #16213e 100%);
}

.authors-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.authors-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.authors-page-header h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 14px;
    position: relative;
}

.authors-page-header h1 span {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.authors-page-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

/* Author Search */
.authors-search-wrap {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    z-index: 2;
}

.authors-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.authors-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px 14px 44px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s;
}

.authors-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.authors-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}

/* Filter Tabs */
.authors-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.authors-tab {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.authors-tab:hover,
.authors-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* Hall of Fame — Top 3 */
.authors-hof {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
    margin-bottom: 56px;
    align-items: end;
}

.hof-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.hof-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.hof-card.gold::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.hof-card.silver::before {
    background: linear-gradient(90deg, #94a3b8, #cbd5e1);
}

.hof-card.bronze::before {
    background: linear-gradient(90deg, #cd7c50, #d97706);
}

.hof-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.hof-rank-crown {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.hof-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.hof-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hof-card.gold .hof-avatar {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3);
}

.hof-card.silver .hof-avatar {
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.3);
}

.hof-card.bronze .hof-avatar {
    box-shadow: 0 0 0 4px rgba(205, 124, 80, 0.3);
}

.hof-verified {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #6366f1;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    z-index: 2;
}

.hof-name {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.hof-card.gold .hof-name {
    font-size: 20px;
}

.hof-specialty {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 20px;
}

.hof-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.hof-stat {
    text-align: center;
}

.hof-stat-number {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    display: block;
    line-height: 1;
}

.hof-stat-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 3px;
}

.hof-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 10px;
    padding: 9px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.hof-follow-btn:hover,
.hof-follow-btn.following {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Author Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.author-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.author-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
}

.author-card-avatar-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.author-card-info {
    flex: 1;
    min-width: 0;
}

.author-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-card-name .verified-icon {
    color: #6366f1;
    font-size: 13px;
    flex-shrink: 0;
}

.author-card-specialty {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 3px;
}

.author-card-rank {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

.author-card-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.author-preview-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 6px;
}

.author-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.author-mini-stat {
    text-align: center;
}

.author-mini-stat-val {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    display: block;
    line-height: 1;
}

.author-mini-stat-key {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 3px;
}

.author-card-follow-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1.5px solid #e5e7eb;
    background: transparent;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.author-card-follow-btn:hover,
.author-card-follow-btn.following {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Dark Theme */
body.dark-theme .authors-filter-tabs .authors-tab {
    background: #1e1e1e;
    border-color: #333;
    color: #d1d5db;
}

body.dark-theme .authors-tab:hover,
body.dark-theme .authors-tab.active {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

body.dark-theme .hof-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

body.dark-theme .hof-name {
    color: #f1f5f9;
}

body.dark-theme .hof-stat-number {
    color: #f1f5f9;
}

body.dark-theme .hof-stats {
    border-color: #2a2a2a;
}

body.dark-theme .hof-verified {
    border-color: #1e1e1e;
}

body.dark-theme .hof-follow-btn {
    background: #2a2a2a;
    color: #d1d5db;
}

body.dark-theme .hof-follow-btn:hover,
body.dark-theme .hof-follow-btn.following {
    background: #6366f1;
    color: #fff;
}

body.dark-theme .author-card {
    background: #1e1e1e;
    border-color: #2a2a2a;
}

body.dark-theme .author-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

body.dark-theme .author-card-name {
    color: #f1f5f9;
}

body.dark-theme .author-card-stats {
    border-color: #2a2a2a;
}

body.dark-theme .author-mini-stat-val {
    color: #f1f5f9;
}

body.dark-theme .author-preview-item {
    background: #252525;
}

body.dark-theme .author-card-follow-btn {
    background: #2a2a2a;
    border-color: #333;
    color: #d1d5db;
}

body.dark-theme .author-card-follow-btn:hover,
body.dark-theme .author-card-follow-btn.following {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .authors-hof {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .authors-page {
        padding: 20px 16px;
    }

    .authors-page-header {
        padding: 40px 20px;
    }

    .authors-page-header h1 {
        font-size: 30px;
    }

    .authors-hof {
        grid-template-columns: 1fr;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }
}