/*
Theme Name: The Wallflower Nook
Theme URI: 
Author: Elizabeth Emde
Author URI: 
Description: A custom Dark Academia theme for The Wallflower Nook.
Version: 1.15
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: wallflower-nook
*/

:root {
    /* Brand Colors from Codes_Fonts_Wallflower2026.pdf */
    --wn-bg-dark: #181925;
    --wn-accent-gold: #e88b36;
    --wn-accent-olive: #5d5d41;
    --wn-accent-sage: #9b9d73;
    --wn-accent-rust: #a1471a;
    --wn-accent-brown-dark: #381b0e;
    --wn-accent-brown-med: #6a3519;
    --wn-accent-tan: #c57b4c;
    --wn-accent-black: #140b04;
    --wn-text-light: #f4f1eb;
}

body {
    background-color: var(--wn-bg-dark);
    color: var(--wn-text-light);
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .font-london {
    font-family: 'Bodoni Moda', serif; /* Fallback for LONDON */
    color: var(--wn-accent-gold);
    font-weight: normal;
}

.typewriter-text {
    font-family: 'Special Elite', monospace; /* Fallback for True Typewriter */
}

.font-chalk {
    font-family: 'Caveat', cursive; /* Fallback for Six Hands Chalk */
}

.font-script {
    font-family: 'Alex Brush', cursive;
}

.cursive-text {
    font-family: 'Alex Brush', cursive;
}

a {
    color: var(--wn-accent-gold);
    text-decoration: none;
}

a:hover {
    color: var(--wn-accent-tan);
}

/* Header & Footer Basics */
.site-header {
    text-align: center;
    padding: 20px 0;
}

.site-logo {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.main-navigation ul li a {
    color: var(--wn-text-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: var(--wn-accent-gold);
}

.site-footer {
    text-align: center;
    padding: 60px 20px 20px;
    background-color: var(--wn-accent-black);
    border-top: 2px solid var(--wn-accent-olive);
    margin-top: 60px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Tier 1: Primary Nav */
.footer-tier-1 {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-tier-1 a {
    color: var(--wn-text-light);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-tier-1 a:hover {
    color: var(--wn-accent-gold);
}

/* Tier 2: Sub-Nav */
.footer-tier-2 {
    border-top: 1px solid var(--wn-accent-brown-med);
    padding-top: 20px;
    font-family: 'Special Elite', monospace;
    font-size: 14px;
    color: var(--wn-accent-sage);
}
.footer-tier-2 a {
    color: var(--wn-accent-sage);
    margin: 0 10px;
}
.footer-tier-2 a:hover {
    color: var(--wn-accent-gold);
}

/* Tier 3: Social & Letter Society */
.footer-tier-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.social-icons a {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--wn-accent-tan);
    margin: 0 10px;
}
.letter-society-banner {
    border: 1px solid var(--wn-accent-gold);
    padding: 15px 40px;
    cursor: pointer;
    background: transparent;
    color: var(--wn-accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}
.letter-society-banner:hover {
    background: var(--wn-accent-gold);
    color: var(--wn-accent-black);
}

/* Tier 4: Brand Note */
.footer-tier-4 {
    border-top: 1px solid var(--wn-accent-brown-med);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--wn-text-light);
}
.brand-note {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    color: var(--wn-accent-tan);
}
.store-details {
    font-size: 14px;
    color: var(--wn-accent-sage);
}

/* Tier 5: Sub-Footer */
.footer-tier-5 {
    border-top: 1px solid #2a1f18;
    padding-top: 20px;
    font-size: 12px;
    color: #6a6a6a;
}
.payment-badges {
    margin-top: 10px;
}

/* Modal */
.letter-society-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: var(--wn-bg-dark);
    padding: 40px;
    border: 2px solid var(--wn-accent-olive);
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.5);
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--wn-accent-tan);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-content h3 {
    margin-top: 0;
}
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.modal-content input {
    padding: 10px;
    background: #140b04;
    border: 1px solid var(--wn-accent-olive);
    color: var(--wn-text-light);
}
.modal-content button {
    padding: 15px;
    background: var(--wn-accent-tan);
    color: #140b04;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================
   WooCommerce Styles
   ========================================= */
ul.products li.product {
    text-align: center;
    background-color: transparent !important;
}
ul.products li.product h2.woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif !important;
    font-size: 22px !important;
    color: var(--wn-text-light) !important;
    margin-top: 15px !important;
}
ul.products li.product .price {
    font-family: 'Special Elite', monospace !important;
    color: var(--wn-accent-sage) !important;
    font-size: 16px !important;
}
ul.products li.product .button.add_to_cart_button {
    background-color: transparent !important;
    color: var(--wn-accent-tan) !important;
    border: 1px solid var(--wn-accent-olive) !important;
    font-family: 'Special Elite', monospace !important;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
}
ul.products li.product .button.add_to_cart_button:hover {
    background-color: var(--wn-accent-tan) !important;
    color: #140b04 !important;
}

/* Registry Exclusive Badge */
.wn-exclusive-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--wn-bg-dark);
    color: var(--wn-accent-gold);
    border: 1px solid var(--wn-accent-gold);
    padding: 5px 10px;
    font-family: 'Special Elite', monospace;
    font-size: 11px;
    text-transform: uppercase;
    z-index: 9;
}

/* =========================================
   Slide-Out Mini-Cart
   ========================================= */
.wn-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 400px;
    height: 100vh;
    background-color: #1a1714;
    border-left: 2px solid var(--wn-accent-gold);
    z-index: 10000;
    transition: right 0.4s ease-in-out;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}
