/* --- SITE STYLES --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: white;
    background: url('../images/homepage-bg.webp') no-repeat center center fixed;
    background-size: cover;
}
.substack-page { background-image: url('../images/substack-bg.webp'); }
.stories-page, .reading-page { background-image: url('../images/freestories-bg.webp'); } 

.content-wrapper {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 7rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.overlay {
    width: 100%;
    max-width: 900px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2em;
    border-radius: 10px;
}
.overlay a { color: white; }

.home-overlay {
    max-width: 1000px;
    padding: 3em 2em;
    background-color: rgba(0, 0, 0, 0.7); 
}

h1 { font-size: 2.5em; margin-bottom: 1em; }
h2 { font-size: 1.8em; margin: 0.5em 0; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; text-transform: uppercase; letter-spacing: 1px; }

/* --- NEW FEATURED SECTIONS (AMARA & FEMI) --- */
.featured-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.featured-cover {
    width: 100%;
    max-width: 380px;
    height: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}
.featured-cover:hover { transform: scale(1.02); }

.excerpt-box {
    max-width: 700px;
    text-align: left;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ddd;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #888;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0 5px 5px 0;
}
.excerpt-box p { margin-top: 0; margin-bottom: 1rem; }
.excerpt-box p:last-child { margin-bottom: 0; }

.section-title {
    font-family: 'Arial Black', sans-serif;
    text-transform: uppercase;
    font-size: 2.2rem;
    margin: 0 0 1.5rem 0;
    color: #fff;
    text-shadow: 2px 2px 5px black;
    text-align: center;
    letter-spacing: 2px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3rem auto;
    width: 80%;
}

/* --- BACKLIST GRID SYSTEM --- */
.backlist-section {
    padding-top: 1rem;
}
.backlist-intro {
    font-size: 1.2rem;
    font-style: italic;
    color: #ddd;
    margin-bottom: 0.5rem;
    text-align: center;
}
.backlist-section .section-title {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 0;
    color: #ccc;
    font-family: 'Georgia', serif;
    letter-spacing: normal;
    text-transform: none;
}

.books-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.book-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.backlist-grid .book-cover {
    max-width: 240px; 
    margin-bottom: 1rem;
}

.book-tagline-small {
    font-size: 0.95rem;
    font-style: italic;
    color: #aaa;
    margin: 0.5rem 0 1.5rem 0;
    text-align: center;
}

.button-wrapper {
    text-align: center;
    width: 100%;
}

.buy-direct-promo {
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
    color: #ddd;
    margin-bottom: 0.8rem;
}

.purchase-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- MAIN NAV & FOOTER --- */
.main-nav { position: fixed; top: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); z-index: 1000; }
.site-footer { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(5px); z-index: 1000; }
.main-nav ul { margin: 0; padding: 1rem 0; list-style: none; display: flex; justify-content: center; gap: 2.5em; }
.main-nav a { color: white; text-decoration: none; font-size: 1em; padding: 0.5em 0; opacity: 0.7; transition: opacity 0.3s; border-bottom: 2px solid transparent; }
.main-nav a:hover { opacity: 1; }
.main-nav a.active { opacity: 1; border-bottom: 2px solid white; }
.reading-page .site-footer { position: static; } 

/* --- BUTTONS --- */
.buy-button, .submit-button { 
    display: inline-block; 
    padding: 0.75em 1.5em; 
    background: rgba(255, 255, 255, 0.1); 
    color: white; 
    border: 1px solid white; 
    border-radius: 5px; 
    font-family: 'Georgia', serif; 
    font-size: 1em; 
    text-decoration: none; 
    transition: background 0.3s, border 0.3s; 
    cursor: pointer; 
    white-space: nowrap; 
}

.buy-button:hover, .submit-button:hover { 
    background: rgba(255, 255, 255, 0.3); 
}

