/* ==========================================================================
   VR PIZZA — MUTLU SAATLER (HERO BANNER) & OYUNLAŞTIRMA (GAMIFICATION) STYLES
   Zero AI Slop / Zero Emojis / 100% Vector & Modern SaaS Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO BANNER: MUTLU SAATLER (HAPPY HOUR) VITRIN ENTEGRASYONU
   -------------------------------------------------------------------------- */
.happy-hour-hero-slide {
    background: linear-gradient(135deg, #170d12 0%, #17111c 50%, #0d121c 100%) !important;
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding: 24px 32px !important;
    min-height: 240px;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.hero-happy-hour-container {
    width: 100%;
    z-index: 2;
    position: relative;
}

@media (min-width: 769px) {
    .hero-happy-hour-container {
        display: grid;
        grid-template-columns: 1.25fr 0.75fr;
        grid-template-rows: auto auto;
        gap: 16px 32px;
        align-items: center;
    }
    .hero-hh-top-content {
        display: contents;
    }
    .hero-hh-text-col {
        grid-column: 1;
        grid-row: 1;
    }
    .hero-hh-image-col {
        grid-column: 2;
        grid-row: 1 / span 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .hero-hh-actions {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .happy-hour-hero-slide {
        padding: 12px 14px !important;
    }
    .hero-happy-hour-container {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .hero-hh-top-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .hero-hh-text-col {
        flex: 1 1 auto;
        min-width: 0;
    }
    .hero-hh-image-col {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.hero-hh-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hh-pulse-dot {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
    animation: hhPulse 1.4s infinite;
}

@keyframes hhPulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.4; }
}

.hero-hh-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
}

.hero-hh-highlight {
    background: linear-gradient(135deg, #f87171 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-hh-desc {
    font-size: 13.5px !important;
    color: #94a3b8 !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
    max-width: 480px;
}

.hero-hh-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-hh-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 10px;
}

.hh-old-price {
    font-size: 14px;
    color: #64748b;
    text-decoration: line-through;
    font-weight: 600;
}

.hh-now-price {
    font-size: 24px;
    font-weight: 900;
    color: #f87171;
    letter-spacing: -0.02em;
}

.hh-saving-tag {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 5px;
}

.hero-hh-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 8px 14px;
    border-radius: 10px;
    color: #fbbf24;
}

.hh-timer-lbl {
    font-size: 9.5px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1;
}

.hh-timer-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.04em;
    line-height: 1.2;
    margin-top: 2px;
}

.hero-hh-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hero-hh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(239, 68, 68, 0.5) !important;
}

.hero-happy-hour-right,
.hero-hh-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-hh-pizza-art {
    position: relative;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.7));
}

