/* ===================================================== */
/* PREMIUM NEON QUIZ - ULTIMATE STYLES */
/* ===================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding-bottom: 80px;
}

::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

.screen { padding: 20px 16px; min-height: calc(100vh - 80px); }
.hidden { display: none !important; }

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(204, 255, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-stats { display: flex; gap: 16px; }

.stat-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(204, 255, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.stat-badge span { color: #ccff00; font-weight: bold; }

.settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover { background: rgba(204, 255, 0, 0.2); border-color: #ccff00; }

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn {
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #ccff00;
    color: #0a0a0a;
    box-shadow: 0 4px 20px rgba(204, 255, 0, 0.3);
}

.btn-primary:hover { background: #d9ff33; transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); }

.btn-outline {
    background: transparent;
    color: #ccff00;
    border: 1px solid #ccff00;
}

.btn-outline:hover { background: rgba(204, 255, 0, 0.1); }

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 12px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ccff00, #aaff00);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.option-btn { position: relative; overflow: hidden; }

.option-btn.correct {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: #22c55e !important;
}

.option-btn.incorrect {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
}

.memory-grid {
    display: grid;
    gap: 8px;
    justify-content: center;
    padding: 16px;
}

.memory-card-premium {
    aspect-ratio: 1;
    cursor: pointer;
    perspective: 1000px;
    min-width: 60px;
}

.memory-card-inner-premium {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

.memory-card-premium.flipped .memory-card-inner-premium { transform: rotateY(180deg); }

.memory-card-front-premium,
.memory-card-back-premium {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
}

.memory-card-front-premium {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 2px solid rgba(204, 255, 0, 0.3);
    color: #ccff00;
}

.memory-card-back-premium {
    background: linear-gradient(135deg, #ccff00, #aaff00);
    transform: rotateY(180deg);
    color: #0a0a0a;
    border: 2px solid #ccff00;
}

.memory-card-premium.matched .memory-card-back-premium {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 16px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(204, 255, 0, 0.1);
    z-index: 50;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px 20px;
    border-radius: 40px;
}

.bottom-nav-item.active {
    color: #ccff00;
    background: rgba(204, 255, 0, 0.1);
}

.bottom-nav-item .icon { font-size: 24px; }
.bottom-nav-item .label { font-size: 12px; font-weight: 500; }

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(204, 255, 0, 0.2);
    border-radius: 24px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title { font-size: 20px; font-weight: bold; color: #ccff00; }

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover { background: rgba(239, 68, 68, 0.3); }

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(204, 255, 0, 0.2);
    border-top-color: #ccff00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.toast-notification {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #1a1a2e;
    border: 1px solid #ccff00;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success { border-color: #22c55e; background: rgba(34, 197, 94, 0.2); }
.toast-notification.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.2); }
.toast-notification.warning { border-color: #eab308; background: rgba(234, 179, 8, 0.2); }

.text-primary { color: #ccff00; }
.text-secondary { color: rgba(255, 255, 255, 0.6); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-5xl { font-size: 48px; }
.font-bold { font-weight: bold; }
.font-medium { font-weight: 500; }
.font-mono { font-family: monospace; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.ml-auto { margin-left: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }
.w-5 { width: 20px; }
.h-5 { height: 20px; }
.max-h-32 { max-height: 128px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 12px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.border { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.bg-white\/5 { background: rgba(255, 255, 255, 0.05); }
.bg-\[\#ccff00\] { background: #ccff00; }
.text-\[\#ccff00\] { color: #ccff00; }
.text-black { color: #000; }
.text-white { color: #fff; }
.text-green-400 { color: #4ade80; }
.text-yellow-500 { color: #eab308; }
.text-white\/30 { color: rgba(255, 255, 255, 0.3); }
.text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.text-white\/50 { color: rgba(255, 255, 255, 0.5); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.border-\[\#ccff00\]\/30 { border-color: rgba(204, 255, 0, 0.3); }
.hover\:bg-\[\#aaff00\]:hover { background: #aaff00; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.col-span-full { grid-column: 1 / -1; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.overflow-y-auto { overflow-y: auto; }
.transition-all { transition: all 0.2s; }
.transition-colors { transition: background-color 0.2s, border-color 0.2s; }
.duration-200 { transition-duration: 0.2s; }
.duration-300 { transition-duration: 0.3s; }

.empty-state {
    text-align: center;
    padding: 24px;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

@keyframes levelUp {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: #ccff00; }
}

.level-up-effect { animation: levelUp 1s ease; }

@keyframes comboActive {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: #ccff00; }
}

.combo-active { animation: comboActive 0.3s ease; }

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(204, 255, 0, 0.3);
    transform: scale(0);
    animation: ripple 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.timer-warning {
    color: #ef4444 !important;
    animation: pulse 1s infinite;
}

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