/* ========================================
   AUTHOR PAGE - ULTRA PREMIUM DESIGN
   Plik: author-premium.css
   Szablon: author.php
   Last updated: 2025-12-13
   ======================================== */

/* ===========================================
   0. CONTAINER FALLBACK
   =========================================== */
.author-hero .container,
.author-about .container,
.author-posts .container,
.author-empty .container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* ===========================================
   A. HERO SECTION - ULTRA PREMIUM
   =========================================== */
.author-hero {
    position: relative;
    background: linear-gradient(135deg, #06051f 0%, #0f0d35 30%, #1a1852 60%, #2d1b69 100%);
    padding: 60px 0 140px;
    overflow: hidden;
}

/* Animated gradient mesh background */
.author-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 80% at 10% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 90% 80%, rgba(255, 161, 53, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    animation: author-gradient-shift 15s ease-in-out infinite;
}

@keyframes author-gradient-shift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Floating particles effect */
.author-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 60%, rgba(255, 161, 53, 0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 50% 30%, rgba(139, 92, 246, 0.55) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 70%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 161, 53, 0.5) 0%, transparent 100%),
        radial-gradient(3px 3px at 20% 80%, rgba(139, 92, 246, 0.6) 0%, transparent 100%),
        radial-gradient(3px 3px at 80% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    animation: author-particles 20s ease-in-out infinite;
}

@keyframes author-particles {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(-15px) scale(1.02); opacity: 0.85; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* ===========================================
   A.1 ANIMATED BACKGROUND SHAPES
   =========================================== */
.author-hero__bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.author-hero__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.author-hero__shape--1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    top: -100px;
    left: -100px;
    animation: author-shape-float-1 18s ease-in-out infinite;
}

.author-hero__shape--2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ffa135 0%, #f59e0b 100%);
    top: 50%;
    right: -80px;
    animation: author-shape-float-2 22s ease-in-out infinite;
}

.author-hero__shape--3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    bottom: -50px;
    left: 30%;
    animation: author-shape-float-3 20s ease-in-out infinite;
}

@keyframes author-shape-float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(10deg); }
    66% { transform: translate(-20px, 30px) rotate(-5deg); }
}

@keyframes author-shape-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, -30px) scale(1.1); }
}

@keyframes author-shape-float-3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -40px); }
}

/* Glowing orbs */
.author-hero__orb {
    position: absolute;
    border-radius: 50%;
}

.author-hero__orb--1 {
    width: 12px;
    height: 12px;
    background: #ffa135;
    box-shadow: 0 0 20px 10px rgba(255, 161, 53, 0.4);
    top: 25%;
    left: 15%;
    animation: author-orb-pulse 4s ease-in-out infinite;
}

.author-hero__orb--2 {
    width: 8px;
    height: 8px;
    background: #a855f7;
    box-shadow: 0 0 15px 8px rgba(168, 85, 247, 0.4);
    top: 60%;
    right: 20%;
    animation: author-orb-pulse 4s ease-in-out infinite 2s;
}

@keyframes author-orb-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ===========================================
   A.2 HERO CONTAINER & BODY
   =========================================== */
.author-hero__container {
    position: relative;
    z-index: 10;
}

.author-hero__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 1100px) {
    .author-hero__body {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ===========================================
   A.3 BREADCRUMB
   =========================================== */
.author-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 10px 24px;
    margin-bottom: 40px;
}

.author-hero__breadcrumb a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-hero__breadcrumb a:hover {
    color: #ffa135;
}

.author-hero__breadcrumb a svg {
    width: 16px;
    height: 16px;
}

.author-hero__breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.author-hero__breadcrumb > span {
    color: #ffa135;
    font-size: 14px;
    font-weight: 600;
}

/* ===========================================
   A.4 PROFILE CARD
   =========================================== */
.author-hero__main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.author-hero__profile-card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.author-hero__profile-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #ffa135, #06b6d4);
}

@media (max-width: 640px) {
    .author-hero__profile-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

/* Avatar with ring and glow */
.author-hero__avatar-container {
    position: relative;
    flex-shrink: 0;
}

.author-hero__avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #7c3aed, #ffa135, #06b6d4, #7c3aed);
    animation: author-ring-rotate 6s linear infinite;
    z-index: 1;
}

@keyframes author-ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.author-hero__avatar-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    animation: author-glow-pulse 3s ease-in-out infinite;
    z-index: 0;
}

@keyframes author-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.author-hero__avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #06051f;
    z-index: 2;
}

.author-hero__avatar-placeholder {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #ffa135 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #06051f;
    z-index: 2;
}

.author-hero__avatar-placeholder span {
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}

