/* FONT-FACE DECLARATIONS (Unchanged) */
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lora-v37-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/lora-v37-latin-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lora-v37-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/lato-v25-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/lato-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/lato-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/orbitron-v35-latin-600.woff2') format('woff2'); }

/* === MODIFIED: DARK THEME VARIABLES === */
:root { 
    --menu-width: 200px; 
    --font-serif: 'Lora', serif; 
    --font-sans: 'Lato', sans-serif; 
    
    /* Dark Theme Palette */
    --color-background: #1a1a1a; /* Main dark background */
    --color-surface: #2c2c2c;   /* Card and container background */
    --color-text-primary: #f5f5f5; /* Main text color */
    --color-text-secondary: #a0a0a0; /* Subtler text color */
    --color-border: #444;       /* Border color */
    --accent-color: #00C9FF;     /* Your existing accent color, which works well */
}

/* GENERAL STYLES */
html { height: 100%; width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--color-background); min-height: 100vh; margin: 0; padding: 0; box-sizing: border-box; color: var(--color-text-primary); display: flex; flex-direction: row; }
.main-content-wrapper { flex-grow: 1; margin-left: var(--menu-width); padding: 40px; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
.cocktail-container { width: 100%; max-width: 1200px; margin: 0 auto; }

/* MODIFIED: Breadcrumbs for dark theme */
.breadcrumbs { margin-bottom: 2rem; } 
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--color-text-secondary); } 
.breadcrumbs li:not(:last-child)::after { content: '>'; margin: 0 0.75rem; } 
.breadcrumbs a { color: var(--color-text-secondary); text-decoration: none; } 
.breadcrumbs a:hover { color: var(--color-text-primary); }

/* LEFT MENU & MOBILE HEADER (Unchanged logic, colors update via variables) */
.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.9); box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); padding: 0 20px; box-sizing: border-box; z-index: 1001; font-weight: 600; display: flex; flex-direction: column; justify-content: center; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 400; color: var(--accent-color); text-decoration: none; text-shadow: 0 0 2px var(--accent-color), 0 0 3px rgba(0, 201, 255, 0.6); display: block; padding: 8px 0; transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease; }
.left-menu a:hover, .left-menu a:focus { color: #fff; text-shadow: 0 0 6px #fff, 0 0 8px rgba(255, 255, 255, 0.5); outline: none; }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.1); border-radius: 5px; padding-left: 10px; padding-right: 10px; }
.mobile-header, .menu-overlay { display: none; }

/* PAGE-SPECIFIC STYLES (INDEX) */
.page-header { text-align: center; margin-bottom: 3rem; }
.page-header h1 { font-family: var(--font-serif); font-size: 3rem; letter-spacing: 4px; text-transform: uppercase; margin: 0 0 1rem 0; font-weight: 700; color: var(--color-text-primary); }
.search-container { position: relative; max-width: 600px; margin: auto; }

/* MODIFIED: Search input for dark theme */
#search-input { width: 100%; padding: 15px 20px 15px 50px; background-color: var(--color-surface); border: 1px solid var(--color-border); border-radius: 50px; color: var(--color-text-primary); font-size: 1.1rem; transition: all 0.2s; box-sizing: border-box; }
#search-input::placeholder { color: var(--color-text-secondary); }
#search-input:focus { border-color: var(--accent-color); box-shadow: 0 0 10px rgba(0, 201, 255, 0.2); outline: none; }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--color-text-secondary); width: 1em; height: 1em; }
.section-title { font-family: var(--font-serif); font-size: 2rem; color: var(--color-text-primary); margin: 3rem 0 2rem 0; text-align: center; border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }

#recipes-container, #search-results-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
#recipes-container { min-height: 800px; }
#search-results-container { display: none; }

/* MODIFIED: Placeholder for dark theme */
.recipe-card-placeholder { pointer-events: none; }
.recipe-card-placeholder .post-image { background-color: var(--color-surface); }
.recipe-card-placeholder h2 { height: 1.4rem; width: 80%; background: var(--color-surface); margin-bottom: 0.5rem; }
.recipe-card-placeholder p { height: 1rem; background: var(--color-surface); margin-top: 0.5rem; }
.recipe-card-placeholder p:nth-of-type(1) { width: 100%; }
.recipe-card-placeholder p:nth-of-type(2) { width: 60%; }

/* MODIFIED: Recipe card for dark theme */
.recipe-card { background-color: var(--color-surface); border-radius: 8px; border: 1px solid var(--color-border); text-decoration: none; color: var(--color-text-primary); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); border-color: #555; }
.recipe-card .post-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background-color: #333; }
.recipe-card .post-content { padding: 1.5rem; flex-grow: 1; }
.recipe-card h2 { font-family: var(--font-serif); color: var(--color-text-primary); margin: 0 0 0.5rem 0; font-size: 1.4rem; line-height: 1.4; }
.recipe-card p { line-height: 1.6; margin: 0; color: var(--color-text-secondary); font-size: 0.95rem; }
.no-results { text-align: center; padding: 4rem; color: var(--color-text-secondary); font-style: italic; font-size: 1.2rem; grid-column: 1 / -1; }

/* MODIFIED: Pagination for dark theme */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 3rem; }
.pagination-btn { background-color: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-secondary); font-family: var(--font-sans); font-weight: 600; padding: 10px 15px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.pagination-btn:hover:not(:disabled) { background-color: #444; color: var(--color-text-primary); }
.pagination-btn.active { background-color: var(--accent-color); color: #111; border-color: var(--accent-color); }
.pagination-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* MEDIA QUERIES */
@media (max-width: 992px) {
    :root { --menu-width: 250px; }
    body { flex-direction: column; padding: 0; }
    .main-content-wrapper { padding: 80px 20px 40px; margin-left: 0; }
    /* MODIFIED: Mobile header for dark theme */
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; background-color: var(--color-surface); border-bottom: 1px solid var(--color-border); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; cursor: pointer; z-index: 1002; color: var(--color-text-primary); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; }
    .hamburger-btn svg { width: 1em; height: 1em; }
    .mobile-title { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; color: var(--color-text-primary); }
    .left-menu { transform: translateX(-100%); transition: transform 0.3s ease-in-out; height: 100vh; width: var(--menu-width); min-width: var(--menu-width); }
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    .page-header h1 { font-size: 2.2rem; }
}