
/* Cuban-inspired color palette from barbaromojo.com */
:root {
    --cuban-red: rgb(219, 28, 37);
    --warm-cream: rgb(224, 204, 184);
    --dark-maroon: rgb(61, 8, 27);
    --vibrant-yellow: rgb(249, 229, 71);
    --off-white: rgb(242, 239, 221);
    --charcoal: rgb(25, 25, 25);
    --habanero-orange: #ff6b35;
    --salsa-green: #4ecdc4;
}

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

body {
    font-family: 'Merriweather', serif;
    background-color: var(--off-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated salsa background */
.salsa-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(219, 28, 37, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(249, 229, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: salsaFlow 20s ease-in-out infinite;
}

@keyframes salsaFlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--cuban-red), var(--dark-maroon));
    color: var(--off-white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: slidePattern 20s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.logo-emoji {
    font-size: 3rem;
    animation: pepperDance 2s ease-in-out infinite;
}

@keyframes pepperDance {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Sommelier Character Section */
.sommelier-intro {
    background: var(--warm-cream);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.sommelier-intro::before {
    content: '🌶️';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    right: -50px;
    top: -50px;
    transform: rotate(25deg);
}

.sommelier-character {
    text-align: center;
}

.sommelier-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.sommelier-emoji {
    font-size: 6rem;
    display: block;
    animation: bobbing 3s ease-in-out infinite;
}

@keyframes bobbing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.speech-bubble {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    top: 0;
    right: -150px;
    width: 200px;
    animation: bubblePop 0.5s ease-out;
    z-index: 10;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

@keyframes bubblePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.sommelier-intro h2 {
    color: var(--cuban-red);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.sommelier-bio {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Heat Selector */
.recommendation-engine {
    text-align: center;
}

.recommendation-engine h2 {
    color: var(--dark-maroon);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.heat-selector {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.heat-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.heat-btn {
    background: white;
    border: 3px solid var(--cuban-red);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.heat-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(219, 28, 37, 0.3);
    background: var(--cuban-red);
    color: white;
}

.heat-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.recommendation-result {
    margin-top: 3rem;
}

.recommendation-result.hidden {
    display: none;
}

.sauce-card {
    background: linear-gradient(135deg, var(--warm-cream), white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--cuban-red);
    max-width: 600px;
    margin: 0 auto;
}

.sauce-card h4 {
    color: var(--cuban-red);
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
}

.hot-sauce-collection h2 {
    text-align: center;
    color: var(--dark-maroon);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.sauce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.sauce-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sauce-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(219, 28, 37, 0.2);
}

.sauce-bottle {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cuban-wisdom {
    background: var(--dark-maroon);
    color: var(--off-white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.cuban-wisdom h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.wisdom-carousel {
    position: relative;
    height: 150px;
    margin-bottom: 2rem;
}

.wisdom-card {
    position: absolute;
    width: 100%;
    padding: 2rem;
    opacity: 0;
    transition: all 0.5s ease;
}

.wisdom-card.active {
    opacity: 1;
}

.wisdom-btn {
    background: var(--vibrant-yellow);
    color: var(--charcoal);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.heat-meter h2 {
    text-align: center;
    color: var(--dark-maroon);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.meter-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
}

.heat-scale {
    position: relative;
    height: 100px;
    margin-bottom: 1rem;
}

.scale-marker {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
}

.marker-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--dark-maroon);
    white-space: nowrap;
}

.heat-gradient {
    height: 20px;
    background: linear-gradient(to right, green, yellow, orange, red, darkred);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.pairing-guide h2 {
    text-align: center;
    color: var(--dark-maroon);
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.pairing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.pairing-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.food-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

footer {
    background: var(--charcoal);
    color: var(--off-white);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.floating-peppers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-pepper {
    position: absolute;
    font-size: 2rem;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .speech-bubble {
        display: none;
    }
    
    .heat-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1024px) {
    .speech-bubble {
        display: none;
    }
}

/* Modal Styles */
.sauce-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sauce-modal {
    background: var(--off-white);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--cuban-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--dark-maroon);
    transform: rotate(90deg);
}

.modal-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.modal-btn-primary {
    background: var(--cuban-red);
    color: white;
}

.modal-btn-primary:hover {
    background: var(--dark-maroon);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 28, 37, 0.4);
}

.modal-btn-secondary {
    background: var(--warm-cream);
    color: var(--charcoal);
}

.modal-btn-secondary:hover {
    background: var(--vibrant-yellow);
    transform: translateY(-2px);
}