/* Verified badge */
.author-hero__verified-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #06051f;
    z-index: 3;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.author-hero__verified-badge svg {
    color: #fff;
}

/* Profile info */
.author-hero__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-hero__name-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .author-hero__name-row {
        justify-content: center;
    }
}

.author-hero__name {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .author-hero__name {
        font-size: 28px;
    }
}

.author-hero__pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffa135 0%, #f59e0b 100%);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 161, 53, 0.4);
}

.author-hero__role {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* Social buttons */
.author-hero__contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .author-hero__contact-row {
        justify-content: center;
    }
}

.author-hero__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-hero__social-btn:hover {
    background: rgba(255, 161, 53, 0.2);
    border-color: rgba(255, 161, 53, 0.4);
    color: #ffa135;
    transform: translateY(-2px);
}

/* ===========================================
   A.5 STATS GRID
   =========================================== */
.author-hero__stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 540px) {
    .author-hero__stats-grid {
        grid-template-columns: 1fr;
    }
}

.author-hero__stat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.author-hero__stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.author-hero__stat-card--publications { border-top: 3px solid #3b82f6; }
.author-hero__stat-card--comments { border-top: 3px solid #10b981; }
.author-hero__stat-card--experience { border-top: 3px solid #f59e0b; }

.author-hero__stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-hero__stat-card--publications .author-hero__stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
}

.author-hero__stat-card--publications .author-hero__stat-icon-wrapper svg {
    color: #60a5fa;
}

.author-hero__stat-card--comments .author-hero__stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
}

.author-hero__stat-card--comments .author-hero__stat-icon-wrapper svg {
    color: #34d399;
}

.author-hero__stat-card--experience .author-hero__stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
}

.author-hero__stat-card--experience .author-hero__stat-icon-wrapper svg {
    color: #fbbf24;
}

.author-hero__stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-hero__stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.author-hero__stat-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.author-hero__stat-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* ===========================================
   A.6 EXPERTISE CARDS
   =========================================== */
.author-hero__expertise {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.author-hero__expertise-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.author-hero__expertise-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.author-hero__expertise-card--education::before {
    background: linear-gradient(180deg, #7c3aed, #a855f7);
}

.author-hero__expertise-card--skills::before {
    background: linear-gradient(180deg, #ffa135, #f59e0b);
}

.author-hero__expertise-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.author-hero__expertise-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.author-hero__expertise-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-hero__expertise-card--education .author-hero__expertise-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(168, 85, 247, 0.2));
}

.author-hero__expertise-card--education .author-hero__expertise-icon svg {
    color: #a78bfa;
}

.author-hero__expertise-card--skills .author-hero__expertise-icon {
    background: linear-gradient(135deg, rgba(255, 161, 53, 0.2), rgba(245, 158, 11, 0.2));
}

.author-hero__expertise-card--skills .author-hero__expertise-icon svg {
    color: #fbbf24;
}

.author-hero__expertise-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.author-hero__expertise-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.author-hero__expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.author-hero__expertise-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.author-hero__expertise-card--education .author-hero__expertise-list li svg {
    color: #a78bfa;
}

.author-hero__expertise-card--skills .author-hero__expertise-list li svg {
    color: #fbbf24;
}

/* ===========================================
   A.7 TRUST BADGES
   =========================================== */
.author-hero__trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.author-hero__trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #34d399;
}

.author-hero__trust-badge svg {
    color: #34d399;
}

/* ===========================================
   A.8 WAVE SEPARATOR
   =========================================== */
.author-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    color: #f8fafc;
    line-height: 0;
}

.author-hero__wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

@media (max-width: 768px) {
    .author-hero__wave svg {
        height: 50px;
    }
}

/* ===========================================
   B. ABOUT SECTION - PREMIUM
   =========================================== */
.author-about {
    padding: 80px 0;
    background: #f8fafc;
}

.author-about__wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 56px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 24px 48px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .author-about__wrapper {
        padding: 40px 28px;
        border-radius: 20px;
    }
}

.author-about__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px solid #f1f5f9;
}

@media (max-width: 640px) {
    .author-about__header {
        flex-direction: column;
        text-align: center;
    }
}

.author-about__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

.author-about__icon svg {
    color: #fff;
}

