/* Masal Detay Sayfası Stilleri */

/* Bölümcüler (Hikaye gibi yan alan listesi) */

.bolum_masal{
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}
.bolumculer{
    padding: 10px;
}

.bolumculer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bolumculer ul li {
    margin-bottom: 8px;
}

.bolumculer ul li:last-child {
    margin-bottom: 0;
}

.bolumculer ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--renkyazi);
    font-size: 14px;
    transition: all 0.2s;
    background-color: #f2f2f2;
}
.bolumculer ul li:last-child{
    margin-bottom: 0px;
}

.bolumculer ul li a:hover {
    background: rgba(236, 72, 153, 0.08);
    border-color: #ec4899;
}

.bolumculer ul li a.active {
    background: linear-gradient(135deg, rgba(244, 114, 182, 0.15), rgba(236, 72, 153, 0.15));
    border-color: #ec4899;
    color: #000;
    font-weight: 600;
}

.bolumculer ul li a.active i {
    color: #000;
}

.bolumculer ul li a i {
    color: #000;
}


/* Test Butonu */
.mo_test_ana {
    margin-bottom: 10px;
}

.mo_test {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
    transition: all 0.3s ease;
}

.mo_test:hover {
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.45);
}

.mo_test a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 150px;
}

.mo_test a::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 ease;
}

.mo_test a:hover::before {
    left: 100%;
}

.mo_test a:hover {
    background: rgba(0,0,0,0.1);
}

.mo_test a i {
    font-size: 22px;
}

/* Ana Başlık Kartı */
.ki_baslik .masal-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.masal-seviye-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.masal-bolum-sayisi {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 13px;
}

/* Bölüm Listesi */
.masal-bolumler-section {
    margin-top: 20px;
}

.masal-bolumler-baslik {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--renkyazi);
}

.masal-bolumler-baslik i {
    color: #ec4899;
}

.masal-bolum-liste {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.masal-bolum-item {
    background: var(--renkbeyaz);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.masal-bolum-item:hover {
    border-color: #ec4899;
}

.masal-bolum-item.active {
    border-color: #ec4899;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.15);
}

.masal-bolum-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    background: var(--renkbeyaz);
    transition: background 0.2s;
}

.masal-bolum-header:hover {
    background: rgba(236, 72, 153, 0.05);
}

.masal-bolum-numara {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-right: 12px;
}

.masal-bolum-isim {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--renkyazi);
}

.masal-bolum-toggle {
    color: #888;
    font-size: 12px;
    transition: transform 0.3s;
}

.masal-bolum-toggle.rotated {
    transform: rotate(180deg);
}

/* Ana İçerik Alanı */
.masal-icerik-container {
    background: var(--renkbeyaz);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.masal-icerik-baslik {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ec4899;
    display: flex;
    align-items: center;
    gap: 10px;
}

.masal-icerik-baslik .bolum-no {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.masal-icerik-metin {
    line-height: 1.9;
    font-size: 15px;
    color: #444;
}

.masal-icerik-metin p {
    margin-bottom: 18px;
}

.masal-icerik-metin b {
    color: #333;
    font-weight: 600;
}

.masal-icerik-metin i {
    color: #ec4899;
    font-style: italic;
}

/* Test Bölümü (Yan Alan) */
.masal-test-section {
    margin-top: 20px;
}

.masal-test-baslik {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--renkyazi);
}

.masal-test-baslik i {
    color: #6366f1;
}

.masal-soru-card {
    background: var(--renkbeyaz);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
}

.masal-soru-card.answered {
    opacity: 0.8;
}

.masal-soru-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.masal-soru-numara {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 10px;
    margin-top: 2px;
}

.masal-soru-metin {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.5;
    color: var(--renkyazi);
}

.masal-cevaplar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.masal-cevap-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.masal-cevap-item:hover {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.05);
}

.masal-cevap-item.selected {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.masal-cevap-item.correct {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.masal-cevap-item.wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.masal-cevap-harf {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    margin-right: 10px;
    transition: all 0.2s;
}

.masal-cevap-item.correct .masal-cevap-harf {
    background: #10b981;
    color: #fff;
}

.masal-cevap-item.wrong .masal-cevap-harf {
    background: #ef4444;
    color: #fff;
}

.masal-cevap-metin {
    flex: 1;
    line-height: 1.4;
}

/* Bölüm Navigasyon */
.masal-bolum-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(236, 72, 153, 0.15);
    gap: 15px;
}

.masal-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.masal-nav-btn::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;
}

.masal-nav-btn:hover::before {
    left: 100%;
}

.masal-nav-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.masal-nav-btn.prev {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
}

.masal-nav-btn.prev:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.masal-nav-btn.prev:hover i {
.masal-nav-btn.prev:hover i {
}

.masal-nav-btn.next {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    color: #fff;
    border: none;
}

.masal-nav-btn.next:hover {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    transform: translateX(3px);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

.masal-nav-btn.next:hover i {
    transform: translateX(3px);
}

.masal-nav-btn:disabled,
.masal-nav-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Nav Buttons */
@media (max-width: 480px) {
    .masal-bolum-nav {
        flex-direction: column;
        gap: 10px;
    }

    .masal-nav-btn {
        justify-content: center;
        width: 100%;
        padding: 12px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .masal-icerik-container {
        padding: 18px;
    }

    .masal-icerik-metin {
        font-size: 14px;
        line-height: 1.8;
    }

    .masal-bolum-header {
        padding: 10px 12px;
    }

    .masal-soru-card {
        padding: 12px;
    }
}

/* Header Placeholder */
.masal-header-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f472b6, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
}

.masal-header-placeholder i {
    font-size: 50px;
    color: rgba(255,255,255,0.8);
}

