/* File: assets/css/style.css */

/* --- Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-red: #d42426;
    --dark-red: #8b0000;
    --christmas-green: #165b33;
    --gold: #f8b229;
    --snow: #f0f6f6;
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-red);
    background-image: radial-gradient(circle, var(--primary-red), var(--dark-red));
    color: var(--snow);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Snow Effect --- */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image: url('https://cdn.pixabay.com/photo/2017/08/17/14/05/snow-2651473_960_720.png');
    opacity: 0.3;
    animation: snow 20s linear infinite;
}

@keyframes snow {
    0% { background-position: 0 0; }
    100% { background-position: 0 500px; }
}

/* --- Layout --- */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

h1, h2, h3 {
    font-family: 'Mountains of Christmas', cursive;
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
h1 { font-size: 3rem; margin-bottom: 10px; }

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}
.coin-display {
    background: var(--gold);
    color: var(--dark-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-links a {
    color: var(--snow);
    text-decoration: none;
    margin-left: 15px;
    font-weight: 600;
}

/* --- CSS ONLY WHEEL --- */
.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 20px auto 40px;
    border: 8px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: #fff;
    overflow: hidden;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); /* Realistic spin easing */
    /* This creates the pie slices */
    background: conic-gradient(
        var(--christmas-green) 0deg 60deg,
        var(--primary-red) 60deg 120deg,
        var(--christmas-green) 120deg 180deg,
        var(--primary-red) 180deg 240deg,
        var(--christmas-green) 240deg 300deg,
        var(--primary-red) 300deg 360deg
    );
    position: relative;
}

/* Wheel Lines */
#wheel-canvas::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        transparent 0deg 59deg,
        var(--gold) 59deg 60deg
    );
}

/* Center Knob */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Pointer */
.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid white;
    z-index: 10;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5));
}

#spin-btn {
    background: linear-gradient(45deg, var(--christmas-green), #2e8b57);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Mountains of Christmas', cursive;
    font-weight: bold;
    box-shadow: 0 5px 0 #0f4024;
    transition: transform 0.1s;
}
#spin-btn:active { transform: translateY(5px); box-shadow: none; }
#spin-btn:disabled { background: #555; box-shadow: none; cursor: not-allowed; }

/* --- Forms & Banner --- */
.auth-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    max-width: 400px;
    margin: 20px auto;
}
.form-group { margin-bottom: 15px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; color: var(--gold); }
.form-group input { width: 100%; padding: 10px; border: none; border-radius: 5px; }
.btn-primary { background: var(--gold); color: var(--dark-red); border: none; padding: 10px 20px; width: 100%; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s;}
.btn-primary:hover { background: #e5a320; }
.banner-ad { margin-top: 20px; border-radius: 10px; overflow: hidden; border: 2px solid var(--gold); }
.banner-ad img { width: 100%; height: auto; display: block; }