/* style.css - Modern Futbol Arena Tasarımı */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0f172a;        /* Koyu Arka Plan */
    --bg-card: #1e293b;        /* Kart Arka Planı */
    --primary: #10b981;        /* Saha Yeşili */
    --primary-hover: #059669;
    --secondary: #3b82f6;      /* Mavi */
    --accent: #f59e0b;         /* Altın/Kupa Rengi */
    --danger: #ef4444;         /* Kırmızı Kart */
    --text-main: #f8fafc;      /* Ana Metin */
    --text-muted: #94a3b8;     /* Yan Metin */
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(30, 41, 59, 0.7);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navbar --- */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand i {
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(16, 185, 129, 0.1);
}

/* --- Butonlar --- */
.btn-custom-primary {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-custom-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-custom-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

/* --- Kartlar --- */
.custom-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-header-custom {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* --- Form Elemanları --- */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    color: var(--text-main);
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* --- Özel Bileşenler --- */
.page-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.hero-section {
    position: relative;
    padding: 4rem 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), var(--bg-dark));
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Animasyonlar --- */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

/* --- Responsive Düzeltmeler --- */
@media (max-width: 768px) {
    .navbar-brand { font-size: 1.2rem; }
    .stat-number { font-size: 2rem; }
}

/* --- Avatar --- */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Oyun Modülü Badge --- */
.module-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-primary { background: rgba(16, 185, 129, 0.2); color: var(--primary); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-secondary { background: rgba(59, 130, 246, 0.2); color: var(--secondary); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.3); }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
/* --- OYUN MODÜLLERİ GENEL TASARIMI (GAMING MODE) --- */

/* Oyun Kapsayıcısı */
.game-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px; /* Mobil navigasyon için boşluk */
}

/* Oyun Header (Soru Sayısı ve Süre) */
.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 10px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
}

.timer-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    background: var(--danger);
    padding: 5px 15px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
    min-width: 80px;
    text-align: center;
}

/* Soru Kartı (Ortadaki Büyük Kart) */
.question-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.question-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.question-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Cevap Alanı (Grid Yapısı) */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Masaüstünde 2 sütun */
    gap: 15px;
}

.btn-game-option {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-game-option:hover:not(:disabled) {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-game-option:active {
    transform: scale(0.98);
}

/* Doğru/Yanlış Durumları */
.btn-game-option.correct {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: popIn 0.3s ease;
}

.btn-game-option.wrong {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
    animation: shake 0.4s ease;
}

/* Alt Bilgi Çubuğu (Fixed Bottom Mobile App Like) */
.game-footer-stats {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.stat-item {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-item strong {
    display: block;
    font-size: 1.2rem;
    color: white;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr; /* Mobilde tek sütun, alt alta */
        gap: 10px;
    }
    
    .question-title {
        font-size: 1.5rem;
    }
    
    .btn-game-option {
        padding: 15px;
        font-size: 1rem;
    }
    
    .game-wrapper {
        padding-top: 10px;
    }
}

/* Animasyonlar */
@keyframes popIn {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* --- HAFIZA OYUNU (MEMORY GAME) ÖZEL STİLLERİ --- */

.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Masaüstünde 4 sütun */
    gap: 15px;
    margin: 20px auto;
    max-width: 600px;
    perspective: 1000px;
}

.memory-card {
    background-color: transparent;
    height: 120px; /* Kart yüksekliği */
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.memory-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Kart Çevrildiğinde */
.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}

/* Kart Eşleştiğinde */
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
    /* opacity: 1; -> Opaklık ayarı kaldırıldı */
}
.memory-card.matched .memory-card-back {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-color: #fff;
    box-shadow: 0 0 15px var(--primary);
    pointer-events: none; /* Tekrar tıklanmayı engelle */
}

/* Kart Ön ve Arka Yüz Ortak */
.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    font-weight: bold;
    padding: 5px;
}

/* Kartın Arkası (Soru İşareti Olan Yüz - Kapalı Hali) */
.memory-card-front {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--text-muted);
    font-size: 2rem;
}
.memory-card-front::after {
    content: '?';
}

