/* --- TEMEL AYARLAR --- */
:root {
    --arc-orange: #ff4500;
    --bg-dark: #111;
    --card-bg: #1a1a1a;
    --text-color: #eee;
}

body {
    margin: 0;
    padding: 0;
    /* ÖNEMLİ: Sol menü için siteyi sağa ittik */
    padding-left: 70px; 
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Oswald', sans-serif;
}
/* --- AYDINLIK MOD (LIGHT MODE) RENKLERİ --- */
body.light-mode {
    --bg-dark: #f0f0f0;   /* Arkaplan açık gri */
    --card-bg: #ffffff;   /* Kartlar bembeyaz */
    --text-color: #111;   /* Yazılar siyah */
}

/* Light moddayken sidebar ikonları da koyu olsun */
body.light-mode .sidebar-icon {
    color: #333;
}
/* Ama aktif olan turuncu kalsın */
body.light-mode .sidebar-icon:hover {
    color: var(--arc-orange);
}
a { text-decoration: none; color: inherit; }

/* --- YENİ EKLENEN: SOL SIDEBAR AYARLARI --- */
.sidebar {
    position: fixed; /* Sayfa kaydırılsa da sabit kal */
    left: 0;
    top: 0;
    width: 70px; /* Menü genişliği */
    height: 100vh; /* Ekran boyu kadar */
    background-color: #000; /* Simsiyah arkaplan */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Sağ tarafında ince çizgi */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Üst ve alt ikonları ayır */
    z-index: 1000; /* Her şeyin üstünde dursun */
    padding: 20px 0;
    box-sizing: border-box;
}

.sidebar-top, .sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* İkonlar arası boşluk */
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    color: #888; /* İkon rengi gri */
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-icon svg {
    width: 100%;
    height: 100%;
}

/* Üzerine gelince Turuncu olsun */
.sidebar-icon:hover {
    color: var(--arc-orange);
    cursor: pointer;
}

/* En üstteki Logo biraz daha farklı dursun istersen */
.logo-icon {
    color: #fff;
    margin-bottom: 20px;
}

/* --- 1. BÖLÜM: ANA GÖRSEL (HERO) --- */
.hero-section {
    width: 100%;
    height: 50vh; /* Senin ayarladığın yükseklik korundu */
    /* Resim yolunu kontrol et */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--bg-dark)), url('images/header.jpg');
    background-size: cover;
    background-position: top center; /* Resim küçülünce kafa kesilmesin diye top center yaptım */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--arc-orange);
    position: relative;
}

.hero-content h1 {
    font-size: 5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    margin: 0;
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem;
    text-align: center;
    opacity: 0.8;
    margin-top: 10px;
}

/* --- 2. BÖLÜM: KUTUCUKLAR (GRID) --- */
.container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    border-left: 5px solid var(--arc-orange);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Grid Menu */
.grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
}

/* --- KART AYARLARI --- */
.card {
    position: relative;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Resimler için ayar */
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* HTML'de resim yerine div kullandıysan (Quests vb.) bunun için ayar */
.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

/* YAZI ALANI (SİYAH GRADIENT) */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 15px 10px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.card-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
}

/* Gizlenen elemanlar */
.card-subtitle, .tech-num {
    display: none; 
}

/* HOVER EFEKTLERİ */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: var(--arc-orange);
}

.card:hover img, 
.card:hover .img-placeholder {
    transform: scale(1.1);
}

/* --- 3. BÖLÜM: VİDEO VE LİNKLER AYARLARI --- */

.split-section {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Sol geniş, sağ dar */
    gap: 20px;
    margin-top: 40px;
    
    /* ÖNEMLİ: Link kutusunun gereksiz uzamasını engelleyen kod */
    align-items: start; 
}

/* Mobilde alt alta geçsin */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr; 
    }
}

/* Kutuların genel görünümü */
.content-box {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    height: auto; /* İçerik kadar boy */
}

.links-box {
    height: auto; 
}

.box-title {
    margin-top: 0;
    border-bottom: 2px solid var(--arc-orange);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

/* --- VİDEO AYARLARI --- */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; 
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* --- LİNK BUTONLARI AYARLARI --- */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Butonlar arası boşluk */
}

