/* ============================================================
   STYLESRACE.CSS - Modern Irklar Sayfası 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; }

/* Scrollbar Özelleştirmesi */
::-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 --- */
.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üler */
.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 DÜZENİ --- */
.main-container {
    max-width: 1000px; /* Genişliği biraz artırdık ki kutu içinde sıkışmasın */
    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; }

/* --- YENİ EKLENEN ANA KUTU (WRAPPER) --- */
.main-content-box {
    background-color: #222;       /* Kutu rengi */
    border: 1px solid #333;       /* İnce çerçeve */
    border-radius: 12px;          /* Köşeleri yuvarla */
    padding: 40px;                /* İç boşluk */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Derinlik veren gölge */
}

/* --- IRK KARTLARI (ACCORDION) --- */
.race-card {
    background-color: #2a2a2a; /* Ana kutudan biraz daha açık bir ton */
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.race-card:hover { border-color: #555; }

/* Tıklanabilir Başlık */
.collapsible-header {
    background-color: #333;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #b52b2b;
    transition: background 0.2s;
}
.collapsible-header:hover { background-color: #444; }
.collapsible-header h3 {
    margin: 0;
    font-size: 1.15em;
    color: #eee;
    font-weight: 600;
}
/* Ok İkonu */
.arrow-icon {
    transition: transform 0.3s ease;
    color: #888;
}
.race-card.active .arrow-icon { transform: rotate(180deg); color: #b52b2b; }

/* İçerik Alanı */
.race-content {
    background-color: #252525;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
    border-top: 1px solid transparent;
}

.race-card.active .race-content {
    padding: 20px;
    border-top: 1px solid #3b3b3b;
    max-height: 2000px;
}

/* İçerik Metinleri */
.race-content p { color: #ccc; line-height: 1.6; margin-bottom: 15px; }
.race-content .bold { color: #b52b2b; font-weight: bold; margin-right: 5px; }

/* Ayraç */
hr { border: 0; border-top: 1px solid #444; margin: 15px 0; }

/* Tablo Stilleri */
.draconic-table {
    width: 100%;
    margin-top: 15px;
    background-color: #1e1e1e;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #333;
}

/* Responsive (Mobil) Ayarlar */
@media (max-width: 800px) {
    .desktop-nav { display: none; }
    .menu-icon { display: block; }
    
    /* Mobil'de Ana Konteyner Ayarları */
    .main-container { padding: 15px; margin: 0; }
    
    /* İŞTE SİHİRLİ KISIM: Mobilde kutuyu "yok ediyoruz" */
    .main-content-box {
        background-color: transparent; /* Arka plan şeffaf */
        border: none;                  /* Çerçeve yok */
        box-shadow: none;              /* Gölge yok */
        padding: 0;                    /* Boşluk yok */
        border-radius: 0;
    }
    
    /* Mobilde kartlar daha belirgin olsun diye renklerini düzenleyebiliriz */
    .race-card {
        background-color: #222;
        border: 1px solid #333;
    }
}

/* ============================================================
   BÜYÜ VE EŞYA LİNKLERİ (Karakter Sihirbazı Stili)
   ============================================================ */

.dnd-link {
    color: #8ab4f8;
    cursor: pointer;
    border-bottom: 1px dotted #8ab4f8;
    transition: all 0.2s ease;
}

/* Büyü Linkleri için Özel Mor Stil */
a.dnd-link.spell-link {
    color: #a855f7; /* Mistik Mor */
    text-decoration: none;
    border-bottom: 1px dotted #a855f7;
    padding: 0 2px; /* Hafif boşluk, hover arka planı için */
}

a.dnd-link.spell-link:hover {
    color: #d8b4fe; /* Açık Lila */
    border-bottom: 1px solid #d8b4fe;
    background-color: rgba(168, 85, 247, 0.15); /* Arkaya hafif mor ışık */
    border-radius: 4px;
    text-decoration: none;
}