.wn-mini-cart-drawer.open {
    right: 0;
}
.wn-mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--wn-accent-brown-med);
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.wn-mini-cart-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--wn-text-light);
    font-size: 28px;
    margin: 0;
}
.close-cart {
    color: var(--wn-accent-tan);
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
}
.wn-mini-cart-body {
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'Special Elite', monospace;
    color: var(--wn-accent-sage);
}
.wn-mini-cart-footer {
    border-top: 1px solid var(--wn-accent-brown-med);
    padding-top: 20px;
    text-align: center;
}
.wn-mini-cart-footer .cart-total {
    font-family: 'Special Elite', monospace;
    color: var(--wn-text-light);
    font-size: 20px;
    margin-bottom: 20px;
}
.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--wn-accent-gold);
    color: #140b04;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background 0.3s;
}
.btn-checkout:hover {
    background-color: #d4a373;
}
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
.cart-overlay.active {
    display: block;
}

/* =========================================
   Mobile Responsiveness Overrides
   ========================================= */
.menu-toggle {
    display: none;
    background: transparent;
    color: var(--wn-text-light);
    border: 1px solid var(--wn-accent-tan);
    padding: 10px 15px;
    font-family: 'Special Elite', monospace;
    font-size: 16px;
    cursor: pointer;
    margin: 0 auto 20px auto;
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .menu-toggle {
        display: block;
    }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    .main-navigation.toggled ul {
        display: flex;
    }

    /* Typography Overrides */
    h1, h2, h3, .wp-block-heading {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }
    .wp-block-cover h1 {
        font-size: 40px !important;
    }

    /* Mini-Cart Drawer */
    .wn-mini-cart-drawer {
        width: 100%;
        max-width: 100vw;
    }

    /* Padding & Layout Reductions */
    .wp-block-group, .wp-block-columns, .alignwide, .alignfull {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .footer-tier-1, .footer-tier-2 {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .footer-tier-2 {
        line-height: 2;
    }
}

/* Back to Top Button */
.wn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--wn-accent-gold);
    color: var(--wn-bg-dark);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.wn-back-to-top:hover {
    background-color: var(--wn-accent-tan);
    transform: translateY(-3px);
}
.wn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

