/* YKS Akıllı Program özel stilleri */
body {
    background: #f8f9fa;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    font-weight: 700;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

footer {
    background: #f3f6ff;
    color: white !important;
    border-top: 1px solid #e0e0e0;
}

/* Footer text colors - fixed and protected from changes */
footer * {
    color: white !important;
}

footer a {
    color: white !important;
}

footer a:hover {
    color: #f8f9fa !important;
}

/* Responsive padding for main */
main {
    padding-bottom: 2rem;
}

/* Navbar fix */
.navbar {
    border-bottom: 1.5px solid #e0e0e0;
}

/* Custom button */
.btn-custom {
    background: linear-gradient(90deg, #7f53ff 0%, #5a7fff 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    transition: background 0.18s;
}
.btn-custom:hover {
    background: linear-gradient(90deg, #5a7fff 0%, #7f53ff 100%);
    color: #fff;
}

/* ========== GAMIFICATION STYLES ========== */

/* Achievement Popup */
.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 999998;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.achievement-content {
    background: linear-gradient(135deg, #E67E22 0%, #8E44AD 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    min-width: 300px;
}

.achievement-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shine 2s ease-in-out;
}

.achievement-content.rare {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
}

.achievement-content.uncommon {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

.achievement-icon {
    font-size: 3rem;
    margin: 1rem 0;
    animation: bounce 1s ease-in-out;
}

.achievement-points {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Progress Rings */
.progress-ring-container {
    position: relative;
    display: inline-block;
}

.progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 1.2rem;
    color: #8E44AD;
}

/* Momentum Bar */
.momentum-container {
    background: rgba(255,255,255,0.9);
    border-radius: 25px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.momentum-bar-container {
    background: #e9ecef;
    border-radius: 15px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

#momentum-bar {
    height: 100%;
    border-radius: 15px;
    transition: all 0.8s ease;
    position: relative;
}

#momentum-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: flow 2s ease-in-out infinite;
}

@keyframes flow {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #8E44AD;
    animation: confetti-fall 3s linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Streak Counter */
.streak-counter {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(255,107,107,0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 8px 25px rgba(255,107,107,0.3); }
    50% { box-shadow: 0 8px 35px rgba(255,107,107,0.5); }
}

.streak-flame {
    font-size: 1.5rem;
    animation: flicker 1.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

/* Level Badge */
.level-badge {
    background: linear-gradient(135deg, #E67E22 0%, #8E44AD 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.level-badge::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;
}

.level-badge:hover::before {
    left: 100%;
}

/* Study Stats Cards */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #E67E22, #8E44AD);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #E67E22 0%, #8E44AD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Interactive Hover Effects */
.topic-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.topic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.topic-card.completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left: 5px solid #28a745;
}

.topic-card.in-progress {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast.success {
    border-left: 5px solid #28a745;
}

.notification-toast.warning {
    border-left: 5px solid #ffc107;
}

.notification-toast.info {
    border-left: 5px solid #17a2b8;
}

/* Micro-animations */
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .stat-card {
        background: #2d3748;
        color: white;
    }
    
    .momentum-container {
        background: rgba(45, 55, 72, 0.9);
    }
}
