/* ================================
   DRACOS - Premium Dark Theme
   ================================ */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-card-hover: rgba(25, 25, 40, 0.9);
    
    /* Fire/Dragon accent colors */
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931e;
    --accent-glow: rgba(255, 107, 53, 0.4);
    --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4444 100%);
    
    /* Gold/Coin colors */
    --gold-primary: #ffd700;
    --gold-secondary: #ffb347;
    --gold-glow: rgba(255, 215, 0, 0.3);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Success */
    --success: #00d26a;
    --success-glow: rgba(0, 210, 106, 0.3);
    
    /* Fonts */
    --font-primary: 'Outfit', 'Inter', sans-serif;
    
    /* Spacing */
    --container-padding: 1.5rem;
}

/* ================================
   Reset & Base
   ================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ================================
   Background Effects
   ================================ */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

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

.glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: pulse 8s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(247, 147, 30, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* ================================
   Layout
   ================================ */

.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--container-padding);
    gap: 2rem;
}

/* ================================
   Header / Logo
   ================================ */

.header {
    text-align: center;
}

.logo {
    width: 280px;
    max-width: 80vw;
    height: auto;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: logoFloat 6s ease-in-out infinite;
}

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

/* ================================
   Hero Section
   ================================ */

.hero {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--accent-glow);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ================================
   Giveaway Card
   ================================ */

.giveaway-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 100px -20px var(--accent-glow);
    transition: all 0.3s ease;
}

.giveaway-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 35px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 120px -15px var(--accent-glow);
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.card-content.hidden {
    display: none;
}

/* ================================
   Coin Display
   ================================ */

.coin-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: coinSpin 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--gold-glow));
}

@keyframes coinSpin {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(15deg);
    }
}

.coin-amount {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.claim-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.amount-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.dollar-sign {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--gold-glow);
}

.coins-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-left: 0.25rem;
    letter-spacing: 0.05em;
}

/* ================================
   Google Sign-In Button
   ================================ */

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.google-btn:active {
    transform: translateY(0);
}

.google-icon {
    width: 20px;
    height: 20px;
}

.terms {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ================================
   Success State
   ================================ */

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, #00b359 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px var(--success-glow);
    animation: successPop 0.5s ease-out;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

.success-reward {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
}

.success-coin {
    width: 40px;
    height: 40px;
    animation: coinSpin 3s ease-in-out infinite;
}

.success-amount {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

.signout-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.signout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* ================================
   Footer
   ================================ */

.footer {
    margin-top: auto;
    padding-top: 2rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .logo {
        width: 220px;
    }
    
    .giveaway-card {
        padding: 1.5rem;
    }
    
    .coin-icon {
        width: 60px;
        height: 60px;
    }
    
    .amount-value {
        font-size: 2rem;
    }
    
    .dollar-sign {
        font-size: 1.5rem;
    }
}

/* ================================
   Loading State
   ================================ */

.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading .google-btn::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