.social-btn {
    display: flex;
    justify-content: space-between; /* Ok işareti sağa */
    background-color: #222;
    color: #ccc;
    padding: 12px 15px;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.social-btn:hover {
    background-color: var(--arc-orange);
    color: #fff;
    padding-left: 20px;
}
/* --- AÇILIR MENÜ (SLIDE MENU) AYARLARI --- */
.slide-menu {
    position: fixed;
    top: 0;
    left: 70px; /* Sidebar'ın hemen sağından başlar */
    width: 300px; /* Menü genişliği */
    height: 100vh; /* Tam boy */
    background-color: #000; /* Arkaplan siyah */
    border-right: 2px solid var(--arc-orange); /* Sağ kenar turuncu çizgi */
    z-index: 999; /* Sidebar'ın (1000) altında, içeriğin üstünde */
    padding: 40px 30px;
    box-sizing: border-box;
    
    /* Animasyon Kısmı - Başlangıçta ekran dışında */
    transform: translateX(-120%); 
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Havalı kayma efekti */
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
}

/* Bu sınıf JS ile eklendiğinde menü görünür */
.slide-menu.active {
    transform: translateX(0);
}

.menu-header {
    color: var(--arc-orange);
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

/* Linklerin Görünümü */
.menu-links a {
    display: block;
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

/* Linke gelince efekt */
.menu-links a:hover {
    color: #fff;
    padding-left: 10px; /* Sağa kayma efekti */
    border-left: 3px solid var(--arc-orange);
    padding-left: 15px; /* Çizgi eklenince biraz daha kaydır */
}

/* Aradaki çizgi */
.menu-divider {
    height: 1px;
    background-color: #333;
    margin: 30px 0;
}

/* Alt kısımdaki küçük linkler */
.small-links a {
    font-size: 1rem;
    color: #888;
    font-weight: normal;
}
.small-links a:hover {
    color: var(--arc-orange);
}
/* --- AYDINLIK MOD İÇİN HERO (RESİM) DÜZELTMESİ --- */
body.light-mode .hero-section {
    /* Normalde değişken kullanıyorduk, burada ELLE SİYAH yaptık.
       Böylece site beyaz olsa da resmin üzerindeki gölge siyah kalır. */
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.3), #000), url('images/header.jpg');
    
    /* Resmin altına turuncu çizgi zaten var ama daha belirgin olsun */
    border-bottom: 4px solid var(--arc-orange);
}

/* Ayrıca Light Modda başlık beyaz kalsın ki resim üstünde okunsun */
body.light-mode .hero-content h1 {
    color: #fff;
    text-shadow: 0 0 20px rgba(0,0,0,1); /* Gölgeyi güçlendirdik */
}
/* --- ARAMA EKRANI (OVERLAY) --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Arkası hafif görünen siyah */
    z-index: 2000; /* Her şeyin en üstünde */
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Gizleme Ayarları */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Aktif olunca görünür yap */
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-box {
    position: relative;
    width: 60%;
    text-align: center;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #555;
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    padding: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    border-bottom-color: var(--arc-orange); /* Yazarken turuncu olsun */
}

.close-search {
    position: absolute;
    right: 0;
    top: -40px;
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
}

.close-search:hover {
    color: var(--arc-orange);
}

/* --- ARAMA KUTUSU DÜZELTMESİ --- */
.search-box input {
    /* Eski kodda uppercase vardı, bunu 'none' yaparak düzelttik */
    text-transform: none !important; 
}

/* --- ARAMA SONUÇLARI LİSTESİ --- */
.search-results {
    width: 100%;
    margin-top: 15px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none; /* Başlangıçta gizli */
    text-align: left; /* Yazıları sola yasla */
}

/* Sonuçlar göründüğünde açılması için */
.search-results.visible {
    display: block;
}

.result-item {
    padding: 15px;
    border-bottom: 1px solid #333;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: var(--arc-orange);
    color: #fff;
    padding-left: 20px; /* Hover efekti */
}

/* --- FOOTER AYARLARI --- */
.site-footer {
    width: 100%;
    background-color: #0a0a0a; /* Siteden bir tık daha koyu siyah */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    margin-top: 50px;
    font-family: 'Oswald', sans-serif;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* Sol, orta ve sağa dağıt */
    align-items: center;
    flex-wrap: wrap; /* Mobilde sığmazsa alt satıra geçsin */
    gap: 20px;
}

/* SOL TARA (Logo & Tarih) */
.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 1px;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ORTA/SAĞ TARA (Özel Yazı) */
.footer-text {
    color: #888;
    font-size: 1rem;
    text-align: left;
    flex: 1; /* Boş alanı kaplayıp yazıyı sağa itmek için */
    margin: 0 40px; /* Kenarlara yapışmasın */
}

/* EN SAĞ (Instagram) */
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%; /* Yuvarlak buton */
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--arc-orange); /* Mouse gelince turuncu */
    transform: translateY(-3px); /* Hafif yukarı zıplama */
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column; /* Mobilde alt alta diz */
        text-align: center;
    }

    .footer-text {
        text-align: center;
        margin: 10px 0;
    }
}

