/* ==========================================================================
   Elite of the Globe - Premium Minimalist Dark Theme (Comprehensive Master)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --bg-main: #050505;        /* Derin, asil gece siyahı */
    --bg-card: #0c0c0c;        /* Kartların lüks loş tonu */
    --gold: #D4AF37;          /* Gerçek altın sarısı */
    --gold-glow: rgba(212, 175, 55, 0.25);
    --text-light: #F5F6F8;     /* Gözü yormayan beyaz */
    --text-muted: #7E8B9B;     /* Gizemli gri */
    --border: #161616;         /* Asil ince kenarlık */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 80px; /* Sabit navbar için üst boşluk */
}

/* ==========================================================================
   1. GLOBAL HEADER & MASTER NAVIGATION (header.php)
   ========================================================================== */
.elite-navbar {
    width: 100%;
    height: 80px;
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.nav-links-wrapper {
    display: flex;
    flex-grow: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--gold);
}

.nav-dropdown {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

/* --- ÜLKELER DROPDOWN --- */
.dropdown-countries-matrix {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    min-width: 360px;
    box-shadow: 0px 15px 30px rgba(0,0,0,0.7);
    border: 1px solid rgba(212, 175, 55, 0.15);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-radius: 4px;
    padding: 20px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99999;
}

.nav-dropdown:hover .dropdown-countries-matrix {
    display: grid !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-countries-matrix a {
    color: var(--text-light);
    padding: 8px;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.dropdown-countries-matrix a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dropdown-countries-matrix a span {
    color: var(--gold);
    font-size: 0.75rem;
    margin-right: 8px;
    font-weight: 700;
}

/* --- KATEGORİLER MEGA DROPDOWN (KUSURSUZ 2 SÜTUN PLANI) --- */
.dropdown-categories-mega {
    display: none;
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.15);
    top: 100%;
    right: 0;
    transform: translateY(10px);
    border-radius: 4px;
    padding: 20px; 

    /* 2 SÜTUNLU GRID DÜZENİ */
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 12px; 

    width: 460px; 
    box-shadow: 0px 15px 30px rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 99999;

    max-height: 450px;       
    overflow-y: auto;        
    overflow-x: hidden;      
}

.nav-dropdown:hover .dropdown-categories-mega {
    display: grid !important; 
    opacity: 1;
    visibility: visible;
    transform: translateY(0) !important;
}

/* ==========================================================================
   2. HOME & GRID SHOWCASE VITRINI (index.php / country.php / category.php)
   ========================================================================== */
.index-hero-header {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.index-hero-header h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2.5rem;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.index-hero-header p {
    font-weight: 300;
    color: #666;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.showcase-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

@media (min-width: 160px) {
    .showcase-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

.culture-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.culture-card:hover {
    transform: translateY(-5px);
    border-color: #333;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 15px var(--gold-glow);
}

.card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.culture-card:hover .card-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    z-index: 10;
}

.score-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212,175,55,0.9);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 10;
}

.card-content {
    padding: 25px;
    position: relative;
    height: 180px;
}

.display-local, .display-en {
    transition: opacity 0.4s ease, visibility 0.4s ease;
    width: calc(100% - 50px);
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
}

.display-en {
    opacity: 0;
    visibility: hidden;
}

.culture-card:hover .display-local {
    opacity: 0;
    visibility: hidden;
}

.culture-card:hover .display-en {
    opacity: 1;
    visibility: visible;
}

.item-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
}

.item-origin {
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.item-manifesto {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
    font-weight: 300;
}

/* --- AJAX OYLAMA ŞERİDİ --- */
.vote-bar {
    display: flex;
    border-top: 1px solid var(--border);
    background: #090909;
    padding: 10px 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.vote-bar span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
    font-weight: 700;
}

.vote-stars-row {
    display: flex;
    gap: 4px;
}

.v-dot {
    background: #111;
    border: 1px solid #222;
    color: #555;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 2px;
}

.v-dot.active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

/* ==========================================================================
   3. SİNEMATİK ARCHIVE DETAY SAYFASI (item.php)
   ========================================================================== */
.masterpiece-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.masterpiece-gallery {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--card-bg);
    position: relative;
}

.masterpiece-gallery img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 650px;
}

.detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.masterpiece-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.info-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 35px;
    border-radius: 4px;
}

.section-lang {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #444;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
}

.item-main-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.item-sub-origin {
    font-size: 0.85rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.item-deep-manifesto {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
}

.score-action-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090909;
    border: 1px solid var(--border);
    padding: 20px 30px;
    border-radius: 4px;
}

.current-global-score {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
}

.current-global-score strong {
    color: var(--gold);
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    margin-left: 5px;
}

.detail-vote-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-vote-bar span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 1px;
    text-align: right;
    font-weight: 700;
}

.detail-vote-buttons {
    display: flex;
    gap: 4px;
}

.detail-vote-btn {
    background: #111;
    border: 1px solid #222;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 2px;
}

.detail-vote-btn.active, .detail-vote-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ==========================================================================
   4. ÇOK DİLLİ MANİFESTO SAYFASI (about.php)
   ========================================================================== */
.about-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
}

.lang-switcher-bar {
    position: absolute;
    top: -40px;
    right: 20px;
    display: flex;
    gap: 12px;
    background: #000;
    border: 1px solid var(--border);
    padding: 6px 15px;
    border-radius: 2px;
    z-index: 10;
    flex-wrap: wrap;
}

.lang-btn {
    color: #555;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.lang-btn:hover { color: #aaa; }
.lang-btn.active { color: var(--gold); }
.lang-divider { color: #1a1a1a; font-size: 0.7rem; }

.about-hero-title {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.about-hero-title h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 2.3rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    transition: opacity 0.3s ease;
}

.about-hero-title p {
    font-weight: 300;
    color: #555;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.manifesto-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 45px;
    border-radius: 4px;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.manifesto-section h2 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 10px;
    transition: opacity 0.3s ease;
}

.manifesto-section p {
    font-size: 0.9rem;
    color: #888;
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   5. RESPONSIVE & MOBILE OVERLAYS (Tam Uyumluluk)
   ========================================================================== */
@media (max-width: 900px) {
    .masterpiece-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    body { padding-top: 140px; }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    .nav-links-wrapper { justify-content: center !important; }
    .nav-links { gap: 20px; }
    
    .dropdown-categories-mega {
        position: fixed !important;
        top: 140px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        transform: none !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 140px) !important;
        padding: 20px !important;
    }
    
    .mega-column { width: 100% !important; margin-bottom: 20px; }
    .score-action-box { flex-direction: column; gap: 15px; text-align: center; }
    .detail-vote-bar span { text-align: center; }
}
