/* ============================================
   HashRace Christmas Raffle 2025 - Styles
   Dark Theme + Glassmorphism + Christmas Vibe
   ============================================ */

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-dark: #0d1117;
    --bg-darker: #010409;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold: #FFD700;
    --ice-blue: #00D4FF;
    --white: #ffffff;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --success: #3fb950;
    --warning: #d29922;
    --danger: #f85149;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* Font */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ========== SECTION TITLES ========== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--gold) 0%, var(--ice-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
}

/* ========== BUTTONS ========== */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 100%);
    color: var(--bg-darker);
    font-weight: 600;
    font-size: 1.1rem;
    padding: var(--spacing-sm) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-2xl) 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.christmas-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.snowflake {
    display: inline-block;
    animation: snowflake-rotate 10s linear infinite;
}

@keyframes snowflake-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-period {
    font-size: 1.2rem;
    color: var(--ice-blue);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-period {
        font-size: 1rem;
    }
}

/* ========== STATS SECTION ========== */
.stats-section {
    padding: var(--spacing-2xl) 0;
}

.stats-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stats-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
}

.stats-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}

.stats-label {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .stats-number {
        font-size: 3rem;
    }
}

/* ========== PRIZE TIERS SECTION ========== */
.prize-tiers-section {
    padding: var(--spacing-2xl) 0;
}

.prize-tier-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.tier-item {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    opacity: 0.5;
}

.tier-item.active {
    opacity: 1;
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.tier-item.completed {
    opacity: 1;
    border-color: var(--success);
    background: rgba(63, 185, 80, 0.1);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.tier-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.tier-range {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tier-prizes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.prize-badge {
    background: var(--ice-blue);
    color: var(--bg-darker);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    width: fit-content;
}

.prize-value {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Progress Bar */
.tier-progress-bar {
    position: relative;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--ice-blue) 100%);
    transition: width 0.5s ease;
    position: relative;
}

.tier-progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: left 0.5s ease;
}

.tier-next-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ========== HOW TO EARN SECTION ========== */
.how-to-earn-section {
    padding: var(--spacing-2xl) 0;
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.earn-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.earn-card:hover {
    transform: translateY(-5px);
    border-color: var(--ice-blue);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.earn-card.highlight {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.earn-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.earn-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-xs);
}

.earn-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.earn-value {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ========== TIMELINE SECTION ========== */
.timeline-section {
    padding: var(--spacing-2xl) 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--ice-blue);
}

.timeline-item.highlight {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.timeline-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 100px;
    text-align: center;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-date {
        min-width: auto;
    }
}

/* ========== RULES SECTION ========== */
.rules-section {
    padding: var(--spacing-2xl) 0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.rule-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: var(--ice-blue);
    transform: translateY(-3px);
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--bg-darker);
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
}

.rule-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== DASHBOARD SECTION ========== */
.dashboard-section {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-darker);
}

.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-lg);
}

.dashboard-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.not-active-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.not-active-card h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.not-active-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* Personal Stats Grid */
.personal-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.personal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.personal-card:hover {
    border-color: var(--ice-blue);
    transform: translateY(-3px);
}

.main-ticket-card {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.05);
}

.personal-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.personal-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--spacing-xs);
}

.personal-status {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success);
    margin-bottom: var(--spacing-xs);
}

.personal-tier {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ice-blue);
    margin-bottom: var(--spacing-xs);
}

.personal-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Info Card */
.info-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--ice-blue);
}

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

/* Earn More Card */
.earn-more-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--gold);
}

.earn-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.earn-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.ticket-badge {
    background: var(--gold);
    color: var(--bg-darker);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hint Card */
.hint-card {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--ice-blue);
}

.hint-card p {
    margin: 0;
    color: var(--text-primary);
}

/* Dashboard Actions */
.dashboard-actions {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ========== FOOTER ========== */
.footer {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid var(--glass-border);
}

.footer p {
    margin-bottom: var(--spacing-xs);
}

.footer-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .prize-tier-progress {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prize-tier-progress,
    .earn-grid,
    .personal-stats-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section,
.stats-section,
.prize-tiers-section,
.how-to-earn-section,
.timeline-section,
.rules-section,
.dashboard-section {
    animation: fade-in 0.6s ease-out;
}

/* ========== AUTH MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal-content h2 {
    color: var(--gold);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--white);
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: var(--spacing-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--ice-blue);
    background: rgba(255, 255, 255, 0.08);
}

.input-field::placeholder {
    color: var(--text-secondary);
}

.modal-content .btn-primary,
.modal-content .btn-secondary {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* ========== AUTH TABS ========== */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.auth-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.auth-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.auth-form-container {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}