/* ==========================================================================
   Author Profile Page — Editorial/Magazine Design
   Plugin: pc-kompas-guides
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Entrance Animation
   -------------------------------------------------------------------------- */

@keyframes guide-author-reveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   2. Breadcrumb
   -------------------------------------------------------------------------- */

.guide-author-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    font-size: clamp(0.75rem, 0.5vw + 0.625rem, 0.8125rem);
    line-height: 1.4;
}

.guide-author-breadcrumb__link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-author-breadcrumb__link:hover,
.guide-author-breadcrumb__link:focus-visible {
    color: var(--accent);
}

.guide-author-breadcrumb__separator {
    color: var(--text-muted);
    font-size: 0.6875em;
    user-select: none;
}

.guide-author-breadcrumb__current {
    color: var(--text-secondary);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Hero Section
   -------------------------------------------------------------------------- */

.guide-author-hero {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 3vw + 0.25rem, 2.5rem);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw + 0.25rem, 3rem);
    box-shadow: var(--shadow-sm);
    animation: guide-author-reveal 0.4s ease-out both;
}

/* --------------------------------------------------------------------------
   4. Avatar
   -------------------------------------------------------------------------- */

.guide-author-hero__avatar {
    flex-shrink: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-md), 0 0 0 6px rgba(var(--accent-rgb), 0.08);
    overflow: hidden;
}

.guide-author-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Info Column
   -------------------------------------------------------------------------- */

.guide-author-hero__info {
    flex: 1;
    min-width: 0;
}

/* --------------------------------------------------------------------------
   6. Name & Role
   -------------------------------------------------------------------------- */

.guide-author-hero__name {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.guide-author-hero__role {
    display: block;
    font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Expertise Chips
   -------------------------------------------------------------------------- */

.guide-author-hero__expertise {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.guide-author-hero__chip {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 0.5vw + 0.5625rem, 0.8125rem);
    font-weight: 500;
    padding: 0.3125rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. Stats Row
   -------------------------------------------------------------------------- */

.guide-author-hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin-top: var(--space-lg);
}

.guide-author-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 clamp(1rem, 2vw + 0.25rem, 1.5rem);
    border-right: 1px solid var(--border);
}

.guide-author-hero__stat:first-child {
    padding-left: 0;
}

.guide-author-hero__stat:last-child {
    border-right: none;
}

.guide-author-hero__stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}

.guide-author-hero__stat-label {
    font-size: clamp(0.6875rem, 0.3vw + 0.5625rem, 0.75rem);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   9. Social Links
   -------------------------------------------------------------------------- */

.guide-author-hero__socials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.guide-author-hero__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.2s ease,
                color 0.2s ease,
                background-color 0.2s ease,
                transform 0.2s ease;
}

.guide-author-hero__social-link:hover,
.guide-author-hero__social-link:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}

.guide-author-hero__social-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.guide-author-hero__social-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. About Section
   -------------------------------------------------------------------------- */

.guide-author-about {
    max-width: 780px;
    margin-top: clamp(2rem, 4vw + 0.25rem, 3rem);
    animation: guide-author-reveal 0.4s ease-out 0.08s both;
}

.guide-author-about h2 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.3;
}

.guide-author-about__content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.0625rem);
}

.guide-author-about__content p {
    margin: 0 0 var(--space-md) 0;
}

.guide-author-about__content p:last-child {
    margin-bottom: 0;
}

.guide-author-about__content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.guide-author-about__content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-author-about__content a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.guide-author-about__content ul,
.guide-author-about__content ol {
    margin: 0 0 var(--space-md) 0;
    padding-left: 1.5rem;
}

.guide-author-about__content li {
    margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   11. Methodology Box
   -------------------------------------------------------------------------- */

.guide-author-methodology {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    margin-top: var(--space-xl);
    box-shadow: var(--shadow-sm);
    animation: guide-author-reveal 0.4s ease-out 0.16s both;
}

.guide-author-methodology h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.75vw + 0.75rem, 1.125rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm) 0;
    line-height: 1.3;
}

.guide-author-methodology h2 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.guide-author-methodology__content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.0625rem);
}

.guide-author-methodology__content p {
    margin: 0 0 var(--space-md) 0;
}

.guide-author-methodology__content p:last-child {
    margin-bottom: 0;
}

.guide-author-methodology__content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.guide-author-methodology__content a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* --------------------------------------------------------------------------
   12. Trust Signals
   -------------------------------------------------------------------------- */

.guide-author-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 2vw + 0.25rem, 1.5rem);
    margin-top: clamp(1.5rem, 3vw + 0.25rem, 2.5rem);
    animation: guide-author-reveal 0.4s ease-out 0.24s both;
}

.guide-author-trust__block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 2vw + 0.25rem, 1.5rem);
}

.guide-author-trust__block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.5vw + 0.75rem, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.3;
}

.guide-author-trust__block h3 svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.guide-author-trust__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.guide-author-trust__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: clamp(0.75rem, 0.3vw + 0.625rem, 0.8125rem);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.guide-author-trust__pill--credential {
    background: var(--accent-light);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.25);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Guides Section
   -------------------------------------------------------------------------- */

.guide-author-guides {
    margin-top: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
    border-top: 1px solid var(--border);
    padding-top: clamp(2.5rem, 4vw + 0.5rem, 3.5rem);
    animation: guide-author-reveal 0.4s ease-out 0.32s both;
}

.guide-author-guides__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.guide-author-guides__count {
    display: block;
    font-size: clamp(0.8125rem, 0.3vw + 0.6875rem, 0.875rem);
    color: var(--text-muted);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   14. Empty State
   -------------------------------------------------------------------------- */

.guide-author-empty {
    text-align: center;
    padding: clamp(2rem, 4vw + 0.5rem, 3rem) var(--space-md);
    color: var(--text-muted);
    font-size: clamp(0.9375rem, 0.5vw + 0.75rem, 1.0625rem);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Author Box Expertise Chips (single guide page — KEEP)
   -------------------------------------------------------------------------- */

.guide-author-box__expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.guide-author-box__chip {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Updated date styling (single guide page — KEEP) */
.guide-meta__updated {
    color: var(--text-muted);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   16. Responsive — Layout Changes Only
   -------------------------------------------------------------------------- */

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

    .guide-author-hero__avatar {
        width: 96px;
        height: 96px;
    }

    .guide-author-hero__expertise {
        justify-content: center;
    }

    .guide-author-hero__stats {
        justify-content: center;
    }

    .guide-author-hero__stat {
        align-items: center;
        border-right: none;
        padding: 0 clamp(0.75rem, 2vw + 0.25rem, 1rem);
    }

    .guide-author-hero__socials {
        justify-content: center;
    }

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

/* --------------------------------------------------------------------------
   17. Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .guide-author-hero,
    .guide-author-about,
    .guide-author-methodology,
    .guide-author-trust,
    .guide-author-guides {
        animation: none;
    }

    .guide-author-hero__social-link {
        transition: none;
    }

    .guide-author-about__content a,
    .guide-author-methodology__content a {
        transition: none;
    }
}
