/* 
    Hece Kapışması - Turkish For You
    style.css
    Created by Cüneyt Şimşek
*/

:root {
    --tfy-primary: #1e3c72;
    --tfy-secondary: #2a5298;
    --tfy-accent: #2ed573;
    --tfy-accent-dark: #26af5f;
    --tfy-blue-light: #1e90ff;
    --tfy-red: #ff4757;
    --tfy-red-dark: #d63031;
    --tfy-orange: #ffa502;
    --tfy-yellow: #f1c40f;
    --tfy-dark: #1f2937;
    --tfy-muted: #64748b;
    --tfy-panel: rgba(255, 255, 255, 0.12);
    --tfy-white-panel: rgba(255, 255, 255, 0.96);
    --tfy-border: rgba(255, 255, 255, 0.25);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, var(--tfy-primary) 0%, var(--tfy-secondary) 100%);
    color: white;
    padding: 86px 20px 24px;
    overflow-x: hidden;
}

/* ÜST NAVİGASYON */

.ust-navigasyon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 62px;
    padding: 12px 28px;
    background: rgba(10, 28, 61, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav-logo:hover {
    color: var(--tfy-accent);
}

.nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 999px;
    transition: 0.2s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.14);
    color: white;
}

/* İMZA */

.imza {
    position: fixed;
    right: 24px;
    bottom: 14px;
    z-index: 9100;
    color: rgba(255,255,255,0.68);
    font-size: 14px;
    font-style: italic;
    letter-spacing: 0.4px;
    pointer-events: none;
}

/* INTRO */

#intro-katmani {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--tfy-primary) 0%, var(--tfy-secondary) 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

#intro-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
    background: #000;
}

#btn-intro-baslat {
    border: none;
    border-radius: 999px;
    background: var(--tfy-accent);
    color: white;
    padding: 20px 44px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0,0,0,0.3);
    transition: 0.25s;
}

#btn-intro-baslat:hover {
    transform: scale(1.07);
    background: var(--tfy-accent-dark);
}

/* GENEL EKRAN */

.ekran {
    display: none;
    width: min(1180px, 100%);
    min-height: calc(100vh - 120px);
    margin: 0 auto;
    padding: 36px;
    text-align: center;
    background: var(--tfy-panel);
    border: 1px solid var(--tfy-border);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.26);
    backdrop-filter: blur(10px);
    animation: fadeUp 0.45s ease;
}

.aktif-ekran {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.28);
}

h2 {
    color: var(--tfy-primary);
    margin-top: 0;
}

