/* =============================================
   TANDOORI GRILL & PIZZA - Premium Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --color-bg-dark: #f5f0e8;
    --color-bg-card: rgba(255, 255, 255, 0.95);
    --color-bg-card-hover: rgba(255, 255, 255, 1);
    --color-red: #c41e3a;
    --color-red-dark: #a01830;
    --color-red-light: #e63950;
    --color-yellow: #f5a623;
    --color-orange: #e85d04;
    --color-gold: #d4af37;
    --color-white: #ffffff;
    --color-cream: #f5f0e8;
    --color-text-dark: #2d2d2d;
    --color-text-muted: #555555;
    --color-gray-light: #666666;
    --color-gray: #888888;
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    background-color: #f5f0e8;
    background-image: 
        /* Subtle texture pattern */
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4c4a8' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a {
    color: var(--color-red);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-cream);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure content is above background effects */
header, nav, main, footer {
    position: relative;
    z-index: 1;
}

/* =============================================
   HEADER & BANNER
   ============================================= */

header {
    position: relative;
    width: 100%;
    background: var(--color-bg-dark);
}

/* Header banner container */
.header-banner {
    width: 100%;
    background: var(--color-bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.banner-image {
    width: 100%;
    max-width: 900px;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Fallback animated banner (if image not available) */
.banner-container {
    position: relative;
    width: 100%;
    min-height: 200px;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@keyframes bannerGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.banner-fallback {
    text-align: center;
    z-index: 1;
    padding: 40px 20px;
}

.banner-fallback h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-red-dark);
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.banner-fallback .tagline {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.banner-fallback .icons {
    font-size: 2.5rem;
    margin-top: 15px;
    color: var(--color-red);
}

.banner {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-white);
    padding: 6px 12px;
    border-radius: 25px;
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: var(--shadow);
}

.language-switcher a {
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 15px;
    transition: var(--transition);
}

.language-switcher a:hover {
    background: rgba(196, 30, 58, 0.1);
    color: var(--color-red);
}

.language-switcher a.active {
    background: var(--color-red);
    color: var(--color-white);
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
    position: sticky;
    top: 0;
    background: var(--color-red-dark);
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle:hover span {
    background: var(--color-yellow);
}

/* =============================================
   MAIN CONTENT
   ============================================= */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

section {
    margin-bottom: 60px;
}

/* =============================================
   MENU SECTION WATERMARKS
   ============================================= */

/* Base styles for sections with watermarks */
#pizza,
#doener,
#burger,
#rice {
    position: relative;
    overflow: hidden;
}

/* Watermark pseudo-element base styles */
#pizza::before,
#doener::before,
#burger::before,
#rice::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Individual section watermarks */
#pizza::before {
    background-image: url('../images/pizza-watermark.png');
}

#doener::before {
    background-image: url('../images/doner-watermark.png');
}

#burger::before {
    background-image: url('../images/burger-watermark.png');
}

#rice::before {
    background-image: url('../images/rice-watermark.png');
}

/* Ensure content stays above watermark */
.section-header,
.section-subtitle,
.pizza-grid,
.menu-grid,
.menu-item {
    position: relative;
    z-index: 1;
}

/* Section Headers */
.section-header {
    background: var(--color-red);
    color: var(--color-white);
    padding: 18px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: var(--shadow);
}

.section-subtitle {
    text-align: center;
    color: #f5f0e8;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    background: #3d3d3d;
    padding: 18px 30px;
    border-radius: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
}

/* =============================================
   MENU CARDS
   ============================================= */

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.pizza-grid {
    display: grid;
    gap: 20px;
}

