/* ==========================================================================
   GreenDeal.fr - Author Page Styles
   ========================================================================== */

/* Page Layout */
.author-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 1.5rem 2rem;
}

/* Breadcrumb (copied from article.css since author pages don't load article.css) */
.author-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.author-page .breadcrumb a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.author-page .breadcrumb a:hover {
    color: var(--green-700);
}

.author-page .breadcrumb .breadcrumb-sep {
    color: var(--gray-400);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.author-hero {
    margin-bottom: 1.5rem;
}

.author-hero-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.author-hero-main {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.author-hero-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-400));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

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

.author-hero-name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.author-hero-role {
    font-size: 1rem;
    color: var(--green-700);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.author-hero-bio {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* Social Links */
.author-hero-social {
    display: flex;
    gap: 0.75rem;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s var(--transition-smooth);
}

.author-social-link:hover {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--green-700);
}

/* Stats Row */
.author-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author-stat {
    text-align: center;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s var(--transition-smooth);
}

.author-stat:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 10px 28px rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
}

.author-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-600), var(--emerald-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.author-stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-top: 0.15rem;
    line-height: 1.3;
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.author-section {
    margin-bottom: 1.5rem;
}

.author-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.author-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.author-section-header .author-section-title {
    margin-bottom: 0;
}

.author-section-link {
    font-size: 0.82rem;
    color: var(--green-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.author-section-link:hover {
    color: var(--green-700);
}

/* ==========================================================================
   Expertise Card
   ========================================================================== */
.author-expertise-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.author-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.author-tag {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green-700);
    transition: all 0.2s var(--transition-smooth);
}

.author-tag:hover {
    background: rgba(34, 197, 94, 0.18);
    transform: translateY(-1px);
}

.author-subsection-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.75rem;
}

.author-credentials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.author-credentials-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.author-credentials-list li:last-child {
    border-bottom: none;
}

.author-credentials-list strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

.author-credentials-list span {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ==========================================================================
   Articles Grid
   ========================================================================== */
.author-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.author-article-card {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
}

.author-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    border-color: rgba(34, 197, 94, 0.3);
}

.author-article-image {
    height: 90px;
    background: linear-gradient(135deg, var(--green-100), var(--emerald-100));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
}

.author-article-content {
    padding: 0.85rem;
}

.author-article-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--green-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.author-article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

.author-article-title a {
    color: inherit;
    text-decoration: none;
}

.author-article-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.author-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--gray-500);
}

/* ==========================================================================
   Methodology Card
   ========================================================================== */
.author-methodology-card {
    background: var(--liquid-gradient);
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.author-methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.author-methodology-step {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.2s var(--transition-smooth);
}

.author-methodology-step:hover {
    background: rgba(34, 197, 94, 0.06);
    border-color: rgba(34, 197, 94, 0.2);
}

.author-methodology-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-400), var(--emerald-400));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.author-methodology-step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.author-methodology-step p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.55;
    margin: 0;
}

.author-methodology-step a {
    color: var(--green-700);
    text-decoration: underline;
    text-decoration-color: var(--green-300);
    text-underline-offset: 2px;
}

.author-methodology-step a:hover {
    color: var(--green-600);
    text-decoration-color: var(--green-500);
}

/* ==========================================================================
   CTA Card
   ========================================================================== */
.author-cta-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(45, 212, 191, 0.15));
    backdrop-filter: var(--frost-blur);
    -webkit-backdrop-filter: var(--frost-blur);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
}

.author-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.author-cta-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 450px;
    margin: 0 auto 1.5rem;
}

.author-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .author-page {
        padding: 65px 0.75rem 75px;
    }

    .author-hero-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .author-hero-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-hero-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.75rem;
    }

    .author-hero-social {
        justify-content: center;
    }

    .author-hero-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .author-stat {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
        padding: 0.6rem 0.75rem;
    }

    .author-articles-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .author-methodology-grid {
        grid-template-columns: 1fr;
    }

    .author-expertise-card,
    .author-methodology-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .author-cta-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .author-article-card {
        border-radius: 10px;
    }

    .author-article-image {
        height: 70px;
    }

    .author-article-content {
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    .author-page {
        padding: 60px 0.5rem 70px;
    }

    .author-hero-card {
        padding: 1rem;
    }

    .author-hero-name {
        font-size: 1.5rem;
    }

    .author-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .author-cta-title {
        font-size: 1.25rem;
    }

    .breadcrumb {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .author-hero-social,
    .author-cta-card {
        display: none !important;
    }

    .author-page {
        padding: 0;
    }

    .author-hero-card,
    .author-expertise-card,
    .author-methodology-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
