﻿/* Main Styles for MegaWinRush - UTF-8 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0e1a;
    --secondary-bg: #0f1322;
    --card-bg: linear-gradient(145deg, #131825 0%, #1a1f2e 100%);
    --card-hover: linear-gradient(145deg, #1a1f2e 0%, #252a3a 100%);
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --green-gradient: linear-gradient(135deg, #00d084 0%, #00a65a 100%);
    --blue-gradient: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
}

html {
    font-size: 16px;
}

body {
    background: var(--primary-bg);
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.font-mono {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.bg-dark-gradient {
    background: linear-gradient(180deg, #0a0e1a 0%, #0f1322 100%);
}

.bg-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bg-card-hover {
    background: var(--card-hover);
}

.gradient-purple {
    background: var(--purple-gradient);
}

.gradient-green {
    background: var(--green-gradient);
}

.gradient-blue {
    background: var(--blue-gradient);
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.nav-item {
    position: relative;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #667eea;
}

.mobile-nav-item {
    display: block;
    color: #94a3b8;
    padding: 12px 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 0;
}

.mobile-nav-item:hover {
    color: #ffffff;
    background-color: rgba(102, 126, 234, 0.1);
}

.mobile-nav-item.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.15);
}

.discount-badge {
    background: #ff4545;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.new-badge {
    background: #00d084;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #00d084;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scrollbar styles */
.scrollbar-thin::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: #1a1f2e;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Mobile responsive improvements */
@media (max-width: 640px) {
    .hero-slide {
        height: 300px !important;
    }
    
    .text-4xl {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }
    
    .text-2xl {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
    
    .px-6 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-8 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .gap-6 {
        gap: 1rem !important;
    }
    
    .gap-4 {
        gap: 0.75rem !important;
    }
    
    /* Better button sizes on mobile */
    .gradient-purple {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Improve product card text readability */
    .product-card h3 {
        font-size: 0.875rem !important;
        line-height: 1.25rem !important;
    }
    
    /* Better spacing for mobile cards */
    .product-card .p-4 {
        padding: 1rem !important;
    }
}

/* Tablet responsive improvements */
@media (max-width: 768px) {
    .hero-slide {
        height: 350px !important;
    }
    
    .text-4xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
}

/* Ensure mobile menu is properly styled */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

#mobile-menu.hidden {
    animation: slideUp 0.3s ease-out;
}

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

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

/* Improve touch targets on mobile */
@media (max-width: 640px) {
    button, .nav-item, .mobile-nav-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-nav-item {
        justify-content: flex-start;
        padding: 1rem !important;
    }
    
    /* Auth page specific improvements */
    .login-form, .bg-card {
        margin: 0 1rem !important;
    }
    
    /* Prevent zoom on iOS */
    input[type="text"], 
    input[type="email"], 
    input[type="password"], 
    input[type="search"] {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Better tap targets */
    button, 
    .social-login-btn, 
    .social-register-btn,
    a[role="button"] {
        min-height: 48px !important;
        padding: 0.875rem 1.5rem !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Checkbox improvements */
    input[type="checkbox"] {
        min-width: 20px !important;
        min-height: 20px !important;
        transform: scale(1.2);
    }
    
    /* Form spacing */
    .space-y-6 > * + * {
        margin-top: 1.5rem !important;
    }
}

/* Daily Drop Modal Styles */
.daily-drop-modal {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.daily-drop-modal .modal-content {
    background: linear-gradient(145deg, #131825 0%, #1a1f2e 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prize-reveal-animation {
    animation: prizeReveal 0.8s ease-out;
}

@keyframes prizeReveal {
    0% {
        transform: scale(0.8) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.rarity-glow {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    animation: rarityPulse 2s ease-in-out infinite;
}

@keyframes rarityPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    }
}

.loading-animation {
    animation: loadingSpin 1.5s linear infinite;
}

@keyframes loadingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-bounce {
    animation: successBounce 0.6s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Daily Drop Button States */
.daily-drop-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.daily-drop-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.daily-drop-btn:hover:before {
    left: 100%;
}

.daily-drop-btn:disabled {
    pointer-events: none;
}

/* Email input focus styles */
.email-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

/* Prize image hover effect */
.prize-image {
    transition: transform 0.3s ease;
}

.prize-image:hover {
    transform: scale(1.05);
}

/* Confetti animation */
@keyframes confettiFall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Cookies Banner Styles */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(145deg, #131825 0%, #1a1f2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookies-banner.show {
    transform: translateY(0);
}

.cookies-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookies-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookies-banner-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookies-banner-description {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
}

.cookies-banner-description a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookies-banner-description a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

.cookies-banner-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookies-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cookies-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookies-btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

.cookies-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookies-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.cookies-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .cookies-banner {
        padding: 16px;
    }
    
    .cookies-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .cookies-banner-text {
        min-width: auto;
    }
    
    .cookies-banner-title {
        font-size: 16px;
    }
    
    .cookies-banner-actions {
        justify-content: center;
    }
    
    .cookies-btn {
        flex: 1;
        min-width: 120px;
    }
}