/* ═══════════════════════════════════════════════════════════════
   TARİH PORTALI – İNTERAKTİF KULLANIM REHBERİ (Guided Tour)
   Saf CSS, harici kütüphane yok. Script: motorlar/rehber.js
═══════════════════════════════════════════════════════════════ */

/* Ekranı karartan katman */
#rehber-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.74);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
#rehber-overlay.aktif {
    opacity: 1;
    visibility: visible;
}

/* Rehber kutusu (glassmorphism) */
#rehber-kutusu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100002;
    box-sizing: border-box;
    width: min(360px, calc(100vw - 24px));
    padding: 16px 18px 14px;
    color: #f5f0e6;
    font-family: 'Josefin Sans', 'Inter', sans-serif;
    background: rgba(30, 30, 30, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid #d4af37;
    border-top: 5px solid #c0392b;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#rehber-kutusu.aktif {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#rehber-kutusu .rehber-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
#rehber-sayac {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #d4af37;
}
#rehber-atla {
    background: none;
    border: none;
    padding: 2px 4px;
    color: rgba(245, 240, 230, 0.55);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}
#rehber-atla:hover { color: #f5f0e6; }
#rehber-metin {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.55;
    font-weight: 400;
    color: #f5f0e6;
}
#rehber-ileri {
    display: block;
    margin-left: auto;
    padding: 9px 22px;
    background: linear-gradient(135deg, #c0392b, #922b21);
    color: #fff;
    border: 1px solid #d4af37;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
#rehber-ileri:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(192, 57, 43, 0.5);
}
/* Sadece bilgilendirme gösterilirken (örn. "önce giriş yapın") */
#rehber-kutusu.rehber-bildirim #rehber-ileri,
#rehber-kutusu.rehber-bildirim #rehber-atla { display: none; }
#rehber-kutusu.rehber-bildirim #rehber-metin { margin-bottom: 0; }

/* Vurgulanan hedef element */
.rehber-hedef-aktif {
    z-index: 100001 !important;
    pointer-events: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.85), 0 0 26px 6px rgba(212, 175, 55, 0.45) !important;
    border-radius: inherit;
}
/* Hedef 'static' ise z-index'in çalışması için konumlandır */
.rehber-hedef-statik { position: relative !important; }
/* Hedefin üst kapsayıcıları kendi stacking context'lerinde hedefi hapsetmesin */
.rehber-ata-yigin { z-index: 100000 !important; }
.rehber-ata-statik { position: relative !important; }

/* Ana sayfa rehber modalındaki "turu yeniden başlat" butonu */
.rehber-tekrar-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
}
.rehber-tekrar-btn:hover { background: rgba(212, 175, 55, 0.12); }

/* ═══════════════════════════════════════════════════════════════
   ÜNİTE KİLİDİ (9. ve 10. sınıf – 2. ve 3. üniteler)
═══════════════════════════════════════════════════════════════ */
.folder-btn.unite-kilitli { position: relative; filter: grayscale(0.55); opacity: 0.72; }
.folder-btn.unite-kilitli::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 14px;
    color: #d4af37;
}
#uniteKilitModal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
#uniteKilitModal.aktif { opacity: 1; visibility: visible; }
.unite-kilit-kutu {
    box-sizing: border-box;
    width: min(380px, 100%);
    padding: 28px 24px 22px;
    text-align: center;
    color: #f5f0e6;
    font-family: 'Josefin Sans', 'Inter', sans-serif;
    background: rgba(30, 30, 30, 0.92);
    border: 1px solid #d4af37;
    border-top: 5px solid #c0392b;
    border-radius: 12px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65), 0 0 22px rgba(212, 175, 55, 0.2);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s ease;
}
#uniteKilitModal.aktif .unite-kilit-kutu { transform: none; }
.unite-kilit-ikon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #d4af37;
    border: 2px solid #d4af37;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
}
.unite-kilit-baslik { margin: 0 0 10px; font-size: 20px; color: #d4af37; }
.unite-kilit-metin { margin: 0 0 20px; font-size: 15px; line-height: 1.55; }
.unite-kilit-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #c0392b, #922b21);
    color: #fff;
    border: 1px solid #d4af37;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
}
.unite-kilit-btn:hover { box-shadow: 0 4px 14px rgba(192, 57, 43, 0.5); }
