/* assets/css/style.css (Final, Highly Compatible Version) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary-color: #001f3f; /* Darker Navy */
    --secondary-color: #FFD700; /* Gold */
    --text-color-light: #ffffff;
}

/* Base and Body Styles for Compatibility */
html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color: var(--text-color-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #001021; /* Fallback background */
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/festival-flyer.png');
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.4);
    transform: scale(1.1);
    z-index: -1;
    transition: transform 0.5s ease-in-out;
}
body.drawing-active::before {
    transform: scale(1.15);
}

/* Header and Navigation */
header {
    background-color: rgba(0, 25, 51, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    padding: 0.75rem 2rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
nav { display: flex; justify-content: space-between; align-items: center; }
.nav-left { display: flex; align-items: center; gap: 15px; }
.logo { height: 45px; width: auto; }
nav h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.nav-link { color: var(--text-color-light); text-decoration: none; font-weight: 700; transition: color 0.3s; }
.nav-link:hover { color: var(--secondary-color); }

/* Main Content Area */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 2rem;
    text-align: center;
}

/* Main Raffle Display */
.raffle-container {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 25vh;
}
#raffle-display {
    font-size: clamp(4rem, 12vw, 8rem); /* Responsive font size */
    font-weight: 900;
    color: var(--text-color-light);
    text-shadow: 0 0 15px rgba(0,0,0,0.7);
    letter-spacing: 2px;
}
.flyer { display: none; }

/* Winner Announcement */
#winner-announcement { color: var(--text-color-light); }
#winner-announcement.hidden { display: none; }
#winner-name {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--secondary-color);
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    animation: reveal 1s ease-out forwards;
}
@keyframes reveal { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Controls and Buttons */
.controls { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.draw-btn {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}
.draw-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.7);
}
.draw-btn:disabled {
    border-color: #555;
    color: #555;
    background-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

/* Swag Winners Display */
#swag-winners-display { text-align: center; }
#swag-winners-display h4 { font-size: 1.2rem; margin-bottom: 1rem; color: rgba(255,255,255,0.8); }
#swag-winners-list { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
#swag-winners-list li {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Footer */
footer { position: fixed; bottom: 10px; right: 15px; display: flex; align-items: center; }
footer p { margin: 0 10px 0 0; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.mhl-logo { height: 25px; width: auto; }
.hidden { display: none; }