/* ===========================
   AUTHOR PAGE
   =========================== */

.author-main {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

.author-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 5%;
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

/* Left column: image + social */
.author-profile {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.author-image-wrapper {
    margin-bottom: 2rem;
}

.author-image-placeholder {
    width: 220px;
    height: 220px;
    background: var(--base-light);
    border: 1px solid rgba(255, 193, 10, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-gold);
    letter-spacing: 3px;
}

.author-image-wrapper img {
    width: 220px;
    height: auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Social links */
.author-social h3 {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.15s ease;
}

.social-link:hover {
    color: var(--accent-gold);
    background: rgba(255, 193, 10, 0.04);
    border-color: rgba(255, 193, 10, 0.15);
}

.social-link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.social-link:hover svg {
    opacity: 1;
}

/* Right column: bio */
.author-bio {
    flex: 1;
    min-width: 0;
}

.author-bio h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.25rem;
    line-height: 1.1;
}

.author-tagline {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.bio-text {
    margin-bottom: 3rem;
}

.bio-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.bio-text p:last-child {
    margin-bottom: 0;
}

/* Books section */
.author-books {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 2rem;
}

.author-books h2 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.author-book-list {
    display: flex;
    gap: 1.25rem;
}

.author-book-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    flex: 1;
}

.author-book-item:hover {
    transform: translateY(-4px);
}

.author-book-item img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s ease;
}

.author-book-item:hover img {
    box-shadow: 0 10px 30px rgba(255, 193, 10, 0.15), 0 5px 20px rgba(0, 0, 0, 0.4);
}

.author-book-item span {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: center;
}

.author-book-item:hover span {
    color: var(--accent-gold);
}

/* ===========================
   FAQ SECTION
   =========================== */
.author-faq {
    background: var(--base-light);
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.25rem 2.5rem 1.25rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--accent-gold);
}

/* Chevron */
.faq-question::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.15s ease;
}

.faq-question:hover::after {
    border-color: var(--accent-gold);
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-35%) rotate(-135deg);
}

.faq-question[aria-expanded="true"] {
    color: var(--accent-gold);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}

.faq-answer.open {
    padding: 0 0 1.25rem 0;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
}

/* Footer */
.author-main + footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ===========================
   NEWSLETTER SECTION
   =========================== */
.author-newsletter {
    padding: 4rem 5%;
    background: var(--base);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.newsletter-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-container h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.newsletter-container > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-inline {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-inline input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--base-light);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.newsletter-inline input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-inline button {
    padding: 0.8rem 1.5rem;
    background: var(--accent-gold);
    color: var(--base);
    border: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.newsletter-inline button:hover {
    background: var(--text-color);
}

.newsletter-container .privacy-notice {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* FAQ responsive */
@media (max-width: 768px) {
    .author-faq {
        padding: 3rem 5%;
    }

    .faq-question {
        font-size: 0.9rem;
        padding: 1rem 2rem 1rem 0;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .author-faq {
        padding: 2rem 4%;
    }

    .faq-question {
        font-size: 0.85rem;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .author-container {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 2.5rem 5%;
    }

    .author-profile {
        width: 100%;
        min-width: unset;
        position: relative;
        top: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .author-image-placeholder {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }

    .author-image-wrapper img {
        width: 180px;
    }

    .author-social {
        width: 100%;
        text-align: center;
    }

    .author-social h3 {
        text-align: center;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
    }

    .author-bio {
        text-align: center;
    }

    .author-bio h1 {
        font-size: 2rem;
    }

    .bio-text p {
        text-align: left;
        font-size: 0.95rem;
    }

    .author-book-list {
        justify-content: center;
    }

    .author-book-item {
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .author-main {
        padding-top: 60px;
    }

    .author-container {
        padding: 2rem 4%;
        gap: 2rem;
    }

    .author-bio h1 {
        font-size: 1.6rem;
    }

    .author-tagline {
        font-size: 0.85rem;
    }

    .bio-text p {
        font-size: 0.9rem;
    }

    .author-book-list {
        gap: 0.75rem;
    }

    .author-book-item {
        max-width: 100px;
    }

    .author-book-item span {
        font-size: 0.65rem;
    }
}