.hero-hh-product-img {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 3.5px solid rgba(245, 158, 11, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(239, 68, 68, 0.35);
    background: #1e293b;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-hh-pizza-art:hover .hero-hh-product-img {
    transform: scale(1.04) rotate(2deg);
}

.hh-badge-pill {
    position: absolute;
    bottom: -6px;
    right: 6px;
    background: #141c2b;
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-hh-product-img {
        width: 74px !important;
        height: 74px !important;
        border-width: 2.5px !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(239, 68, 68, 0.35) !important;
    }
    .hero-hh-title {
        font-size: 15px !important;
        line-height: 1.22 !important;
        margin-bottom: 0 !important;
    }
    .hero-hh-desc {
        display: none !important;
    }
    .hero-hh-pill {
        margin-bottom: 3px !important;
        font-size: 9.5px !important;
        padding: 2px 7px !important;
    }
    .hero-hh-actions {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 3px !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    .hero-hh-price {
        padding: 5px 8px !important;
        border-radius: 8px !important;
        gap: 4px !important;
        flex-shrink: 0 !important;
    }
    .hh-old-price {
        font-size: 11px !important;
    }
    .hh-now-price {
        font-size: 15.5px !important;
    }
    .hh-saving-tag {
        display: none !important;
    }
    .hero-hh-timer {
        padding: 5px 8px !important;
        border-radius: 8px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }
    .hh-timer-lbl {
        font-size: 7.5px !important;
    }
    .hh-timer-val {
        font-size: 11.5px !important;
    }
    .hero-hh-btn {
        flex: 1 1 auto !important;
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        gap: 5px !important;
    }
    .hh-badge-pill {
        font-size: 8px !important;
        padding: 2px 5px !important;
        bottom: -3px !important;
        right: -3px !important;
    }
}

/* Ürün Kartı Rozeti */
.badge-hh-pill {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hh-card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --------------------------------------------------------------------------
   2. OYUNLAŞTIRMA (GAMIFICATION): ŞANS ÇARKI & KAZI-KAZAN MODAL
   -------------------------------------------------------------------------- */
.gamification-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(8px);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}

.gamification-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.gamification-modal-card {
    background: #111723;
    border: 1px solid #232d3f;
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    max-height: 94vh;
    overflow-y: auto;
    text-align: center;
}

.gamification-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #1a2234;
    border: 1px solid #2a374f;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.gamification-close-btn:hover {
    color: #fff;
    background: #243047;
}

.gamification-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.gamification-modal-sub {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.gamification-mode-nav {
    display: inline-flex;
    gap: 8px;
    background: #090d16;
    border: 1px solid #232d3f;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.gm-nav-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.gm-nav-btn.active {
    background: #1a2336;
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Şans Çarkı Sahnesi */
.wheel-stage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.wheel-casing {
    position: relative;
    width: 320px;
    height: 320px;
    padding: 12px;
    background: radial-gradient(circle, #1a2233 0%, #0d121c 80%);
    border-radius: 50%;
    border: 3px solid #2a374f;
    box-shadow: 0 0 0 6px #101625, 0 0 0 8px #243047, 0 20px 50px rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-casing-stud {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.8);
}

.wheel-canvas-el {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    transition: transform 5s cubic-bezier(0.12, 0.98, 0.22, 1);
    will-change: transform;
}

.wheel-pin-needle {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    transform-origin: top center;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6));
    transition: transform 0.08s ease;
}

.wheel-pin-needle.tick {
    transform: translateX(-50%) rotate(-16deg);
}

.wheel-center-hub {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #2a3447 0%, #101625 100%);
    border-radius: 50%;
    border: 3px solid #f59e0b;
    box-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 0 10px rgba(245,158,11,0.3);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.wheel-center-hub span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fbbf24;
    text-transform: uppercase;
}

.wheel-center-hub i {
    font-size: 13px;
    color: #fbbf24;
    margin-bottom: 2px;
}

.wheel-spin-btn {
    margin-top: 22px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.wheel-spin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.55);
}

.wheel-spin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Kazı-Kazan Sahnesi */
.scratch-stage-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.scratch-card-frame {
    position: relative;
    width: 360px;
    height: 210px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
    border: 2px solid #2a374f;
    user-select: none;
    touch-action: none;
    background: #0f1523;
}

@media (max-width: 440px) {
    .scratch-card-frame { width: 300px; height: 180px; }
}

.scratch-reward-underlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #172236 0%, #0d1422 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
}

.scratch-trophy-icon {
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #34d399;
    margin-bottom: 10px;
    font-size: 18px;
}

.scratch-reward-title {
    font-size: 19px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.scratch-reward-note {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

.scratch-canvas-top {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: crosshair;
    border-radius: 12px;
    transition: opacity 0.4s ease;
}

.scratch-metric-row {
    width: 360px;
    max-width: 100%;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #94a3b8;
}

.scratch-metric-track {
    flex: 1;
    height: 6px;
    background: #141c2b;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #232d3f;
}

.scratch-metric-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.1s ease;
}

/* Zafer Kartı (Victory Modal) */
.gamification-victory-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 15, 0.88);
    backdrop-filter: blur(8px);
    z-index: 12500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    padding: 16px;
}

.gamification-victory-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.gamification-victory-card {
    background: #121824;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 20px;
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,0.85);
    position: relative;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gamification-victory-backdrop.active .gamification-victory-card {
    transform: scale(1);
}

.victory-trophy-badge {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(239, 68, 68, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: 14px;
    margin: 0 auto 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-size: 24px;
}

.victory-banner-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    margin: 16px 0;
}

#gmConfettiCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 12600;
}
