@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

/* --- Local Fonts (../fonts) --- */
@font-face {
    font-family: 'CeraGR';
    src: url('../fonts/CeraGR-Black.woff2') format('woff2'),
         url('../fonts/CeraGR-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gas';
    src: url('../fonts/Gas.woff2') format('woff2'),
         url('../fonts/Gas.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LEDCounter7';
    src: url('../fonts/LEDCounter7.woff2') format('woff2'),
         url('../fonts/LEDCounter7.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Pangram Sans';
    src: url('../fonts/PPPangramSansBold-Bold.woff2') format('woff2'),
         url('../fonts/PPPangramSansBold-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Verdana Local';
    src: url('../fonts/Verdana.woff2') format('woff2'),
         url('../fonts/Verdana.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Premium Reset & Luxury Palette Variables */
:root {
    --bg-deep: #512803;
    --bg-light: #efaa1c;
    --bg-radial: radial-gradient(circle at 50% 45%, var(--bg-light) 0%, #a0610f 35%, var(--bg-deep) 75%);
    --card-bg: rgba(133, 120, 3, 0.75);
    --gold-linear: linear-gradient(135deg, #c08b0c 0%, rgb(214, 169, 32) 50%, rgb(116, 85, 8) 100%);
    --gold-solid: #f3be24;
    --neon-blue: #f3be24;
    --text-pure: #ffffff;
    --text-muted: #ffffff;
    --font-display: 'Noto Serif', serif;
    --font-sans: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal/vertical overflow globally */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-deep);
    background-image: var(--bg-radial);
    background-attachment: fixed;
    font-family: var(--font-sans);
    color: var(--text-pure);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px 40px 20px;
}

/* --- Global Site Header & Centered Logo --- */
.site-header {
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.logo-link {
    display: inline-block;
    line-height: 0;
}

.site-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

/* Ambient Moving Background Lights */
/* Soft edges come from a radial gradient instead of filter: blur(140px).
   A large animated blur is very expensive for the GPU and, combined with the
   spinning canvas, could make the browser drop the canvas or crash the tab. */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.bg-glow-1 {
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(238, 196, 1, 1) 0%, rgba(238, 196, 1, 0.35) 35%, rgba(238, 196, 1, 0) 70%);
    top: calc(-10% - 140px);
    left: calc(-10% - 140px);
}
.bg-glow-2 {
    width: 880px;
    height: 880px;
    background: radial-gradient(circle, rgba(255, 170, 0, 1) 0%, rgba(255, 170, 0, 0.35) 35%, rgba(255, 170, 0, 0) 70%);
    bottom: calc(-15% - 140px);
    right: calc(-10% - 140px);
}

/* Layout Framework */
.activation-container {
    width: 100%;
    max-width: 1200px;
    display: grid;
    /* Text column slightly wider so "Το Σαββατοκύριακο...." fits on one line */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

@media (max-width: 900px) {
    body {
        padding: 70px 15px 20px 15px;
        justify-content: flex-start;
    }

    .activation-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-top: 10px;
    }

    .site-logo {
        max-height: 22px;
        width: auto;
        object-fit: contain;
    }
}

/* Premium Typography Style updates */
.activation-header {
    text-align: left;
}
@media (max-width: 900px) {
    .activation-header { 
        text-align: center; 
    }
    .activation-header .main-title {
        /* Fits one line on narrow phones (line is ~10.3em wide in Cera Black) */
        font-size: min(2.3rem, calc((100vw - 34px) / 10.4)) !important;
    }
}

.brand-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-solid);
    border: 1px solid rgba(243, 190, 36, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    background: rgba(243, 190, 36, 0.05);
}

.activation-header .main-title {
    font-family: 'CeraGR', var(--font-sans);
    /* Scales down between ~900px and ~1240px wide so the first line never wraps */
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}
.activation-header .main-title .title-line {
    white-space: nowrap;
}
.activation-header .main-title .highlight {
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
}

.activation-header .subtitle {
    font-family: 'PP Pangram Sans', var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 460px;
}
@media (max-width: 900px) {
    .activation-header .subtitle { 
        margin: 0 auto;
        font-size: 1rem;
    }
}

/* The Wheel Stage Architecture */
.wheel-stage {
    position: relative;
    justify-self: center;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1/1;
}

.outer-neon-ring {
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px solid rgba(239, 170, 28, 0.5);
    box-shadow: 0 0 40px rgba(239, 170, 28, 0.35), inset 0 0 40px rgba(239, 170, 28, 0.15);
    pointer-events: none;
}

.wheel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
    background: radial-gradient(circle, #7a3d06 0%, #512803 100%);
    border-radius: 50%;
    box-shadow: 0 30px 70px rgba(81, 40, 3, 0.7), inset 0 0 30px rgba(239, 170, 28, 0.2);
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

/* Luxury 3D Pointer */
.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    filter: drop-shadow(0 8px 15px rgba(81,40,3,0.6)) drop-shadow(0 0 8px rgba(239,170,28,0.5));
}

/* Center Glassmorphic Core Spin Mechanism Button */
.spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #512803;
    border: 3px solid transparent;
    background-image: radial-gradient(circle, #7a3d06, #512803), linear-gradient(135deg, #f5c04a, #efaa1c 50%, #a0610f);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    overflow: visible;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* Luxury Ambient Pulse Aura */
.spin-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gold-linear);
    z-index: -1;
    opacity: 0;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.4s ease;
}

/* Hover States */
.spin-btn:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 20px 40px rgba(243, 190, 36, 0.25);
}

.spin-btn:hover:not(:disabled)::after {
    opacity: 0.4;
    transform: scale(1.25);
}

/* Active Click Feedback */
.spin-btn:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.96);
    box-shadow: 0 8px 15px rgba(0,0,0,0.6);
}

/* Disabled State Clean Up */
.spin-btn:disabled {
    opacity: 0.6;
    filter: grayscale(0.8);
    cursor: not-allowed;
    transform: translate(-50%, -50%) scale(1);
}
.spin-btn-text {
    position: relative;
    z-index: 2;
    font-family: 'PP Pangram Sans', var(--font-sans);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #f5c04a, #efaa1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.spin-btn:hover .spin-btn-text {
    transform: scale(1.1);
}

/* Cinematic Fullscreen Experience Overlay */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    /* No backdrop-filter: a full-screen live blur is costly on every open;
       a slightly more opaque tint gives a similar look */
    background: rgba(81, 40, 3, 0.92);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 580px;
    border-radius: 24px;
    padding: 3px;
    background: linear-gradient(135deg, rgba(239,170,28,0.5) 0%, rgba(81,40,3,0.4) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(239, 170, 28, 0.25);
    overflow: hidden;
}

.modal-border-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(from 0deg, transparent, #efaa1c, transparent 50%, #f5c04a, transparent);
    animation: rotateGlow 6s linear infinite;
    animation-play-state: paused; /* only runs while the modal is visible (see below) */
    z-index: 0;
}

.modal.is-open .modal-border-glow {
    animation-play-state: running;
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.modal-inner {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #8a4a0a 0%, #6a3505 40%, #512803 100%);
    box-shadow: inset 0 0 40px rgba(239, 170, 28, 0.15);
    border-radius: 22px;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 1;
    /* On short screens (small phones, landscape) let the popup scroll so the CTA stays reachable */
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.result-badge {
    font-family: 'PP Pangram Sans', var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #efaa1c;
    margin-bottom: 0.8rem;
}

.result-title {
    font-family: 'CeraGR', var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffe2a6 0%, #f5c04a 45%, #efaa1c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
}

.divider-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #f5c04a, #efaa1c);
    margin: 0 auto 1.2rem;
}

.result-copy {
    font-family: 'PP Pangram Sans', var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
    color: #fff3d6;
    margin-bottom: 2.2rem;
}

/* Hyper-Premium CTA Button */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #f5c04a 0%, #efaa1c 50%, #d48a14 100%);
    color: #512803;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(239, 170, 28, 0.35);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-text, .cta-arrow {
    position: relative;
    z-index: 2;
}

.cta-text {
    font-family: 'CeraGR', var(--font-sans);
    font-weight: 900;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(239, 170, 28, 0.5);
}

/* Premium Close Button styling */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
    color: #efaa1c;
    transform: scale(1.15);
}

#spinButton:not(:disabled) {
    cursor: pointer;
}