.buy-direct-button {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 0, 0, 0.5);
}
.buy-direct-button:hover {
    background: rgba(255, 0, 0, 0.4);
    border: 1px solid #FF0000;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-content { display: none; position: absolute; background-color: #f1f1f1; min-width: 220px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; border-radius: 5px; bottom: 100%; margin-bottom: 10px; left: 50%; transform: translateX(-50%); }
.dropdown-content a { color: black; padding: 12px 16px; text-decoration: none; display: block; text-align: left; }
.dropdown-content a:hover { background-color: #ddd; }
.show { display: block; }

/* --- CONTACT FORM --- */
.contact-form { display: flex; flex-direction: column; max-width: 600px; margin: 0 auto; text-align: left; }
.contact-form label { margin-bottom: 0.5em; font-size: 0.9em; opacity: 0.8; }
.contact-form input, .contact-form textarea { background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.8em; border-radius: 5px; margin-bottom: 1.5em; font-family: 'Georgia', serif; font-size: 1em; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: white; box-shadow: 0 0 5px rgba(255,255,0.5); }
.contact-form .submit-button { width: auto; align-self: center; }

/* --- RESPONSIVE STYLES --- */
@media (max-width: 900px) {
    .books-grid { grid-template-columns: 1fr; gap: 4rem; max-width: 400px; margin: 0 auto; }
    .home-overlay { padding: 1.5rem; }
    .excerpt-box { padding: 1rem; font-size: 1rem; }
}
@media (max-width: 768px) {
    .content-wrapper { justify-content: flex-start; padding-top: 6rem; padding-left: 1rem; padding-right: 1rem; }
    .main-nav ul { gap: 1.5em; }
    .overlay { width: 100%; padding: 1.5em 1em; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.5em; }
    .site-footer { position: static; }
    .site-footer p { font-size: 0.75em; padding: 0.75rem 1rem; }
}

/* --- NEW SUBSCRIBE POPUP STYLES --- */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
}
.popup-container {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    z-index: 2001;
    text-align: center;
    padding: 2.5rem 2rem;
}
.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2.5rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 10;
}
.popup-close:hover { color: white; }

/* --- MAILERLITE FORM STYLES --- */
.subscribe-form-wrapper { width: 100%; }
.popup-container .ml-form-embedContent { display: none !important; }
.popup-container .ml-block-form { width: 100%; margin: 0 auto; }
.popup-container .ml-block-form .ml-field-group { margin-bottom: 1rem; }
.popup-container .ml-block-form label { display: none; }
.popup-container .ml-block-form input.form-control { background: rgba(0,0,0,0.3) !important; border: 1px solid rgba(255,255,255,0.2) !important; color: white !important; padding: 1em !important; border-radius: 5px !important; font-family: 'Georgia', serif !important; font-size: 1em !important; width: 100% !important; box-sizing: border-box !important; }
.popup-container .ml-block-form input.form-control:focus { outline: none !important; border-color: white !important; box-shadow: 0 0 5px rgba(255,255,255,0.5) !important; }
.popup-container .ml-block-form button.primary { display: inline-block !important; padding: 1em 1.5em !important; background: rgba(255, 255, 255, 0.1) !important; color: white !important; border: 1px solid white !important; border-radius: 5px !important; font-family: 'Georgia', serif !important; font-size: 1em !important; text-decoration: none !important; width: 100% !important; cursor: pointer !important; transition: background 0.3s !important; margin-top: 0.5rem !important;}
.popup-container .ml-block-form button.primary:hover { background: rgba(255, 255, 255, 0.3) !important; }
.popup-container .ml-form-recaptcha { margin: 0 auto 1rem auto; display: flex; justify-content: center; }
.ml-form-successBody { display: none !important; }

/* --- PRIVACY BANNER STYLES --- */
.privacy-banner { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); color: #ccc; padding: 1rem 1.5rem; z-index: 3000; display: none; align-items: center; justify-content: center; gap: 1.5rem; font-family: sans-serif; font-size: 0.9em; text-align: center; }
.privacy-banner.banner-visible { display: flex; }
.privacy-banner p { margin: 0; line-height: 1.5; }
.privacy-banner a { color: white; text-decoration: underline; }
.privacy-btn { padding: 0.6em 1.2em; background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid white; border-radius: 5px; cursor: pointer; transition: background 0.3s; white-space: nowrap; }
.privacy-btn:hover { background: rgba(255, 255, 255, 0.3); }
@media (max-width: 768px) { .privacy-banner { flex-direction: column; padding: 1rem; gap: 1rem; } }

/* --- FOOTER STYLES --- */
.site-footer p { margin: 0; padding: 1rem 1rem 0.5rem 1rem; text-align: center; color: #ccc; font-size: 0.85em; line-height: 1.5; font-family: sans-serif; }
.site-footer .privacy-link { display: block; font-size: 0.8em; text-align: center; padding-bottom: 1rem; }
.site-footer .privacy-link a { color: #888; text-decoration: none; transition: color 0.2s; }
.site-footer .privacy-link a:hover { color: white; text-decoration: underline; }