/* =====================
   STYLE-FOOD.CSS
   Mad Magyar food website
   Override style-main.css variables
   ===================== */

:root {
    --color-primary: #cc0000;
    --color-primary-dark: #aa0000;
    --color-primary-light: #ff3333;
    --color-secondary: #c9a84c;
    --color-green: #2d8a2d;
    --color-bg: #111111;
    --color-bg-dark: #1a1a1a;
    --color-bg-section: #1a1a1a;
    --color-text: #ffffff;
    --color-text-light: #cccccc;
    --color-text-heading: #ffffff;
    --color-border: #333333;
    --color-header-bg: #000000;
    --color-nav-text: #ffffff;
    --color-nav-hover: #cc0000;
    --color-button-bg: #cc0000;
    --color-button-text: #ffffff;
    --color-table-header-bg: #cc0000;
    --color-table-header-text: #ffffff;
    --color-row-alt: #1a1a1a;
    --font-main: 'Lato', sans-serif;
    --font-title: 'Playfair Display', serif;
}

/* =====================
   DARK BACKGROUND OVERRIDES
   ===================== */
html {
    background-color: #111111;
}

body,
.wrapper,
.wrapper.style2,
.wrapper.style3,
#main,
section#main,
.container {
    background-color: #111111 !important;
    color: #ffffff !important;
}

.content-box {
    background: #1a1a1a !important;
    border: 1px solid #333333;
}

/* =====================
   HEADER & NAV
   ===================== */
#header {
    background: #000000 !important;
    border-bottom: 2px solid #cc0000;
}

header.major {
    margin: 0 0 1em 0;
    text-align: center;
}

header.major h1 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    font-weight: 700;
}

header.major h2 {
    color: #cccccc;
    font-size: 1.2em;
    font-weight: 400;
}

header.major p {
    color: #cccccc;
    font-style: italic;
}

#nav a {
    color: #ffffff !important;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

#nav a:hover {
    color: #cc0000 !important;
}

/* =====================
   SIDE NAV DARK OVERRIDES
   ===================== */
p.categories,
p.categories a {
    color: #cc0000 !important;
    border-bottom-color: #333333 !important;
}

p.subcategories,
p.subcategories a {
    color: #ffffff !important;
}

p.subcategories1,
p.subcategories1 a {
    color: #cccccc !important;
}

/* Dropotron dark */
.dropotron {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.dropotron.level-0:before {
    background: #1a1a1a !important;
    border-color: #333333 !important;
}

.dropotron li > a {
    color: #cccccc !important;
}

.dropotron li:hover > a,
.dropotron li.active > a {
    background: #cc0000 !important;
    color: #ffffff !important;
}
/* =====================
   FORMS DARK
   ===================== */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    background: #1a1a1a !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #cc0000 !important;
}

/* =====================
   FOOTER
   ===================== */
#footer {
    background: #000000 !important;
    border-top: 2px solid #cc0000 !important;
    padding: 1em 0 !important;
    width: 100% !important;
    color: #cccccc !important;
}

#footer hr.footer-line {
    display: none !important;
}

#footer .container {
    background: #000000 !important;
}

/* =====================
   QUOTE BANNER
   ===================== */
.quote-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.quote-banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.quote-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.quote-container {
    position: relative;
    z-index: 2;
    padding: 2em 3em;
    max-width: 70%;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #ffffff;
    font-style: italic;
    line-height: 1.5;
    opacity: 0;
    position: absolute;
    transition: opacity 1s ease;
}

.quote-text.active {
    opacity: 1;
    position: relative;
}

.quote-author {
    color: #c9a84c;
    font-size: 0.9em;
    font-weight: 700;
    margin-top: 0.5em;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* =====================
   MAIN IMAGE SLIDER
   ===================== */
.main-slider-section {
    margin: 2em 0;
}

.swiper-container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #cc0000 !important;
}

.swiper-pagination-bullet-active {
    background: #cc0000 !important;
}

/* =====================
   WHITE BOXES
   ===================== */
.white-box {
    background: #ffffff;
    color: #333333;
    padding: 1.2em;
    border-radius: 4px;
    margin-bottom: 1em;
    height: 100%;
}

.white-box h3 {
    color: #cc0000;
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    margin-bottom: 0.5em;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 0.3em;
}

