/* All Authors page styles (UnQbdWeb2) */

/* ==============================================
   LOADING STATE
   ============================================== */

.allauthors-loading {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 7rem 2rem 3rem 2rem;
    background-color: var(--bg-color, #ffffff);
}

.allauthors-loading-spinner {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border: 5px solid rgba(0, 180, 255, 0.2);
    border-top-color: var(--primary-color, #00b4ff);
    border-radius: 50%;
    animation: allauthors-spin 0.8s linear infinite;
}

@keyframes allauthors-spin {
    to { transform: rotate(360deg); }
}

.allauthors-loading-text {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
}

/* ==============================================
   PAGE LAYOUT
   ============================================== */

.allauthors-page {
    min-height: 100vh;
    background-color: var(--bg-color, #ffffff);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.allauthors-hero {
    padding: 8rem 2rem 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color, #00b4ff) 0%, var(--secondary-color, #0174B1) 100%);
    color: white;
    text-align: center;
}

.allauthors-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.allauthors-hero-title {
    margin: 0 0 1.5rem 0;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -1px;
}

.allauthors-hero-description {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ==============================================
   AUTHORS GRID
   ============================================== */

.allauthors-grid-section {
    padding: 4rem 2rem;
}

.allauthors-container {
    max-width: 1400px;
    margin: 0 auto;
}

.allauthors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.author-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 180, 255, 0.2);
}

.author-card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 180, 255, 0.2);
}

.author-card-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4ff 0%, #0174B1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    color: white;
    font-size: 3.5rem;
}

.author-card-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.allauthors-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.allauthors-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.allauthors-empty p {
    margin: 0;
    font-size: 1.15rem;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 768px) {
    .allauthors-hero {
        padding: 7rem 1.5rem 3rem 1.5rem;
    }

    .allauthors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .author-card {
        padding: 1.5rem 1rem;
    }

    .author-card-image,
    .author-card-placeholder {
        width: 100px;
        height: 100px;
    }

    .author-card-placeholder {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .allauthors-hero {
        padding: 6.5rem 1rem 2rem 1rem;
    }

    .allauthors-grid-section {
        padding: 3rem 1rem;
    }

    .allauthors-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .author-card {
        padding: 1.25rem 0.75rem;
    }

    .author-card-name {
        font-size: 1rem;
    }
}

/* ==============================================
   DARK MODE
   ============================================== */

body.dark-mode .allauthors-page,
body.dark-mode .allauthors-loading {
    background-color: var(--bg-color, #121212);
}

body.dark-mode .allauthors-loading-text {
    color: #94a3b8;
}

body.dark-mode .author-card {
    background: rgba(30, 41, 59, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .author-card:hover {
    border-color: rgba(79, 195, 247, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

body.dark-mode .author-card-name {
    color: #e2e8f0;
}

body.dark-mode .allauthors-empty {
    color: #94a3b8;
}
