:root {
    --wine-red: #4A0E0E;
    --gold: #C5A059;
    --paper: #FDFBF7;
    --text: #2D3436;
    --oak: #6b4423;
    --chrome: #b0b0b0; /* Refined from steel for a kitchen look */
}

body { background: var(--paper); color: var(--text); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; }

/* --- Navbar Styles (Branded for Team Ramsay) --- */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.2rem 5%; 
    background: white; 
    border-bottom: 3px solid var(--wine-red); /* Strong kitchen accent */
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo { 
    font-size: 1.1rem; 
    font-weight: 900; 
    color: #111; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.logo span { color: var(--wine-red); }

#wineSearch { 
    padding: 10px 15px; 
    border-radius: 2px; 
    border: 1px solid #ddd; 
    width: 220px; 
    outline: none; 
    font-size: 0.75rem;
    transition: all 0.3s; 
}
#wineSearch:focus { border-color: var(--wine-red); box-shadow: 0 0 5px rgba(74, 14, 14, 0.1); }

/* --- Menu List Styles --- */
.category-header { 
    background: #1a1a1a; /* Dark industrial header */
    padding: 12px 5%; 
    margin: 0; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: white; 
    letter-spacing: 2px; 
}

.wine-item { 
    display: grid; 
    grid-template-columns: 60px 1fr 80px; 
    padding: 18px 5%; 
    border-bottom: 1px solid #eee; 
    cursor: pointer; 
    transition: 0.2s; 
    background: white; 
}
.wine-item:hover { background: #fcfcfc; border-left: 4px solid var(--wine-red); }
.wine-id { font-weight: bold; color: var(--wine-red); align-self: start; padding-top: 2px; }

.pitch-snippet { 
    font-size: 0.85rem; 
    color: #555; 
    font-style: italic; 
    margin-top: 6px; 
    border-left: 2px solid var(--wine-red); 
    padding-left: 12px; 
}
.wine-year { text-align: right; color: #999; font-weight: 500; }

/* --- Interactive Label Styles (New) --- */
.label-link {
    color: var(--gold);
    text-decoration: underline dotted;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s ease;
}
.label-link:hover {
    color: var(--wine-red);
    text-decoration: underline solid;
}

/* --- Barrel Modal Styles --- */
.modal { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.9); /* Darker overlay for better focus */
    display: flex; justify-content: center; 
    align-items: center; z-index: 2000; backdrop-filter: blur(8px); 
}

.modal-content { 
    background: white; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)),
        url('https://www.transparenttextures.com/patterns/wood-pattern.png');
    width: 95%; 
    max-width: 850px; 
    padding: 45px; 
    border-radius: 140px / 35px; /* Pronounced barrel curve */
    max-height: 92vh; 
    overflow-y: auto; 
    position: relative; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border-top: 14px solid var(--chrome); 
    border-bottom: 14px solid var(--chrome);
}

.close-modal { position: absolute; right: 30px; top: 15px; font-size: 2rem; cursor: pointer; color: #333; transition: color 0.2s; z-index: 10; }
.close-modal:hover { color: var(--wine-red); }

/* --- Method Button (Chrome Stave) --- */
.method-btn {
    background: #333;
    border: 1px solid var(--chrome);
    color: white;
    padding: 8px 18px;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: pulse-chrome 2.5s infinite;
    transition: all 0.3s ease;
}
.method-btn:hover { background: var(--wine-red); border-color: var(--wine-red); transform: translateY(-1px); }

@keyframes pulse-chrome {
    0% { box-shadow: 0 0 0 0 rgba(176, 176, 176, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(176, 176, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 176, 176, 0); }
}

/* --- Modal Grid & Charts --- */
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 25px 0; }
.chart-container { 
    background: #fcfcfc; 
    border-radius: 8px; 
    padding: 20px; 
    height: 300px; 
    border: 1px solid #eee; 
    display: flex; 
    align-items: center; 
}
#map-container { height: 300px; border-radius: 8px; border: 1px solid #ddd; }

.palate-box { 
    background: var(--wine-red); 
    color: white; 
    padding: 20px; 
    border-radius: 4px; 
    text-align: center; 
    font-size: 1.1rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.study-guide-box { 
    background: #fdfae6; 
    border-left: 4px solid var(--gold); 
    padding: 15px; 
    margin: 20px 0; 
}

/* --- Pairing Tags --- */
.pairing-tag { 
    background: #eee; 
    color: #111; 
    padding: 6px 14px; 
    border-radius: 2px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    margin: 4px; 
    display: inline-block;
    border: 1px solid #ddd;
    transition: 0.2s;
}
.pairing-tag:hover { background: var(--wine-red); color: white; border-color: var(--wine-red); }

.hidden { display: none !important; }

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .visual-grid { grid-template-columns: 1fr; }
    .wine-item { grid-template-columns: 50px 1fr 60px; }
    .modal-content { padding: 25px; border-radius: 60px / 15px; max-height: 95vh; }
    .chart-container, #map-container { height: 250px; }
}