.white-box p {
    color: #333333;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* =====================
   SEARCH BAR INDEX
   ===================== */
.index-search {
    display: flex;
    align-items: stretch;
    margin: 2em 0;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #cc0000;
}

.index-search .browse-label {
    background: #cc0000;
    color: #ffffff;
    padding: 0.7em 1.2em;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.index-search input[type="text"] {
    flex: 1;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    color: #333333 !important;
    padding: 0.7em 1em;
    font-size: 0.95em;
}

.index-search input[type="text"]::placeholder {
    color: #999999;
}

.index-search button {
    background: #cc0000;
    border: none;
    color: #ffffff;
    padding: 0.7em 1.2em;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

.index-search button:hover {
    background: #aa0000;
}

/* =====================
   BOTTOM BOXES
   ===================== */
.bottom-box {
    text-align: center;
    padding: 1.5em 1em;
    margin-top: 1.5em;
    border-top: 2px solid #cc0000;
    border-bottom: 2px solid #cc0000;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bottom-box img.mini-logo {
    width: 60px;
    height: auto;
    margin-bottom: 0.5em;
}

.bottom-box h3 {
    color: #cc0000;
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    margin: 0.3em 0;
}

.bottom-box h4 {
    color: #c9a84c;
    font-family: 'Lato', sans-serif;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0.2em 0;
}

.bottom-box p {
    color: #cccccc;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0.5em 0 0 0;
    flex: 1;
}

/* =====================
   GOLD TRIM DIVIDER
   ===================== */
.gold-trim {
    border-top: 2px solid #c9a84c;
    margin: 2em 0;
}

/* =====================
   RECIPE PAGE
   ===================== */
.recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 0.2em;
}

.recipe-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    color: #cccccc;
    font-style: italic;
    margin-bottom: 1em;
}

.recipe-meta {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-left: 4px solid #cc0000;
    padding: 1em;
    margin-bottom: 1.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

.recipe-meta-item { text-align: center; }

.recipe-meta-label {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #cc0000;
    font-weight: 700;
}

.recipe-meta-value {
    display: block;
    font-size: 1em;
    color: #ffffff;
    font-weight: 400;
}

.recipe-section-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #cc0000;
    border-bottom: 1px solid #333333;
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    margin-top: 1.5em;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-list li {
    padding: 0.4em 0;
    border-bottom: 1px solid #222222;
    display: flex;
    align-items: center;
    gap: 0.7em;
    color: #ffffff;
    font-size: 0.95em;
}

.ingredient-list li input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.ingredient-list li.checked {
    text-decoration: line-through;
    color: #666666;
}

.direction-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.direction-list li {
    padding: 0.8em 0 0.8em 3.5em;
    border-bottom: 1px solid #222222;
    position: relative;
    color: #ffffff;
    line-height: 1.6;
}

.direction-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.6em;
    background: #cc0000;
    color: #ffffff;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
}

.recipe-image {
    width: 100%;
    border: 1px solid #333333;
    border-radius: 4px;
    object-fit: cover;
}

.recipe-image-group {
    display: flex;
    gap: 1em;
    margin-top: 1.5em;
}

.recipe-image-group img {
    flex: 1;
    width: 0;
    border: 1px solid #333333;
    border-radius: 4px;
    object-fit: cover;
}

.recipe-source {
    background: #1a1a1a;
    border-left: 4px solid #cc0000;
    padding: 0.8em 1em;
    margin: 1.5em 0;
    color: #cccccc;
    font-style: italic;
    font-size: 0.9em;
}

.print-btn {
    float: right;
    background: #cc0000;
    color: #ffffff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.print-btn:hover {
    background: #aa0000;
    color: #ffffff;
}

.back-link {
    display: inline-block;
    color: #cc0000;
    text-decoration: none;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.back-link:hover { color: #ff3333; }

/* =====================
   PRINT
   ===================== */
@media print {
    #header, #footer, .print-btn, .back-link,
    #nav, .search-bar, .index-search { display: none !important; }
    body { background: #ffffff !important; color: #000000 !important; }
    .recipe-title, h1, h2, h3 { color: #000000 !important; }
    .recipe-section-header { color: #cc0000 !important; }
    .ingredient-list li, .direction-list li { color: #000000 !important; }
}

/* =====================
   MOBILE
   ===================== */
@media (max-width: 736px) {
    .recipe-title { font-size: 1.8em; }
    .recipe-meta { gap: 1em; }
    .recipe-image-group { flex-direction: column; }
    .quote-container { max-width: 90%; padding: 1.5em; }
    .quote-text { font-size: 1.1em; }
    .swiper-slide img { height: 250px; }
    .index-search { flex-wrap: wrap; }
}