/* ============================================================
   STYLESBACK.CSS - Modern Karakter Geçmişleri Teması
   ============================================================ */

/* --- TEMEL AYARLAR (BASE) --- */
* { box-sizing: border-box; }

body {
    margin: 0; padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a; 
    color: #eee;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b52b2b; }

.hidden { display: none !important; }

/* --- HEADER & NAVİGASYON (Standart) --- */
.main-header {
    background-color: #222; 
    border-bottom: 2px solid #b52b2b;
    padding: 0 20px; 
    height: 70px;
    display: flex; align-items: center; 
    position: relative; z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-container {
    width: 100%; max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}

.brand-area { display: flex; align-items: center; gap: 15px; }
.logo-img { height: 50px; filter: drop-shadow(0 0 5px rgba(181, 43, 43, 0.5)); }

.titles { display: flex; flex-direction: column; }
.main-title { margin: 0; font-size: 1.4em; font-weight: bold; color: #fff; letter-spacing: 1px; }
.sub-title { font-size: 0.8em; color: #b52b2b; text-transform: uppercase; letter-spacing: 2px; }

/* Menü */
.desktop-nav { display: flex; gap: 20px; }
.nav-link { color: #ccc; font-weight: 500; transition: color 0.2s; font-size: 0.95em; }
.nav-link:hover { color: #b52b2b; }

.menu-icon { display: none; font-size: 28px; cursor: pointer; color: #fff; user-select: none; }

.mobile-nav {
    position: absolute; top: 70px; left: 0; width: 100%;
    background-color: #222; border-bottom: 2px solid #b52b2b;
    padding: 20px; z-index: 99;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    display: none; 
}
.mobile-nav.open { display: block; }
.mobile-nav ul li { margin-bottom: 15px; text-align: center; }
.mobile-nav ul li a { font-size: 1.2em; display: block; color: #eee; }
.mobile-nav ul li a:hover { color: #b52b2b; }

/* --- ANA İÇERİK --- */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.intro-section {
    text-align: center;
    margin-bottom: 30px;
}
.intro-section h2 { color: #b52b2b; font-size: 2em; margin-bottom: 10px; }
.intro-section p { color: #aaa; font-size: 1.1em; }

/* --- ANA KUTU (WRAPPER) --- */
.main-content-box {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- GEÇMİŞ KARTLARI (BAŞLIK) --- */
h3.collapsible {
    background-color: #333;
    padding: 15px 20px;
    margin: 0;
    cursor: pointer;
    
    /* Flexbox Ayarları */
    display: flex;
    justify-content: space-between; /* İsim sola, Meta sağa yaslansın */
    align-items: center;            /* Dikey ortala */
    
    border-left: 4px solid #b52b2b;
    color: #eee;
    font-size: 1.2em;
    transition: background 0.2s;
}

h3.collapsible:hover { background-color: #444; }
h3.collapsible.active { background-color: #444; }

/* ESKİ OKU SİLİYORUZ (Pseudo-element iptal) */
h3.collapsible:after {
    content: none; 
}

/* --- YENİ SAĞ TARAF (KAYNAK + OK) --- */
.header-meta {
    display: flex;
    align-items: center; /* Dikey ortala */
    gap: 10px;           /* Kaynak yazısı ile ok arasına boşluk */
}

.bg-source {
    color: #888;
    font-weight: normal;
    font-size: 0.75em;
    white-space: nowrap; /* Mobilde alt satıra kaymasın */
}

/* --- YENİ OK İKONU --- */
.arrow-icon {
    font-size: 0.8em;
    color: #888;
    transition: transform 0.3s ease;
    display: inline-block; /* Dönme animasyonu için gerekli */
}

/* Başlık aktif olduğunda oku döndür */
h3.collapsible.active .arrow-icon {
    transform: rotate(180deg);
    color: #b52b2b;
}

/* İçerik Divleri (asker, bilge vb. classlar) */
div.asker, div.bilge, div.denizci, div.gosteriAdami, div.halkKahramani, 
div.loncaZanatkari, div.munzevi, div.murit, div.sokakCocugu, div.soylu, 
div.suclu, div.yabanci, div.sarlatan {
    background-color: #1e1e1e; /* Kartın içi */
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 8px 8px;
    /* Hidden class'ı script ile yönetiliyor */
}

/* --- İÇERİK DETAYLARI --- */
.bold { color: #b52b2b; font-weight: bold; }
.ciz { text-decoration: none; border-bottom: 1px dotted #aaa; color: #fff; }
p { line-height: 1.6; color: #ccc; margin-bottom: 15px; }

/* İçerdeki alt başlıklar (Uzmanlık Dalı vb.) */
.collapsibleKarGec {
    color: #b52b2b;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.05em;
    border-bottom: 1px solid #444;
    display: inline-block;
    margin-bottom: 10px;
}

/* --- TABLOLAR (Gecmisler, Kisilikler) --- */
.gecmisler, .kisilikler {
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 25px;
}

h4 {
    color: #fff;
    border-bottom: 1px solid #b52b2b;
    padding-bottom: 5px;
    margin-top: 0;
    font-size: 1.1em;
}

/* Tablo Satırları (Koyu/Acik HTML sınıfları var) */
.koyu, .acık, .acık1 {
    padding: 8px 10px;
    margin: 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.95em;
}

.koyu { background-color: #2a2a2a; }
.acık, .acık1 { background-color: #222; }

/* Gereksiz HR'leri temizle */
.hr1 { display: none; }

/* Responsive */
@media (max-width: 800px) {
    .desktop-nav { display: none; }
    .menu-icon { display: block; }
    .main-container { padding: 10px; margin: 0; }
    .main-content-box { padding: 10px; background: transparent; border: none; box-shadow: none; }
}

/* ============================================================
   STYLESBACK.CSS - Tablo ve İçerik Güncellemeleri
   ============================================================ */

/* ... (Üst kısımlar aynı kalabilir) ... */

/* --- GEÇMİŞ KARTLARI --- */
.bg-card-wrapper {
    margin-bottom: 15px;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    overflow: hidden;
    background-color: #2a2a2a;
}

h3.collapsible {
    background-color: #333;
    padding: 15px 20px;
    margin: 0; /* Margin sıfırlandı çünkü wrapper var */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #b52b2b;
    color: #eee;
    font-size: 1.2em;
    transition: background 0.2s;
}

h3.collapsible:hover { background-color: #444; }
h3.collapsible.active { background-color: #444; }



.bg-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-top: 1px solid #333;
    transition: all 0.3s ease;
}
.bg-content.hidden { display: none; }

/* --- İÇERİK TİPOGRAFİSİ --- */
.sub-header {
    color: #b52b2b;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    text-transform: uppercase;
}

.bold { color: #fff; font-weight: bold; }
p { color: #ccc; line-height: 1.6; margin-bottom: 15px; }

/* --- TABLOLAR (Önemli Kısım) --- */
.table-responsive {
    /* overflow-x: auto;  <-- BU SATIRI SİL YA DA YORUMA AL */
    width: 100%; /* Kapsayıcının genişliğini zorla */
    margin: 15px 0;
    border-radius: 6px;
    border: 1px solid #444;
    overflow: hidden; /* Taşma olursa gizle veya sarmalamayı zorla */
}

.bg-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #252525;
    table-layout: fixed; /* Tablonun %100 genişliğe sadık kalmasını ve hücrelerin taşmamasını sağlar */
}

.bg-table th {
    background-color: #333;
    color: #b52b2b;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #444;

    white-space: normal; 
    word-break: break-word;
    overflow-wrap: break-word;
}

.bg-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.95em;
    vertical-align: top;

    white-space: normal; 
    word-break: break-word;
    overflow-wrap: break-word;
}

.bg-table tr:last-child td { border-bottom: none; }
.bg-table tr:nth-child(even) { background-color: #2a2a2a; }

/* Zar Sütunu (d8, d6) */
.col-dice { width: 60px; text-align: center; }
.text-center { text-align: center; }

/* Liste Stilleri */
ul { padding-left: 20px; list-style: none; }
li { margin-bottom: 5px; color: #bbb; }



@media (max-width: 650px) {
    .bg-table td {
    font-size: 0.8em;
}
}
