/* ===== TECHi Authors Page Styles ===== */
/* Modern, beautiful styling for the authors listing page */

/* ===== GENERAL STYLES ===== */
.authors-page-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #ffffff 50%, #f0f4f8 75%, #ffffff 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.authors-page-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.authors-page-header::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
}

.page-title-main {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.authors-page-header .page-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.authors-stats-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.stat-dot:nth-child(2) { animation-delay: 0.3s; }
.stat-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== CEO SECTION ===== */
.ceo-founder-section {
    margin-bottom: 5rem;
}

.ceo-founder-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 30%, #ffffff 70%, #f0f4f8 100%);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0, 176, 174, 0.06);
    border: 1px solid rgba(0, 176, 174, 0.08);
    position: relative;
    overflow: hidden;
}

.ceo-founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--primary-accessible));
}

.ceo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 176, 174, 0.3);
}

.ceo-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.ceo-avatar-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ceo-avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--primary-hover));
    opacity: 0.3;
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ceo-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    position: relative;
    width: fit-content;
}

.ceo-info h2 .verification-badge {
    position: absolute;
    right: -24px;
    font-size: 24px;
}

.ceo-info h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.ceo-info h2 a:hover {
    color: var(--primary-hover);
}

.ceo-designation {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ceo-meta {
    margin-bottom: 1.5rem;
}

.meta-item {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.ceo-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.ceo-founder-section .btn-primary {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.ceo-founder-section .btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: white !important;
}

/* ===== BEAUTIFUL SECTION HEADERS ===== */
.section-header-beautiful {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header-content {
    margin-bottom: 2rem;
}

.section-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 176, 174, 0.3);
    font-size: 1.5rem;
}

.section-title-beautiful {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.section-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 176, 174, 0.3);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.section-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.decoration-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    max-width: 100px;
}

.decoration-dots {
    display: flex;
    gap: 4px;
}

.decoration-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.6;
}

/* ===== AUTHOR CARDS ===== */
.author-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 50%, #ffffff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 176, 174, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 176, 174, 0.06);
    position: relative;
    height: 100%;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 176, 174, 0.08);
}

.editor-card {
    border: 2px solid rgba(0, 176, 174, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9f8 25%, #e6f7f5 50%, #f0f9f8 75%, #ffffff 100%);
    box-shadow: 0 8px 30px rgba(0, 176, 174, 0.12);
    position: relative;
    overflow: hidden;
}

.editor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover), var(--primary-accessible));
    z-index: 1;
}

.editor-card:hover {
    box-shadow: 0 20px 50px rgba(0, 176, 174, 0.18);
    transform: translateY(-6px);
}

.author-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 176, 174, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.author-avatar-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #fafbfc);
}

.editor-card .author-avatar-container {
    background: linear-gradient(135deg, #f0f9f8, #e6f7f5);
    border-bottom: 1px solid rgba(0, 176, 174, 0.1);
}

.author-avatar-link {
    display: block;
    position: relative;
}

.author-avatar {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.author-avatar-link:hover .author-avatar {
    transform: scale(1.05);
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 176, 174, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.5rem;
}

.author-avatar-link:hover .avatar-overlay {
    opacity: 1;
}

/* ===== AUTHOR INFO ===== */
.author-info {
    padding: 1.5rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.editor-card .author-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.author-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: var(--primary-color);
}

.editor-card .author-name a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 176, 174, 0.3);
}

.author-role {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.author-role::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
}

.editor-card .author-role {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    position: relative;
}

.editor-card .author-role::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 2px;
}

/* ===== RANKING BADGE ===== */
.author-ranking-badge {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.ranking-number {
    background: linear-gradient(135deg, #00b0ae, #009694);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 176, 174, 0.25);
}

/* ===== STATS GRID ===== */
.author-stats-grid {
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 8px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 176, 174, 0.03);
    padding: 4px 8px;
    border-radius: 6px;
    flex: 1;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0, 176, 174, 0.08);
}

