/* ============================================================
   STYLESYAKARISLAR.CSS - Eldritch Teması
   ============================================================ */
* { 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: #9b59b6; } /* Warlock Moru */

/* --- HEADER --- */
.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; }
.sub-title { font-size: 0.8em; color: #b52b2b; text-transform: uppercase; letter-spacing: 2px; }

.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; }

.mobile-nav {
    position: absolute; top: 70px; left: 0; width: 100%;
    background-color: #222; border-bottom: 2px solid #b52b2b;
    padding: 20px; z-index: 99; 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; }

/* --- İÇERİK --- */
.main-container { max-width: 1000px; margin: 30px auto; padding: 20px; }

/* Arama */
.search-section { margin-bottom: 30px; }
.search-input {
    width: 100%; padding: 15px;
    background-color: #222; border: 1px solid #444; border-radius: 8px;
    color: #fff; font-size: 1.1em; transition: border-color 0.3s;
}
.search-input:focus { outline: none; border-color: #b52b2b; box-shadow: 0 0 8px rgba(155, 89, 182, 0.4); }

/* Liste ve Kartlar */
.inv-grid { display: flex; flex-direction: column; gap: 15px; }

.inv-card {
    background-color: #2a2a2a;
    border: 1px solid #3b3b3b;
    border-radius: 8px;
    overflow: hidden;
}

.inv-header {
    background-color: #333;
    padding: 15px 20px;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    border-left: 5px solid #b52b2b; /* Warlock Moru */
    transition: background 0.2s;
}
.inv-header:hover { background-color: #3a3a3a; }

.inv-title-group { display: flex; flex-direction: column; }
.inv-name { font-size: 1.1em; font-weight: bold; color: #fff; }
.inv-prereq { font-size: 0.85em; color: #aaa; font-style: italic; margin-top: 4px; }
.prereq-label { color: #b52b2b; font-weight: bold; font-style: normal; } /* Etiket Rengi */

.arrow-icon { transition: transform 0.3s ease; color: #888; }

.inv-content {
    background-color: #252525;
    padding: 20px;
    display: none;
    border-top: 1px solid #3b3b3b;
    color: #ccc; line-height: 1.6; font-size: 0.95em;
}

.loading-msg { text-align: center; color: #888; margin-top: 50px; }
ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
li { margin-bottom: 5px; }
p { margin-bottom: 10px; }


/* --- ARAMA VE FİLTRE DÜZENİ --- */
.filter-container {
    display: flex;
    gap: 10px;
}

/* ============================================================
   BÜYÜ VE EŞYA LİNKLERİ (Kanguen Stili - Teşekkürler!)
   ============================================================ */

.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 */
}

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;
}

/* Mobilde alt alta olsun */
@media (max-width: 600px) {
    .filter-container {
        flex-direction: column;
    }
}

.search-input {
    flex: 3; /* Arama çubuğu daha geniş olsun */
    padding: 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    transition: border-color 0.3s;
}

.sort-select {
    flex: 1; /* Sıralama kutusu daha dar */
    padding: 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    color: #eee;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
}

.sort-select:focus, .search-input:focus {
    border-color: #9b59b6; /* Warlock Moru */
    box-shadow: 0 0 8px rgba(155, 89, 182, 0.4);
}

/* Option'ların arka planı */
.sort-select option {
    background-color: #222;
    color: #eee;
}

/* Responsive */
@media (max-width: 800px) {
    .desktop-nav { display: none; }
    .menu-icon { display: block; }
    .main-container { padding: 15px; }
}