/* =========================================================
   quizvar.com - Ana Stil Dosyası (Main Stylesheet)
   ========================================================= */

/* Dokunmatik & 3D Oyun Buton Efektleri (11-12 Yaş İçin Canlı & Büyük) */
.btn-3d {
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    user-select: none;
}

.btn-3d:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-3d:active {
    transform: translateY(4px);
    box-shadow: none !important;
}

/* Kart Hover Efekti */
.quiz-card-hover {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.2);
}

.option-3d.correct-answer,
.option-3d.selected-exam-option {
    background-color: #059669 !important;
    border-color: #047857 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 0 0 #047857 !important;
}

.option-3d.correct-answer .option-text-label,
.option-3d.selected-exam-option .option-text-label,
.option-3d.correct-answer > div:not(.status-icon),
.option-3d.selected-exam-option > div:not(.status-icon) {
    color: #ffffff !important;
}

.option-3d.wrong-answer {
    background-color: #f43f5e !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 0 0 #be123c !important;
}

.option-3d.wrong-answer .option-text-label,
.option-3d.wrong-answer > div:not(.status-icon) {
    color: #ffffff !important;
}

/* Süzülme ve Dalgalanma Animasyonları */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1.5deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 5s ease-in-out 2s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* Avatar ve Sınıf Seçim Kartları (Kayıt Ekranı) */
.avatar-option {
    transition: all 0.15s ease-in-out;
}

.avatar-option.selected {
    border-color: #6366f1 !important;
    background-color: #e0e7ff !important;
    transform: scale(1.08);
}

.grade-option {
    transition: all 0.15s ease-in-out;
}

.grade-option.selected {
    background-color: #6366f1 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

/* Liderlik Podyumu Sıralama */
.podium-1 {
    order: 2;
}
.podium-2 {
    order: 1;
}
.podium-3 {
    order: 3;
}

/* =========================================================
   Giriş & Kayıt Ekranları İçin Hareketli Arka Plan Efektleri
   ========================================================= */

/* Gradient Dalgalanan Renkli Orblar */
@keyframes blob-move-1 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.15);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes blob-move-2 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(-35px, 40px) scale(1.1);
    }
    66% {
        transform: translate(25px, -30px) scale(0.95);
    }
}

@keyframes blob-move-3 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(40px, 30px) scale(1.2);
    }
}

.animate-blob-1 {
    animation: blob-move-1 8s ease-in-out infinite;
}

.animate-blob-2 {
    animation: blob-move-2 10s ease-in-out infinite 1s;
}

.animate-blob-3 {
    animation: blob-move-3 12s ease-in-out infinite 2s;
}

/* Yüzen Eğitici Quiz & İngilizce Simgeleri */
@keyframes float-icon-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-22px) rotate(12deg);
    }
}

@keyframes float-icon-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-14deg);
    }
}

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

.animate-float-icon-1 {
    animation: float-icon-slow 6s ease-in-out infinite;
}

.animate-float-icon-2 {
    animation: float-icon-reverse 7s ease-in-out 1s infinite;
}

.animate-float-icon-3 {
    animation: float-icon-slow 8s ease-in-out 2s infinite;
}

.animate-float-icon-4 {
    animation: float-icon-reverse 9s ease-in-out 3s infinite;
}

.animate-spin-slow {
    animation: spin-slow 25s linear infinite;
}

/* Izgara Desen Arka Planı (Grid Pattern) */
.bg-grid-pattern {
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

@media (max-width: 640px) {
    .podium-1 { order: 1; }
    .podium-2 { order: 2; }
    .podium-3 { order: 3; }
}

/* Mobil Menü Drawer Animasyonları */
#mobile-drawer-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#mobile-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-drawer-overlay.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobile-drawer-overlay.open #mobile-drawer {
    transform: translateX(0%) !important;
}