/* Kartın Önü (Metin Olan Yüz - Açık Hali) */
.memory-card-back {
    background: linear-gradient(135deg, #334155, #1e293b);
    color: white;
    transform: rotateY(180deg);
    font-size: 0.9rem; /* Uzun metinler için font ayarı */
    text-transform: uppercase;
    word-break: break-word;
}

/* Mobil Uyumluluk */
@media (max-width: 576px) {
    .memory-grid {
        grid-template-columns: repeat(3, 1fr); /* Mobilde 3 sütun */
        gap: 10px;
    }
    .memory-card {
        height: 90px;
    }
    .memory-card-back {
        font-size: 0.75rem;
    }
}
/* --- KELİME OYUNU (WORD GUESS) STİLLERİ --- */

/* Kelime Kutucukları Alanı */
.word-display-area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
}

.letter-box {
    width: 50px;
    height: 60px;
    border-bottom: 4px solid var(--text-muted);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.letter-box.revealed {
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
    animation: dropIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* İpucu Kutusu */
.hint-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #60a5fa;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

/* Sanal Klavye */
.keyboard-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35px, 1fr));
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.key-btn {
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-weight: bold;
    padding: 15px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.key-btn:hover:not(:disabled) {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.key-btn.correct {
    background: var(--primary) !important;
    color: #064e3b !important;
    opacity: 0.5;
    cursor: not-allowed;
}

.key-btn.wrong {
    background: var(--danger) !important;
    color: white !important;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Hata Hakkı Göstergesi (Kalpler) */
.lives-container {
    color: var(--danger);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    letter-spacing: 5px;
}

@keyframes dropIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobil Uyum */
@media (max-width: 576px) {
    .letter-box { width: 35px; height: 45px; font-size: 1.5rem; }
    .key-btn { padding: 12px 2px; font-size: 0.9rem; }
}
/* --- EŞLEŞTİRME TAHTASI (MATCHING BOARD) --- */

.matching-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Sütun */
    gap: 15px;
    margin: 20px auto;
    max-width: 800px;
}

.match-card {
    background: linear-gradient(145deg, #334155, #1e293b);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.match-card:hover:not(.matched):not(.selected) {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(0,0,0,0.4);
}

/* Seçili Kart (Mavi) */
.match-card.selected {
    background: var(--secondary) !important;
    border-color: #60a5fa !important;
    transform: scale(0.95);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

/* Doğru Eşleşme (Yeşil) */
.match-card.matched {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #34d399 !important;
    opacity: 1; /* OPASİTE 1 YAPILDI */
    pointer-events: none;
    animation: popIn 0.3s ease;
}

/* Yanlış Eşleşme (Kırmızı) */
.match-card.wrong {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    border-color: #fca5a5 !important;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@media (max-width: 768px) {
    .matching-grid {
        grid-template-columns: repeat(3, 1fr); /* Mobilde 3 sütun */
        gap: 8px;
    }
    .match-card {
        min-height: 80px;
        font-size: 0.85rem;
    }
}
/* --- MİLYONER OYUNU (MILLIONAIRE) --- */
.millionaire-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

.question-box-large {
    background: linear-gradient(135deg, #1e293b, #0f172a); border: 2px solid var(--accent);
    border-radius: 20px; padding: 30px; text-align: center; min-height: 150px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}
.q-text-large { font-size: 1.4rem; font-weight: 700; color: white; }

.options-list-large { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.opt-btn-large {
    background: rgba(30, 41, 59, 0.8); border: 2px solid var(--border-color);
    color: white; padding: 20px; border-radius: 50px; text-align: left;
    transition: 0.3s; position: relative; overflow: hidden;
}
.opt-btn-large:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: black; }
.opt-btn-large.selected { background: #f59e0b; border-color: #f59e0b; color: black; }
.opt-btn-large.correct { background: #10b981 !important; border-color: #10b981 !important; color: white !important; }
.opt-btn-large.wrong { background: #ef4444 !important; border-color: #ef4444 !important; color: white !important; }

/* Piramit */
.pyramid-container { background: rgba(15, 23, 42, 0.9); padding: 15px; border-radius: 15px; border: 1px solid var(--border-color); }
.pyramid-item {
    padding: 8px 12px; margin-bottom: 4px; border-radius: 8px; font-size: 0.9rem;
    display: flex; justify-content: space-between; color: var(--text-muted);
}
.pyramid-item.active { background: var(--accent); color: black; font-weight: bold; transform: scale(1.02); }
.pyramid-item.guaranteed { color: white; border: 1px solid var(--text-muted); }
.pyramid-item.passed { color: var(--primary); text-decoration: line-through; opacity: 0.5; }

/* Jokerler */
.jokers-area { display: flex; justify-content: space-between; margin-bottom: 20px; }
.joker-btn {
    background: var(--secondary); width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid white; color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; transition: 0.3s; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}
.joker-btn:hover:not(:disabled) { transform: translateY(-5px); background: #2563eb; }
.joker-btn:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(100%); }

@media (max-width: 992px) {
    .millionaire-layout { grid-template-columns: 1fr; }
    .options-list-large { grid-template-columns: 1fr; }
}
/* --- DOĞRU / YANLIŞ OYUNU (TRUE/FALSE) --- */

.tf-game-layout {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Soru Kartı */
.tf-question-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 3px solid var(--border-color);
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}
/* Renk efektleri kaldırıldı (Sadece butonlar renk değiştirecek) */
.tf-question-card.correct-flash, .tf-question-card.wrong-flash {
    box-shadow: 0 10px 40px rgba(0,0,0,0.4); /* Efekt kalmasın */
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 3px solid var(--border-color);
    animation: none;
}

.tf-question-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.4;
}

/* Butonlar Alanı */
.tf-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tf-btn {
    background: rgba(255, 255, 255, 0.08); /* Nötr Renk */
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 30px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.tf-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.tf-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- EFEKTLER --- */

/* Doğru Cevap Efekti (Yeşil) */
.tf-btn.correct {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #34d399 !important;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
    animation: popIn 0.3s ease;
}

/* Yanlış Cevap Efekti (Kırmızı) */
.tf-btn.wrong {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    border-color: #fca5a5 !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.8);
    animation: shake 0.5s ease;
}

@media (max-width: 768px) {
    .tf-question-text { font-size: 1.5rem; }
    .tf-btn { padding: 20px; font-size: 1.2rem; }
}
/* --- ADMIN PANELİ (DASHBOARD) STİLLERİ --- */

.admin-header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-bottom: 3px solid var(--primary);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.admin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: var(--secondary);
}

.admin-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-title { font-size: 1.2rem; font-weight: 700; color: white; margin: 0; }

/* Tablo Tasarımı */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* Satır arası boşluk */
}
.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}
.admin-table td {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    color: var(--text-main);
    vertical-align: middle;
}
.admin-table tr td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.admin-table tr td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.07); }

/* Durum Rozetleri */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}
.status-active { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #34d399; }
.status-draft { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #fbbf24; }
.status-finished { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #f87171; }

/* Form Elemanları (Admin Özel) */
.admin-input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border-color) !important;
    color: white !important;
    padding: 10px 15px;
    border-radius: 8px;
}
.admin-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important; }

/* Action Butonları */
.action-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-edit { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.btn-edit:hover { background: #2563eb; color: white; }
.btn-delete { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.btn-delete:hover { background: #dc2626; color: white; }
.btn-upload { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.btn-upload:hover { background: #059669; color: white; }

@media (max-width: 768px) {
    .admin-table { display: block; overflow-x: auto; }
}
/* style.css - MEVCUT KODLARINIZIN ALTINA EKLEYİN */

/* --- EŞLEŞTİRME TAHTASI ANİMASYONLARI --- */

/* Yanlış Cevap - Kırmızı Yanıp Sönme */
@keyframes wrong-flash-anim {
    0%, 100% { background-color: #dc3545; border-color: #dc3545; color: white; }
    50% { background-color: #1e293b; border-color: #495057; color: white; }
}

.wrong-flash {
    animation: wrong-flash-anim 0.4s ease-in-out 3; /* 3 kere yanıp söner */
}

/* Doğru Cevap - Yeşil Yanıp Sönme (İpucu için) */
@keyframes correct-flash-anim {
    0%, 100% { background-color: #198754; border-color: #198754; color: white; }
    50% { background-color: #1e293b; border-color: #495057; color: white; }
}

.correct-flash {
    animation: correct-flash-anim 0.5s ease-in-out 2;
}

/* Eşleşmiş Kart (Sabit Yeşil) - Üstüne yazma garantisi için !important */
.match-card.matched {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border-color: #34d399 !important;
    color: white !important;
    opacity: 1 !important;
    pointer-events: none;
    transform: scale(0.98);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}