/**
 * Authors Page Styles - Lyvre V3
 * Page liste des auteurs
 */

/* ==========================================
   HERO SECTION
   ========================================== */

.authors-hero {
    padding: var(--space-16) 0 var(--space-12);
    background: var(--background);
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

mark {
    background-color: hsla(48, 100%, 50%, 0.2);
    color: inherit;
    padding: 0 0.2em;
    border-radius: 0.2em;
}

.results-count {
    font-weight: 700;
    color: var(--foreground);
}

.authors-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.authors-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    color: var(--foreground);
}

.authors-hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.authors-hero-subtitle {
    font-size: var(--text-lg);
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

/* Search */
.authors-search {
    display: flex;
    gap: var(--space-3);
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .authors-search {
        flex-direction: column;
    }
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper i {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-10);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--foreground);
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px hsla(48, 100%, 50%, 0.1);
}

.search-input::placeholder {
    color: var(--muted-foreground);
}

/* ==========================================
   FEATURED AUTHORS
   ========================================== */

.authors-featured {
    padding: var(--space-12) 0;
    background: var(--background-alt);
}

.featured-authors-grid {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding-bottom: var(--space-4);
    -webkit-overflow-scrolling: touch;
}

.featured-author-card {
    flex-shrink: 0;
    width: 160px;
    padding: var(--space-6);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.featured-author-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-author-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
}

.featured-author-avatar img,
.featured-author-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.featured-author-avatar .avatar-placeholder {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.featured-author-card h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-author-stories {
    font-size: var(--text-xs);
    color: var(--muted-foreground);
}

/* ==========================================
   AUTHORS LIST
   ========================================== */

.authors-list {
    padding: var(--space-16) 0;
    background: var(--background);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1100px) {
    .authors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .authors-grid {
        grid-template-columns: 1fr;
    }
}

.author-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.author-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.author-card-header {
    position: relative;
    padding: var(--space-6);
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--background) 0%, var(--background-alt) 100%);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--card);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.author-card-header .premium-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.author-card-body {
    padding: var(--space-4) var(--space-6);
    text-align: center;
    flex: 1;
}

.author-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-1);
}

.author-username {
    font-size: var(--text-sm);
    color: var(--accent);
    margin-bottom: var(--space-3);
}

.author-bio-empty {
    font-size: var(--text-sm);
    color: var(--muted-foreground);
    font-style: italic;
    opacity: 0.7;
}

.authors-search .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--background);
    border: none;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.authors-search .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsla(48, 100%, 50%, 0.2);
}

.featured-author-card:hover h3 {
    color: var(--accent);
}

.author-card:hover .author-name {
    color: var(--accent);
}
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-4) var(--space-6);
    background: var(--background);
    border-top: 1px solid var(--border);
}

.author-stat {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--muted-foreground);
}

.author-stat i {
    color: var(--accent);
    font-size: 0.75rem;
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.authors-empty {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-xl);
}

.empty-illustration {
    width: 80px;
    height: 80px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    font-size: 2rem;
    color: var(--muted-foreground);
    opacity: 0.5;
}

.authors-empty h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.authors-empty p {
    font-size: var(--text-base);
    color: var(--muted-foreground);
    margin-bottom: var(--space-6);
}

/* ==========================================
   CTA SECTION
   ========================================== */

.authors-cta {
    padding: var(--space-20) 0;
    background: var(--background-alt);
}

.authors-cta .cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    padding: var(--space-10);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
    .authors-cta .cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--space-8);
    }
}

.authors-cta .cta-content h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.authors-cta .cta-content p {
    font-size: var(--text-base);
    color: var(--muted-foreground);
    max-width: 500px;
}

.authors-cta .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

@media (max-width: 768px) {
    .authors-cta .cta-actions {
        justify-content: center;
    }
}

.authors-cta .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--background);
    border: none;
}

.authors-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px hsla(48, 100%, 50%, 0.3);
}

/* ==========================================
   UTILITIES
   ========================================== */

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-4);
}

.section-header-left {
    margin-bottom: var(--space-8);
}

.section-header-left .section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.section-header-left .section-title i {
    color: var(--accent);
}

.section-header-left .section-subtitle {
    font-size: var(--text-base);
    color: var(--muted-foreground);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.section-header-flex .section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.section-header-flex .section-title i {
    color: var(--accent);
}

.section-header-flex .section-subtitle {
    font-size: var(--text-base);
    color: var(--muted-foreground);
}

.authors-pagination {
    margin-top: var(--space-8);
    display: flex;
    justify-content: center;
}