.author-about__title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-about__title {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.author-about__subtitle {
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.author-about__content {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.85;
    position: relative;
    z-index: 2;
}

.author-about__content h2,
.author-about__content h3,
.author-about__content h4 {
    color: #111827;
    margin: 28px 0 14px;
    font-weight: 700;
}

.author-about__content h2 { font-size: 24px; }
.author-about__content h3 { font-size: 20px; }
.author-about__content h4 { font-size: 18px; }

.author-about__content p {
    margin: 0 0 18px;
}

.author-about__content a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.author-about__content a:hover {
    color: #ffa135;
}

.author-about__content ul,
.author-about__content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.author-about__content li {
    margin-bottom: 8px;
}

/* Quote decoration */
.author-about__quote {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    opacity: 0.5;
}

.author-about__quote svg {
    color: #e5e7eb;
}

/* ===========================================
   C. POSTS SECTIONS - PREMIUM
   =========================================== */
.author-posts {
    padding: 72px 0;
    background: #fff;
    position: relative;
}

.author-posts--alt {
    background: #f8fafc;
}

/* Section header */
.author-posts__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .author-posts__header {
        flex-direction: column;
        text-align: center;
    }
}

.author-posts__header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

@media (max-width: 640px) {
    .author-posts__header-left {
        flex-direction: column;
    }
}

.author-posts__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-posts__icon-wrapper svg {
    color: #fff;
}

.author-posts__icon-wrapper--post {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.author-posts__icon-wrapper--offer {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.author-posts__icon-wrapper--promotion {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.author-posts__icon-wrapper--rating {
    background: linear-gradient(135deg, #eab308, #f97316);
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3);
}

.author-posts__icon-wrapper--bank {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.author-posts__title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-posts__title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.author-posts__subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
}

.author-posts__count-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.author-posts__count-number {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.author-posts__count-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* ===========================================
   C.1 AUTHOR CARDS (POST CARDS)
   =========================================== */
.author-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

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

@media (max-width: 640px) {
    .author-posts__grid {
        grid-template-columns: 1fr;
    }
}

.author-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.author-posts--alt .author-card {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
}

.author-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 12px 24px rgba(124, 58, 237, 0.12),
        0 24px 48px rgba(124, 58, 237, 0.08);
    border-color: #a78bfa;
}

.author-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Card media */
.author-card__media {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.author-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-card:hover .author-card__media img {
    transform: scale(1.08);
}

.author-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-card__placeholder svg {
    color: #9ca3af;
}

/* Overlay */
.author-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.author-card:hover .author-card__overlay {
    opacity: 1;
}

/* Category badge */
.author-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card body */
.author-card__body {
    padding: 24px;
}

.author-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.author-card__date,
.author-card__comments {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.author-card__date svg,
.author-card__comments svg {
    color: #9ca3af;
}

.author-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.author-card:hover .author-card__title {
    color: #7c3aed;
}

.author-card__excerpt {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #7c3aed;
    transition: all 0.3s ease;
}

.author-card:hover .author-card__action {
    color: #ffa135;
    gap: 12px;
}

.author-card__action svg {
    transition: transform 0.3s ease;
}

.author-card:hover .author-card__action svg {
    transform: translateX(4px);
}

/* ===========================================
   C.2 LOAD MORE BUTTON
   =========================================== */
.author-posts__load-more {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.author-posts__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 36px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.author-posts__btn:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.45);
}

.author-posts__btn:active {
    transform: translateY(-1px);
}

.author-posts__btn svg {
    transition: transform 0.3s ease;
}

.author-posts__btn:hover svg {
    animation: author-btn-spin 1s ease-in-out;
}

@keyframes author-btn-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================================
   D. EMPTY STATE
   =========================================== */
.author-empty {
    padding: 100px 0;
    background: #f8fafc;
}

.author-empty__content {
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.author-empty__icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.author-empty__icon svg {
    color: #9ca3af;
}

.author-empty__content h3 {
    font-size: 26px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 14px;
}

.author-empty__content p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
    line-height: 1.7;
}

/* ===========================================
   E. RESPONSIVE & ACCESSIBILITY
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .author-hero::before,
    .author-hero::after,
    .author-hero__shape,
    .author-hero__orb,
    .author-hero__avatar-ring,
    .author-hero__avatar-glow,
    .author-hero__expertise-card,
    .author-hero__stat-card,
    .author-card,
    .author-posts__btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states */
.author-hero__breadcrumb a:focus-visible,
.author-hero__social-btn:focus-visible,
.author-card__link:focus-visible,
.author-posts__btn:focus-visible {
    outline: 3px solid #ffa135;
    outline-offset: 3px;
    border-radius: 8px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .author-hero {
        background: #000;
    }

    .author-card {
        border-width: 2px;
    }

    .author-hero__name,
    .author-hero__stat-value {
        color: #fff;
    }
}

/* Print styles */
@media print {
    .author-hero {
        background: #fff !important;
        color: #000 !important;
        padding: 20px 0;
    }

    .author-hero__bg-shapes,
    .author-hero__wave,
    .author-hero::before,
    .author-hero::after {
        display: none !important;
    }

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