/* =========================================
   GENEL AYARLAR
========================================= */
body {
    font-family: Inter, Arial, sans-serif;
    background: #f4f2ea;
    margin: 0;
}

/* =========================================
   ANASAYFA
========================================= */
body.home-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.home-container {
    width: 90%;
    max-width: 450px;
    margin: auto;
}

.user-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 40px;
}

input {
    width: 90%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-size: 15px;
    margin-bottom: 15px;
}

button {
    width: 90%;
    padding: 12px;
    background: #a38441;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover:not(.disabled) {
    background: #8a6f37;
}

button.disabled {
    background: #bdbdbd !important;
    cursor: not-allowed !important;
}

/* KATEGORİLER */
.categories h2 {
    text-align: center;
    margin-bottom: 20px;
}

.category-card {
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.06);
    font-size: 16px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
    display: block;
}

.category-card:hover {
    background: #a38441;
    color: #fff;
}

.coming-soon {
    opacity: 0.5;
}

.disabled-cat {
    pointer-events: none;
    opacity: 0.3;
}

/* =========================================
   AKARSULAR SAYFASI
========================================= */

.akarsular-container {
    width: 90%;
    max-width: 900px;
    margin: 40px auto;
    padding-bottom: 80px; /* BUTONA BOŞLUK EKLEDİK */
}

.back-btn {
    margin-top: 40px; /* DİBİ DİBİNE YAKIN OLMASIN DİYE */
    width: 200px;
    padding: 12px;
    background: #6b5a32;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.back-btn:hover {
    background: #4d442b;
}

/* =========================================
   LEVEL SEÇİM – PREMIUM KART TASARIMI
========================================= */

.level-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0 10px;
}

.level-card {
    background: #ffffff;
    padding: 22px 0;
    border-radius: 18px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    border: 2px solid #e8e2d3;
}

/* --- Açık (Unocked) seviye --- */
.level-card.unlocked:hover {
    transform: translateY(-4px) scale(1.03);
    background: #f3ecdd;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
    border-color: #d6c6a4;
}

/* --- Kilitli seviye --- */
.level-card.locked {
    background: #f0efeb;
    color: #9c9c9c;
    border-color: #d0d0d0;
    cursor: not-allowed;
    position: relative;
}

.level-card.locked::after {
    content: "🔒";
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 18px;
    opacity: 0.8;
}

/* Hover kilitliye işlemez */
.level-card.locked:hover {
    transform: none;
    box-shadow: none;
}

/* Başlık */
.akarsular-container h2 {
    font-size: 30px;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}


/* =========================================
   QUIZ EKRANI
========================================= */

.question-box {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

#questionText {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

/* Seçenekler */
.choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.choice-btn {
    width: 90%;
    max-width: 360px;
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #444;
    font-size: 17px;
    background: #faf7f0;
    color: #333 !important;        /* ← YAZI RENGİ BURADA */
    cursor: pointer;
    transition: 0.18s;
    font-weight: 500;
}


.choice-btn:hover {
    background: #ece6d9;
    border-color: #d9534f;
}

/* DOĞRU-YANLIŞ RENKLERİ GÖRÜNMESİ İÇİN */
.choice-btn.correct {
    background: #4caf50 !important;
    border-color: #2e7d32 !important;
    color: white !important;
}

.choice-btn.wrong {
    background: #d9534f !important;
    border-color: #b52a27 !important;
    color: white !important;
}

/* Mesaj kutuları */
.msg-correct,
.msg-wrong {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.msg-correct {
    background: #d7f2d7;
    color: #2e7d32;
}

.msg-wrong {
    background: #ffd4d4;
    color: #b71c1c;
}

/* Sonraki Soru */
.next-btn {
    width: 90%;
    max-width: 350px;
    padding: 14px;
    background: #a38441;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

.next-btn:hover:not(.disabled) {
    background: #8b6d34;
}

.next-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}
/* =========================================
   FOOTER
========================================= */
.site-footer {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
    color: #6b5a32;
    background: #e8e1ce;
    margin-top: 60px;
    border-top: 2px solid #c5b89a;
}

.site-footer p {
    margin: 0;
    opacity: 0.8;
}
/* Footer sadece anasayfada sabit olacak */
body.home-page .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
}
/* Akarsular sayfasında içerik kısa olsa bile footer altta kalsın */
.akarsular-container {
    min-height: calc(100vh - 120px); /* footer + üst boşluk kadar yer bırakır */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Completed kartlara hover desteği */
.level-card.completed:hover {
    transform: translateY(-4px) scale(1.03);
    background: #f0f8ef; /* çok hafif yeşil bir tamamlanmış hissi */
    border-color: #4caf50;
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.20);
}
/* Completed kartların varsayılan görünümü */
.level-card.completed {
    background: #f0f8ef !important;
    border-color: #4caf50 !important;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.18) !important;
    color: #2e7d32 !important;
}

/* =========================================
   PROGRESS BAR (Soru İlerleme Çubuğu)
========================================= */

.progress-wrapper {
    width: 90%;
    max-width: 360px;
    height: 10px;
    background: #e4decf;
    border-radius: 8px;
    margin: 20px auto 10px auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #a38441;     /* GeoRehber altın tonu */
    transition: width 0.35s ease;
}