.menu-item {
    background: var(--color-bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 3px solid var(--color-red);
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--color-bg-card-hover);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.menu-item-number {
    color: var(--color-red);
    font-weight: 800;
    margin-right: 10px;
    font-size: 1.1rem;
}

.menu-item-allergens {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-left: 8px;
    font-weight: 400;
}

.menu-item-description {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.menu-item-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.price-tag {
    background: var(--color-red);
    color: var(--color-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.price-tag.single {
    background: var(--color-red-dark);
    color: var(--color-white);
}

.price-size {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Pizza Size Header */
.pizza-sizes-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 15px 25px;
    background: var(--color-red-dark);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.pizza-sizes-header .sizes {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

.pizza-sizes-header span {
    font-weight: 700;
    color: var(--color-white);
    min-width: 50px;
    text-align: center;
}

/* =============================================
   SPECIAL OFFERS
   ============================================= */

.offer-box {
    background: var(--color-yellow);
    color: var(--color-text-dark);
    padding: 20px 25px;
    border-radius: var(--border-radius);
    margin-top: 25px;
    text-align: center;
    box-shadow: var(--shadow);
}

.offer-box h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.offer-box p {
    font-weight: 600;
    font-size: 0.95rem;
}

.offer-box .offer-price {
    font-size: 1.3rem;
    color: var(--color-red-dark);
    font-weight: 800;
    margin-top: 5px;
}

/* Extras Section */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.extra-item {
    background: var(--color-bg-card);
    padding: 18px 20px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.extra-item:hover {
    box-shadow: var(--shadow-hover);
}

.extra-item span:last-child {
    color: var(--color-red);
    font-weight: 700;
    font-size: 1.1rem;
}

/* =============================================
   ALLERGEN LEGEND
   ============================================= */

.allergen-section {
    background: var(--color-bg-card);
    padding: 35px;
    border-radius: var(--border-radius);
    margin-top: 50px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow);
}

.allergen-section h3 {
    color: var(--color-text-dark);
    margin-bottom: 25px;
    font-size: 1.4rem;
    text-align: center;
}

.allergen-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.allergen-column h4 {
    color: var(--color-red);
    margin-bottom: 18px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--color-red);
    padding-bottom: 8px;
    display: inline-block;
}

.allergen-column ul {
    list-style: none;
}

.allergen-column li {
    padding: 8px 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.allergen-column li:last-child {
    border-bottom: none;
}

.allergen-column li strong {
    color: var(--color-red);
    margin-right: 10px;
    font-weight: 700;
}

/* =============================================
   CONTACT & INFO SECTION
   ============================================= */

.contact-section {
    background: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    color: var(--color-text-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-red);
    padding-bottom: 10px;
    display: inline-block;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(196, 30, 58, 0.08);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--color-red);
    min-width: 40px;
    text-align: center;
}

.contact-details h4 {
    color: var(--color-text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-details p,
.contact-details a {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--color-red);
}

/* Opening Hours */
.opening-hours {
    background: var(--color-red);
    color: var(--color-white);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.opening-hours h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.opening-hours p {
    font-size: 1.4rem;
    font-weight: 700;
}

/* Delivery Info */
.delivery-info {
    background: #3d3d3d;
    color: var(--color-white);
    padding: 25px 30px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    box-shadow: var(--shadow);
}

.delivery-info h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: center;
}

.delivery-info p {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.delivery-info a {
    color: var(--color-yellow);
}

.delivery-info a:hover {
    color: var(--color-white);
}

/* Lieferando Order Button */
.lieferando-order-button {
    background: var(--color-bg-card);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    margin-top: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--color-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lieferando-order-button h4 {
    font-size: 1.2rem;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.lieferando-order-button iframe {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

/* Google Maps */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
    background: var(--color-red-dark);
    padding: 35px 20px;
    text-align: center;
    margin-top: 60px;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

footer a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 10px;
    transition: var(--transition);
}

footer a:hover {
    color: var(--color-white);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .banner-container {
        min-height: 180px;
    }

    .banner-fallback h1 {
        font-size: 1.8rem;
    }

    .banner-fallback .tagline {
        font-size: 1rem;
    }

    .banner {
        max-height: 200px;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }

    .language-switcher a {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, var(--color-red-dark), rgba(100, 10, 20, 0.98));
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        border-bottom: 2px solid var(--color-yellow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        text-align: center;
        border-radius: var(--border-radius);
    }

    /* Sections */
    .section-header {
        font-size: 1.4rem;
        padding: 15px 25px;
        letter-spacing: 2px;
    }

    main {
        padding: 20px 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-item {
        padding: 20px;
    }

    .menu-item-header {
        flex-direction: column;
    }

    .menu-item-prices {
        width: 100%;
        justify-content: flex-start;
    }

    /* Contact */
    .contact-section {
        padding: 30px 20px;
    }

    .contact-grid {
        gap: 35px;
    }

    /* Allergen */
    .allergen-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .banner-fallback h1 {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .section-header {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .menu-item-name {
        font-size: 1.1rem;
    }

    .price-tag {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .offer-box {
        padding: 20px 15px;
    }

    .offer-box h4 {
        font-size: 1.1rem;
    }

    .pizza-sizes-header {
        display: none;
    }

    .contact-item {
        padding: 12px;
    }

    .opening-hours {
        padding: 20px;
    }

    .opening-hours p {
        font-size: 1.2rem;
    }
}

/* Print Styles */
@media print {
    nav, .language-switcher, .map-container {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .menu-item {
        background: #f5f5f5;
        break-inside: avoid;
        border: 1px solid #ddd;
    }

    .section-header {
        background: #c41e3a;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