.alt-baslik {
    margin: 10px 0 28px;
    color: #dbeafe;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* KARTLAR */

.ana-menu-kart,
.kurulum-karti,
.kural-karti,
.sonuc-karti {
    width: min(780px, 100%);
    margin: 0 auto;
    padding: 28px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 22px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.kural-karti,
.kurulum-karti,
.sonuc-karti {
    background: var(--tfy-white-panel);
    color: var(--tfy-dark);
    text-align: left;
}

.sonuc-karti {
    text-align: center;
}

/* BUTONLAR */

.buton {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 15px 20px;
    border: none;
    border-radius: 999px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: 0.22s;
    font-family: inherit;
}

.buton:hover {
    transform: scale(1.025);
    filter: brightness(1.05);
}

.btn-yesil {
    background: var(--tfy-accent);
}

.btn-yesil:hover {
    background: var(--tfy-accent-dark);
}

.btn-mavi {
    background: var(--tfy-blue-light);
}

.btn-turuncu {
    background: var(--tfy-orange);
}

.btn-kirmizi {
    background: var(--tfy-red);
}

.btn-kirmizi:hover {
    background: var(--tfy-red-dark);
}

.btn-beyaz {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.kurulum-karti .btn-beyaz,
.sonuc-karti .btn-beyaz,
.kural-karti .btn-beyaz {
    color: var(--tfy-primary);
    border-color: var(--tfy-primary);
}

.btn-beyaz:hover {
    background: white;
    color: var(--tfy-primary);
}

.kurulum-karti .btn-beyaz:hover,
.sonuc-karti .btn-beyaz:hover,
.kural-karti .btn-beyaz:hover {
    background: var(--tfy-primary);
    color: white;
}

.btn-link {
    background: var(--tfy-primary);
    color: white;
    border: none;
}

/* KURALLAR */

.kurallar-listesi {
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.75;
}

.kurallar-listesi li {
    margin-bottom: 10px;
}

.kural-notu {
    margin-top: 22px;
    padding: 16px;
    background: #eff6ff;
    border-left: 6px solid var(--tfy-blue-light);
    border-radius: 12px;
    color: #1e3c72;
    font-weight: 600;
    line-height: 1.6;
}

/* FORM */

.form-grup {
    margin-bottom: 22px;
    text-align: left;
}

.form-grup label {
    display: block;
    margin-bottom: 10px;
    color: var(--tfy-primary);
    font-weight: 800;
    font-size: 16px;
}

input[type="text"],
select {
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 2px solid #dbe3ef;
    border-radius: 12px;
    background: white;
    color: var(--tfy-dark);
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--tfy-blue-light);
    box-shadow: 0 0 0 4px rgba(30,144,255,0.15);
}

.seviye-butonlari {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.seviye-btn {
    flex: 1;
    min-width: 72px;
    padding: 14px 16px;
    border: 2px solid #dbe3ef;
    border-radius: 14px;
    background: white;
    color: var(--tfy-dark);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.seviye-btn:hover,
.seviye-btn.aktif {
    background: var(--tfy-primary);
    color: white;
    border-color: var(--tfy-primary);
    transform: translateY(-2px);
}

.oyuncu-adlari {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* OYUN EKRANI */

.oyun-ekrani {
    width: min(1240px, 100%);
}

.oyun-ust-panel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.bilgi-kutusu {
    background: var(--tfy-white-panel);
    color: var(--tfy-dark);
    border-radius: 16px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    border-top: 5px solid var(--tfy-accent);
}

.bilgi-baslik {
    display: block;
    color: var(--tfy-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.bilgi-deger {
    display: block;
    color: var(--tfy-primary);
    font-size: 20px;
    font-weight: 900;
}

.insaat-alani,
.hece-panel {
    background: var(--tfy-white-panel);
    color: var(--tfy-dark);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.14);
}

.insaat-alani {
    min-height: 150px;
    border: 2px dashed rgba(30,60,114,0.25);
}

.insaat-baslik,
.hece-panel-baslik {
    color: var(--tfy-primary);
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 10px;
}

.secilen-heceler {
    min-height: 82px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
}

.bos-metin {
    color: #94a3b8;
    font-weight: 700;
}

.hece-tuglalari {
    min-height: 260px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* HECE TUĞLALARI */

.hece-tugla,
.secilen-hece {
    min-width: 72px;
    padding: 14px 17px;
    border: none;
    border-radius: 14px;
    font-size: 21px;
    font-weight: 900;
    font-family: inherit;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 8px 0 #b96f00, 0 12px 18px rgba(0,0,0,0.18);
    background: linear-gradient(180deg, #ffbe4d 0%, #f39c12 100%);
    color: #402500;
    text-align: center;
    user-select: none;
}

.hece-tugla:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 0 #b96f00, 0 16px 22px rgba(0,0,0,0.2);
}

.hece-tugla:active {
    transform: translateY(4px);
    box-shadow: 0 4px 0 #b96f00, 0 8px 12px rgba(0,0,0,0.14);
}

.hece-tugla.secili {
    opacity: 0.25;
    pointer-events: none;
    transform: scale(0.96);
}

.hece-tugla.kaldirildi {
    display: none;
}

.secilen-hece {
    background: linear-gradient(180deg, #60a5fa 0%, #1e90ff 100%);
    color: white;
    box-shadow: 0 8px 0 #0f5fa8, 0 12px 18px rgba(0,0,0,0.16);
    cursor: default;
}

/* KONTROL ALANI */

.oyun-kontrol {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.kontrol-btn {
    margin-top: 0;
}

.geri-bildirim {
    min-height: 52px;
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 18px;
    display: none;
}

.geri-bildirim.dogru {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 2px solid #86efac;
}

.geri-bildirim.yanlis {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.geri-bildirim.bilgi {
    display: block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 2px solid #bfdbfe;
}

/* CEVAP ANİMASYONLARI */

.cevap-animasyonu {
    position: fixed;
    inset: 0;
    z-index: 9400;
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.cevap-animasyonu.aktif {
    display: flex;
}

.cevap-animasyonu .animasyon-kutu {
    min-width: 320px;
    padding: 34px 46px;
    border-radius: 26px;
    text-align: center;
    font-size: 34px;
    font-weight: 900;
    color: white;
    box-shadow: 0 22px 50px rgba(0,0,0,0.35);
    animation: cevapPatlama 1.1s ease forwards;
}

.cevap-animasyonu.dogru .animasyon-kutu {
    background: linear-gradient(135deg, #16a34a, #2ed573);
}

.cevap-animasyonu.yanlis .animasyon-kutu {
    background: linear-gradient(135deg, #b91c1c, #ff4757);
}

.animasyon-ikon {
    display: block;
    font-size: 72px;
    margin-bottom: 12px;
}

@keyframes cevapPatlama {
    0% {
        opacity: 0;
        transform: scale(0.55) rotate(-6deg);
    }
    35% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
    70% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* ÖĞRETMEN ONAY MODALI */

.ogretmen-modal {
    border-top: 8px solid var(--tfy-yellow);
}

.onay-kelime-kutusu {
    margin: 18px 0;
    padding: 18px;
    background: #eff6ff;
    color: var(--tfy-primary);
    border-radius: 14px;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
}

.onay-aciklama {
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
}

/* SONUÇ */

.kupa {
    font-size: 64px;
    margin-bottom: 12px;
}

.sonuc-detay {
    margin: 24px 0;
    display: grid;
    gap: 14px;
}

.skor-satiri {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    background: #f8fafc;
    border-left: 8px solid var(--tfy-blue-light);
    border-radius: 14px;
    font-size: 20px;
    font-weight: 900;
}

.skor-satiri.kazanan {
    border-left-color: var(--tfy-accent);
    background: #ecfdf5;
}

.ekstra-kelimeler {
    margin: 20px 0;
    padding: 18px;
    background: #fff7ed;
    border-left: 8px solid var(--tfy-orange);
    border-radius: 14px;
    color: #7c2d12;
    display: none;
    text-align: left;
}

.ekstra-kelimeler h3 {
    margin-top: 0;
    color: #9a3412;
}

.ekstra-kelimeler ul {
    margin-bottom: 0;
    line-height: 1.7;
    font-weight: 700;
}

/* MODAL */

.modal-arkaplan {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: rgba(0,0,0,0.72);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-kutu {
    width: min(460px, 100%);
    background: white;
    color: var(--tfy-dark);
    border-radius: 22px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 44px rgba(0,0,0,0.34);
}

.modal-kutu h2 {
    color: var(--tfy-primary);
    font-size: 30px;
    margin-bottom: 12px;
}

.modal-metin {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* SCROLLBAR */

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.12);
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.36);
    border-radius: 999px;
}

/* MOBİL UYUM */

@media (max-width: 900px) {
    body {
        padding: 118px 14px 24px;
    }

    .ust-navigasyon {
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
    }

    .nav-menu {
        justify-content: center;
        gap: 6px;
    }

    .nav-link {
        font-size: 0.82rem;
        padding: 7px 10px;
    }

    .ekran {
        padding: 24px 16px;
        min-height: calc(100vh - 150px);
    }

    .oyuncu-adlari {
        grid-template-columns: 1fr;
    }

    .oyun-ust-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .oyun-kontrol {
        grid-template-columns: 1fr;
    }

    .hece-tugla,
    .secilen-hece {
        min-width: 64px;
        font-size: 18px;
        padding: 12px 14px;
    }

    .hece-tuglalari {
        max-height: 360px;
    }

    .imza {
        right: 12px;
        bottom: 8px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .oyun-ust-panel {
        grid-template-columns: 1fr;
    }

    .seviye-btn {
        min-width: 100%;
    }

    .skor-satiri {
        flex-direction: column;
        align-items: flex-start;
        font-size: 18px;
    }

    #btn-intro-baslat {
        font-size: 20px;
        padding: 17px 34px;
    }

    .onay-kelime-kutusu {
        font-size: 24px;
    }
}