/* Premium Aesthetic Details */
:root {
    --text-primary: #fdf5e6; /* warm off-white */
    --text-muted: #d4c4b7;
    --accent: #d2a679; /* soft gold/almond tone */
    --bg-overlay: rgba(26, 18, 14, 0.75); /* rich dark chocolate overlay */
    --glass-bg: rgba(44, 30, 22, 0.4);
    --glass-border: rgba(210, 166, 121, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    background-color: #110c0a;
}

/* Background image handling */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/darklingchocolate.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    animation: slowZoom 20s infinite alternate linear;
    pointer-events: none;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(17, 12, 10, 0.4) 0%, rgba(17, 12, 10, 0.9) 100%);
    z-index: 2;
    pointer-events: none;
}

#app {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 2rem;
}

/* Header & Lang Selector */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
}

.lang-selector-container {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.5rem 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    color: var(--text-primary);
}

.lang-selector-container:hover {
    background: rgba(44, 30, 22, 0.6);
    border-color: rgba(210, 166, 121, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lang-selector-container .globe-icon {
    margin-right: 0.5rem;
    color: var(--accent);
}

.lang-selector-container .chevron-icon {
    margin-left: 0.5rem;
    pointer-events: none;
    color: var(--text-muted);
}

select#lang-select {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    padding-right: 0.5rem;
}

select#lang-select option {
    background-color: #2c1e16;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.top-left-content {
    margin-top: -2rem;
}

#title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 24px rgba(0,0,0,0.4);
    background: linear-gradient(to bottom right, #fff, #d2a679);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

/* Delivery Badge */
.delivery-wrapper {
    align-self: center;
    margin-bottom: -1rem;
}

.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--accent);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.delivery-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(210, 166, 121, 0.2);
}

.delivery-badge svg {
    color: var(--accent);
}

.delivery-badge span {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #app {
        padding: 1rem;
    }
    header {
        padding: 0.5rem 1rem;
    }
    .delivery-badge {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
}

/* Ingredients Page */
.ingredients-page .top-left-content {
    margin-top: 0;
}

#ing-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to bottom right, #fff, #d2a679);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ingredients-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ingredients-list li {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-primary);
    font-weight: 300;
    display: flex;
    align-items: center;
}

.ingredients-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 0.75rem;
    line-height: 0;
}