/* =========================================
   GAME MENU STYLE (PROJECTS & MAPS İÇİN)
   2. Fotoğraftaki temayı uygular.
   ========================================= */

.game-menu-wrapper {
    background-color: #000; /* İçerik alanı simsiyah */
    min-height: 100vh;
    font-family: 'Oswald', sans-serif;
    padding-bottom: 50px;
}

/* --- ÜST KISIM (BAŞLIK ve MAIN MENU BUTONU) --- */
.game-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
}

.game-page-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* MAIN MENU BUTONU (Sağ Üst - Turuncu Çerçeveli) */
.game-main-menu-btn {
    color: var(--arc-orange);
    border: 1px solid var(--arc-orange);
    padding: 8px 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.game-main-menu-btn:hover {
    background-color: var(--arc-orange);
    color: #000;
}

/* TURUNCU BOYDAN BOYA ÇİZGİ */
.game-header-divider {
    width: 100%;
    height: 2px;
    background-color: var(--arc-orange);
    margin-bottom: 40px;
}

/* --- İÇERİK KONTEYNERİ --- */
.game-content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* GİRİŞ AÇIKLAMASI (Solda turuncu çizgili) */
.game-section-intro {
    margin-bottom: 40px;
    border-left: 4px solid var(--arc-orange); /* Sol çizgi */
    padding-left: 15px;
}

.game-intro-desc {
    color: #ccc;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}
.game-intro-desc strong { color: #fff; }

/* --- BÖLÜM BAŞLIKLARI (CURRENT, PAST) --- */
.game-sub-header {
    color: #fff;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    border-left: 4px solid var(--arc-orange); /* Sol çizgi */
    padding-left: 15px;
    line-height: 1;
}

/* --- LİSTE YAPISI --- */

/* Liste Başlıkları (Turuncu) */
.game-list-header-row {
    display: flex;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.g-col-header {
    color: var(--arc-orange);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.g-col-left { width: 40%; } /* Event ve Resim alanı */
.g-col-right { width: 60%; } /* Duration alanı */

/* Liste Satırları */
.game-list-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #222;
    padding: 25px 0;
}

/* Sol Taraf: Link + Resim */
.g-row-left {
    width: 40%;
    padding-right: 20px;
}

/* Link Rengi (Mavi - 2. Fotodaki gibi) */
.game-item-link {
    display: block;
    color: #4aa3ff; /* Parlak mavi */
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-decoration: none;
}
.game-item-link:hover { text-decoration: underline; }

.game-item-thumb img {
    width: 300px; /* Resim genişliği */
    height: auto;
    border-radius: 2px;
    border: 1px solid #333;
}

/* Sağ Taraf: Süre (Duration) */
.g-row-right {
    width: 60%;
    color: #ddd;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    padding-top: 5px;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .game-list-header-row { display: none; } /* Mobilde başlıkları gizle */
    .game-list-row { flex-direction: column; gap: 15px; }
    .g-col-left, .g-col-right, .g-row-left, .g-row-right { width: 100%; }
    .game-top-bar { padding: 20px; }
    .game-page-title { font-size: 1.8rem; }
}

/* =========================================
   LORE PAGE SPECIFIC STYLES
   ========================================= */

/* Metinlerin okunabilirliği için ayarlar */
.lore-text-block {
    max-width: 900px; /* Çok geniş olmasın, göz yorar */
    margin-left: 20px; /* Çizgiyle hizalı dursun */
}

.lore-text-block p {
    color: #ccc;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem; /* Normalden bir tık büyük */
    line-height: 1.8; /* Satır aralarını açtık */
    margin-bottom: 25px; /* Paragraflar arası boşluk */
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .lore-text-block {
        margin-left: 0;
    }
    .lore-text-block p {
        font-size: 1rem;
    }
}