/* --- 📝 BİLGİ SAYFALARI TASARIMI --- */

.info-page-section {
    padding: 40px 0 80px 0;
    background-color: #f8fafc;
}

.info-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sol menü 280px, sağ içerik esnek */
    gap: 40px;
    align-items: start;
}

/* Sol Yönlendirme Menüsü */
.info-sidebar {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 0;
    position: sticky;
    top: 20px; /* Sayfa kaydıkça menü ekranda asılı kalır */
}

.info-sidebar h3 {
    margin: 0 0 15px 20px;
    font-size: 1.1rem;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}

.info-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-menu-link {
    display: block;
    padding: 12px 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.info-menu-link:hover {
    background-color: #f8fafc;
    color: var(--theme-color, #f97316);
}

.info-menu-link.active {
    color: var(--theme-color, #f97316);
    border-left-color: var(--theme-color, #f97316);
    background-color: #fff7ed;
    font-weight: 700;
}

/* Sağ İçerik Alanı */
.info-content-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.info-content-card h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #0f172a;
    font-size: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

/* CKEditor'den gelen HTML metinler için genel okuma ayarları */
.info-text-body {
    color: #334155;
    line-height: 1.8;
    font-size: 1rem;
}

.info-text-body h2, .info-text-body h3, .info-text-body h4 {
    color: #1e293b;
    margin-top: 30px;
    margin-bottom: 15px;
}

.info-text-body ul, .info-text-body ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.info-text-body li {
    margin-bottom: 8px;
}

.info-text-body p {
    margin-bottom: 15px;
}

/* 🎯 YENİ: Editörden Gelen Resimleri Tıklanabilir Yapma Stili */
.info-text-body img {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 100% !important; /* Mobilden taşmasını engeller */
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.info-text-body img:hover {
    opacity: 0.85;
    transform: scale(1.01);
}

/* 🎯 YENİ: Resim Büyütme (Lightbox) Modalı Stilleri */
.img-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(5px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.img-modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}
.img-modal-overlay.active .img-modal-content {
    transform: scale(1);
}
.img-modal-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.img-modal-close:hover {
    color: #ef4444;
}

/* 📱 Mobil Uyumluluk */
@media (max-width: 992px) {
    .info-layout {
        grid-template-columns: 1fr; /* Mobilde menü üstte, içerik altta kalır */
    }
    .info-sidebar {
        position: static;
    }
    .info-content-card {
        padding: 25px;
    }
    .info-content-card h1 {
        font-size: 1.5rem;
    }
    .img-modal-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
}