/* assets/css/style2.css */

:root {
    /* ---- COLOR CONFIGURATION ---- */
    /* Change these hex codes to alter the whole site */
    --primary-color: #CEC5B4;       /* Buttons, Menus Old #A4A69C (HSL 72 5 63) */  
    --primary-color-hover: #AC9D80; /* Slightly darker for hover effects Old #8f9188 (HSL 72 5 55)*/
	--button-color: #AC9D80;    
    --background-color: #F3F1ED;    /* Main Page Backgrounds Old #F2F3EF */
    --text-dark: #222222;           /* Standard text */
    --text-light: #FFFFFF;          /* Text on dark buttons/menus */
    /* ----------------------------- */
}

.libre-baskerville-<uniquifier> {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}


/* Basic Setup */
body {
    font-family: "Libre Baskerville", serif;
    background-color: var(--background-color);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container for main content */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: 60vh; /* Ensures footer stays down on empty pages */
}

h1 { 
color: var(--text-dark);
}

/* --- NAVIGATION BAR --- */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin-left: 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Desktop Menu items */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu li { position: relative; }

.nav-menu li a {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
}

.nav-menu li a:hover {
    background-color: var(--primary-color-hover);
}

/* Dropdown Menu (Desktop) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    top: 100%;
    left: 0;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content { display: block; }

/* Mobile Hamburger Icon (Hidden on desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-light);
    margin: 2px 0;
    transition: 0.4s;
}

/* --- PAGE SPECIFIC STYLES --- */

/* Standard Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--button-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover { background-color: var(--primary-color-hover); }

/* Did you stop to listen page layout */
.book-layout {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 30px;
}
.book-cover-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
}

/* Responsive Youtube Embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-top: 30px;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-dark);
    text-align: center;
    padding: 1rem 0;
    margin-top: 40px;
}


/* ---- MEDIA QUERIES (Tablet and Phone) ---- */
@media (max-width: 850px) {
    .menu-toggle { display: flex; }

    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        z-index: 999;
    }

    /* Class added by Javascript when clicking hamburger */
    .nav-menu.active { display: flex; }

    .nav-menu li { text-align: center; width: 100%; }
    .nav-menu li a { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }

    /* Mobile Dropdown handling */
    .dropdown-content {
        position: static; /* Stack normally on mobile */
        display: none; /* Hidden until hover/tap */
        background-color: var(--primary-color-hover);
        box-shadow: none;
        width: 100%;
    }
    .dropdown:hover .dropdown-content { display: block; }

    /* Stacking book layout on phone */
    .book-layout { flex-direction: column; }
    .book-cover-img { max-width: 200px; }
}