.editor-card .stat-item {
    background: rgba(0, 176, 174, 0.08);
    border: 1px solid rgba(0, 176, 174, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 176, 174, 0.1);
}

.stat-item i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.editor-card .stat-item i {
    color: var(--primary-color);
    filter: brightness(1.1);
}

/* ===== AUTHOR BIO ===== */
.author-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ===== VIEW PROFILE BUTTON ===== */
.author-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 176, 174, 0.3);
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.author-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.author-view-btn:hover::before {
    left: 100%;
}

.author-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 176, 174, 0.4);
    color: white;
}

.editor-card .author-view-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover), var(--primary-accessible));
    box-shadow: 0 6px 20px rgba(0, 176, 174, 0.4);
    font-weight: 700;
}

/* ===== PAGINATION ===== */
.authors-pagination {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding-top: 3rem !important;
    margin-top: 4rem !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .page-title-main {
        font-size: 2.5rem;
    }

    .section-title-beautiful {
        font-size: 2rem;
    }

    .ceo-info h2 {
        font-size: 2rem;
    }

    .ceo-info h2 .verification-badge {
        font-size: 22px;
    }
}

@media (max-width: 992px) {
    .authors-page-section {
        padding: 1rem 0;
    }

    .page-title-main {
        font-size: 2rem;
    }

    .section-title-beautiful {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .ceo-founder-card {
        padding: 2rem;
    }

    .ceo-info h2 {
        font-size: 1.75rem;
    }

    .ceo-info h2 .verification-badge {
        font-size: 20px;
    }

    .ceo-avatar-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .authors-page-header {
        margin-bottom: 3rem;
    }

    .page-title-main {
        font-size: 1.75rem;
    }

    .authors-page-header .page-description {
        font-size: 1rem;
    }

    .section-header-beautiful {
        margin-bottom: 3rem;
    }

    .section-title-beautiful {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .ceo-founder-card {
        padding: 1.5rem;
    }

    .ceo-info h2 {
        font-size: 1.5rem;
    }

    .ceo-info h2 .verification-badge {
        font-size: 18px;
    }

    .ceo-avatar-img {
        width: 120px;
        height: 120px;
    }

    .author-info {
        padding: 1.25rem;
    }

    .author-name {
        font-size: 1.125rem;
    }

    .stat-item {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .section-title-beautiful {
        font-size: 1.25rem;
    }

    .ceo-founder-card {
        padding: 1rem;
    }

    .ceo-info h2 {
        font-size: 1.25rem;
    }

    .ceo-info h2 .verification-badge {
        font-size: 16px;
        right: -20px;
    }

    .ceo-avatar-img {
        width: 100px;
        height: 100px;
    }

    .author-info {
        padding: 1rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-view-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .ceo-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .author-card,
    .ceo-avatar-img,
    .author-avatar,
    .author-view-btn,
    .stat-dot,
    .avatar-glow {
        transition: none;
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .authors-page-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 25%, #f8f9fa 50%, #cbd5e0 75%, #f8f9fa 100%);
    }

    .author-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
        border-color: rgba(0, 176, 174, 0.1);
        box-shadow: 0 4px 20px rgba(0, 176, 174, 0.05);
    }

    .editor-card {
        background: linear-gradient(135deg, #ffffff 0%, #f0f8f7 30%, #ffffff 70%, #f8fbfa 100%);
        border-color: rgba(0, 176, 174, 0.15);
    }

    .page-title-main {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 50%, #718096 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .section-description,
    .ceo-bio,
    .author-bio {
        color: #4a5568;
    }

    .author-name a {
        color: #2d3748;
    }

    .stat-item {
        background: rgba(0, 176, 174, 0.05);
        border-color: rgba(0, 176, 174, 0.1);
        color: #4a5568;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .authors-page-section {
        background: white !important;
    }

    .author-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    .author-view-btn {
        display: none !important;
    }
}