﻿/* --- ORTAK ÇEKİRDEK STİLLER --- */
:root {
    --primary-orange: #f58220;
    --danger-red: #ff3300;
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(10, 10, 10, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-dark) url('img/black-mesa-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    line-height: 1.6;
}

body::before {
    content: ""; position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92); z-index: -1;
}

/* --- NAVBAR (ANA SAYFA ÖLÇÜLERİYLE EŞİTLENDİ) --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 8%; /* Ana sayfa padding değeri */
    background: var(--nav-bg);
    backdrop-filter: blur(15px); position: sticky; top: 0; z-index: 2000;
    border-bottom: 1px solid rgba(245, 130, 32, 0.2);
}

.logo { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; text-decoration: none; color: #fff; }
.logo img { height: 40px; } /* Ana sayfa logo yüksekliği */
.orange-text { color: var(--primary-orange); }

.nav-links { display: flex; list-style: none; gap: 30px; transition: 0.5s ease-in-out; }
.nav-links a { 
    color: #aaa; text-decoration: none; font-weight: 700; 
    font-size: 0.8rem; /* Ana sayfa font boyutu */
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-orange); }

/* --- HAMBURGER BUTON (PC'DE GİZLİ - ANA SAYFA YAPISI) --- */
.menu-btn { 
    display: none; width: 30px; height: 20px; cursor: pointer; z-index: 2100; position: relative; 
}
.menu-btn__burger, .menu-btn__burger::before, .menu-btn__burger::after {
    width: 30px; height: 3px; background: var(--primary-orange); position: absolute; transition: 0.4s;
}
.menu-btn__burger::before { content: ''; transform: translateY(-8px); }
.menu-btn__burger::after { content: ''; transform: translateY(8px); }

/* Animasyon Efektleri */
.menu-btn.open .menu-btn__burger { background: transparent; transform: translateX(-20px); }
.menu-btn.open .menu-btn__burger::before { transform: rotate(45deg) translate(15px, -15px); }
.menu-btn.open .menu-btn__burger::after { transform: rotate(-45deg) translate(15px, 15px); }

/* --- GRID VE KONTEYNER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.page-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 10px; text-transform: uppercase; font-weight: 800; }
.page-desc { color: #666; margin-bottom: 40px; font-size: 0.9rem; font-weight: 600; }

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* --- KART TASARIMI --- */
.char-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: #fff;
    position: relative;
    display: block;
}

.char-card:hover { transform: translateY(-10px); background: rgba(245, 130, 32, 0.05); border-color: var(--primary-orange); }
.enemy-card:hover { border-color: var(--danger-red); background: rgba(255, 51, 0, 0.05); }

.char-img-wrap {
    width: 140px; height: 140px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px; overflow: hidden;
}

.char-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0%); transition: 0.5s; }
.char-card:hover img { transform: scale(1.1); }

.char-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 5px; transition: 0.3s; }
.char-card:hover .char-name { color: var(--primary-orange); }
.char-role { font-size: 0.7rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 1.5px; }

.char-id {
    position: absolute; top: 12px; right: 15px; font-size: 0.55rem; color: rgba(255, 255, 255, 0.3); font-weight: 800;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(10, 10, 10, 0.98); flex-direction: column;
        justify-content: center; align-items: center; z-index: 2050;
    }
    .nav-links.open { right: 0; }
    .nav-links li { margin: 15px 0; }
    .nav-links a { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .char-grid { grid-template-columns: 1fr; } 
    .page-title { font-size: 2.2rem; }
}

/* PRELOADER SİSTEMİ */
#preloader { position: fixed; inset: 0; background: #000; z-index: 3000; display: flex; justify-content: center; align-items: center; transition: 0.5s; }
.loader-logo { height: 50px; filter: drop-shadow(0 0 10px var(--primary-orange)); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.9); } }











/* --- GENEL KONTEYNER --- */
.audio-logs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(10, 10, 10, 0.5);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 0, 0.15);
}

.audio-log-item {
    display: flex;
    flex-wrap: wrap; /* Mobilde alt satıra geçmesi için kritik */
    align-items: center;
    background: rgba(25, 25, 25, 0.9);
    border-left: 4px solid #444;
    padding: 15px;
    gap: 15px;
    transition: 0.3s;
    position: relative;
}

.audio-log-item.playing {
    border-left-color: #ff6600;
    background: rgba(35, 35, 35, 1);
}

/* --- MOBİL İÇİN ÖZEL AYARLAR --- */
@media (max-width: 600px) {
    .audio-log-item {
        flex-direction: column; /* Mobilde her şeyi alt alta diz */
        align-items: flex-start;
        padding-top: 35px; /* Durum ışığı için üstte yer aç */
    }

    .log-status-light {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .log-details {
        width: 100%;
        margin-bottom: 10px;
    }

    .log-controls {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .progress {
        width: 100% !important; /* Slider'ı tam genişlik yap */
    }

    .waveform-visualizer {
        display: none; /* Mobilde alan kazanmak için dalga efektini gizle */
    }
}

/* --- DİĞER STİLLER --- */
.log-status-light {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
}

.playing .log-status-light {
    background: #ff6600;
    box-shadow: 0 0 10px #ff6600;
    animation: blink 1s infinite;
}

.log-details {
    flex: 1;
    min-width: 150px;
}

.log-id {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: #ff6600;
    display: block;
}

.log-desc {
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
}

.log-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
}

.play-btn {
    background: #1a1a1a;
    border: 1px solid #ff6600;
    color: #ff6600;
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    min-width: 70px;
}

.progress {
    flex-grow: 1;
    cursor: pointer;
    accent-color: #ff6600; /* Modern tarayıcılarda slider rengi */
}

@keyframes blink { 50% { opacity: 0.3; } }












/* Galeri Stili */
.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px 0;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.05);
}
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: 0.5s; }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex; align-items: flex-end; padding: 15px;
    opacity: 0; transition: 0.3s;
}
.gallery-overlay span { color: #ff6600; font-weight: 800; font-size: 0.75rem; letter-spacing: 1px; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover { border-color: #ff6600; }