/* =========================================
   Orta Doğu Radar - Premium Dark Theme CSS
   ========================================= */

:root {
    /* Color Palette - Deep Dark Premium Theme */
    --bg-base: #0f1115;
    /* Deepest black/blue for overall background */
    --bg-surface: #1a1d24;
    /* Slightly lighter surface for cards/panels */
    --bg-surface-hover: #22262e;

    --text-primary: #e2e8f0;
    /* Crisp white-gray for main text */
    --text-secondary: #94a3b8;
    /* Muted text for dates, sources */

    --accent-blue: #3b82f6;
    /* Brand blue */
    --accent-blue-glow: rgba(59, 130, 246, 0.2);
    --accent-red: #ef4444;
    /* Breaking news / High importance */
    --accent-green: #10b981;
    /* Economic / Positive trends */
    --accent-orange: #f59e0b;
    /* Trends icon, warnings */

    --border-color: #2e3440;

    /* Map Legend Colors */
    --map-6h: #ef4444;
    /* Red */
    --map-12h: #10b981;
    /* Green */
    --map-24h: #3b82f6;
    /* Blue */

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Layout */
    --header-height: 70px;
    --sidebar-width: 320px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.5;
    overflow: hidden; /* BURASI DEĞİŞTİ */
}

  
/* Hide helper */
.hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -9999 !important;
}




/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: #3f4657;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Typography Helpers */
.text-orange {
    color: var(--accent-orange);
}

/* =========================================
   HEADER & LOGO ABSOLUTE FIX
   ========================================= */
.app-header {
    height: 70px !important;
    background: rgba(26, 29, 36, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex !important;
    align-items: center !important;
}

.header-container {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    gap: 15px !important;
}

#siteLogo {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}

/* ESKİ METİNLERİ VE İKONLARI KOMPLE KAPAT */
.logo h1, .logo span, .radar-icon {
    display: none !important;
}

/* LOGO GÖRSELİNİ MERKEZLE */
.logo img {
    height: 40px !important;
    width: auto !important;
    display: block !important;
}

.search-bar {
    flex: 1 !important;
    max-width: 400px !important;
    min-width: 150px !important;
    background: #0f1115 !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 30px !important;
    padding: 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.view-toggles {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    background: #0f1115 !important;
    padding: 4px !important;
    border-radius: 30px !important;
    border: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
}

/* Giriş ve Dil Seçici Alanlarını Yan Yana Tut */
.user-auth-area, .lang-selector {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}
/* =========================================
   LANGUAGE SELECTOR
   ========================================= */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f1115;
    padding: 6px 12px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    margin-right: 15px;
}

.lang-selector i {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lang-selector select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    appearance: none; /* Varsayılan ok işaretini gizler, daha temiz görünür */
}

.lang-selector select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
}

/* Google Translate Barını Gizleme Hileleri */
body {
    top: 0 !important; /* Translate body'i aşağı iter, bunu engelliyoruz */
}
.skiptranslate {
    display: none !important; /* Üstteki çirkin Google barını gizle */
}


/* =========================================
   MAIN LAYOUT
   ========================================= */
.app-main {
    max-width: 1400px;
    margin: var(--header-height) auto 0;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
    gap: 30px;
    /* BURASI 'min-height' idi, SADECE 'height' YAPTIK */
    height: calc(100vh - var(--header-height)); 
}

/* =========================================
   SIDEBAR
   ========================================= */
.sidebar-right {
    height: 100%;
    overflow-y: auto; /* Bağımsız dikey kaydırma */
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 10px; /* Kaydırma çubuğuna pay */
    padding-bottom: 24px;
}



.sidebar-widget {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.category-list,
.trend-list {
    list-style: none;
}

.category-list li {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.category-list li:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.category-list li.active {
    background: var(--accent-blue-glow);
    color: var(--accent-blue);
    font-weight: 600;
}

.trend-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.trend-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trend-item:hover .trend-title {
    color: var(--accent-blue);
}

.trend-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.trend-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* =========================================
   FEED CONTAINER & CARDS (Twitter Style)
   ========================================= */
.feed-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Bağımsız dikey kaydırma */
    padding-right: 15px; /* Kaydırma çubuğuna pay */
    padding-bottom: 24px;
}

.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.feed-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Twitter style contiguous cards */
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    overflow: hidden;
}

.news-card {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.news-card:last-child {
    border-bottom: none;
}

.news-card:hover {
    background: var(--bg-surface-hover);
}

.news-card.breaking {
    border-left: 4px solid var(--accent-red);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.85rem;
    gap: 8px;
    flex-wrap: wrap; /* allow wrapping to avoid overlap */
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 8px; /* reduced gap slightly */
    flex-wrap: wrap; /* handle long categories */
    max-width: 80%; /* prevent crushing the right area */
}

.category-tag {
    background: var(--border-color);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap; /* keep tag together */
}

.breaking-tag {
    background: var(--accent-red);
    color: white;
    padding: 3px 8px; /* slightly tighter paddings */
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem; /* slightly smaller font for the badge */
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulseObj 2s infinite;
    white-space: nowrap;
}

.card-time {
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: auto; /* push to the right even if flex wrapped */
}


.card-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #fff;
}
.card-image-wrapper {
    width: 100%;
    /* Sabit yükseklik yerine maksimum yükseklik ve orantı kullanıyoruz */
    max-height: 400px; 
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    background-color: var(--bg-base); /* Yüklenirken arkada koyu renk görünsün */
}


.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image {
    transform: scale(1.05);
}

.card-body p {
    color: #b0c0d1;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.source-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.source-link:hover {
    text-decoration: underline;
}

.card-actions {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
}

.action-btn {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--accent-blue);
}

/* =========================================
   MAP CONTAINER (Rasathane)
   ========================================= */
.map-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: calc(100vh - var(--header-height) - 48px);
    display: flex;
    flex-direction: column;
}

.map-container.hidden {
    display: none;
}

.map-overlay-header {
    background: rgba(26, 29, 36, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    /* Above map tiles */
}

.map-overlay-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.legend {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot.red {
    background-color: var(--map-6h) !important;
    animation: heartbeat 1.5s infinite;
}

.dot.green {
    background-color: var(--map-12h) !important;
    animation: pulse 2.5s infinite; /* slower pulse for medium age */
}

.dot.blue {
    background-color: var(--map-24h) !important;
    animation: none;
}

#leafletMap {
    flex: 1;
    width: 100%;
}

.custom-div-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Custom Marker CSS for Leaflet */
.pulse-marker {
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 12px;
    height: 12px;
}


/* Map Popup Styling override for Dark Mode */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-content {
    margin: 16px !important;
}

.custom-popup h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #fff;
}

.custom-popup p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    50% {
        transform: scale(1.4);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* =========================================
   RESPONSIVE (Mobile First adjustments later, current is Desktop base)
   ========================================= */
@media (max-width: 1024px) {
    .app-main {
        grid-template-columns: 1fr;
        /* Stack sidebar on top or hide it on small screens */
    }

    .sidebar-right {
        display: none;
        /* In a real app, move to a hamburger menu drawer */
    }

    .feed-container {
        max-width: 100%;
    }

    .search-bar {
        flex: 0 1 200px;
    }
}

@media (max-width: 600px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .search-bar {
        display: none;
        /* Hide on very small screens, show search icon instead */
    }

    .view-toggles {
        font-size: 0.8rem;
    }

    .news-card {
        padding: 16px 12px;
    }
}
/* =========================================
   RASATHANE (MAP) AKTİF YERLEŞİMİ %100 FIX
   ========================================= */
.app-main.map-active {
    display: grid !important;
    grid-template-columns: 1fr 320px !important; /* Merkez: Harita, Sağ: Akış */
    gap: 30px !important;
}
.app-main.map-active .sidebar-right, 
.app-main.map-active .sidebar-left {
    display: none !important;
}
.app-main.map-active .map-container {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    height: calc(100vh - var(--header-height) - 40px) !important;
}
.app-main.map-active .feed-container {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 0 !important;
}
.app-main.map-active .feed-header h2 { font-size: 1.1rem; }
.app-main.map-active .news-card { padding: 12px; }
.app-main.map-active .news-card h3 { font-size: 0.95rem; }
.app-main.map-active .news-card p { display: none; } /* Sağdayken özetleri gizle yer kalsın */
@media (max-width: 1024px) {
    .app-main.map-active .feed-container { display: none; }
}
/* =========================================
   QUIZ GAME (Guess Who)
   ========================================= */
.quiz-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height) - 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.quiz-container.hidden {
    display: none;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.quiz-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.quiz-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.attempt-dots {
    display: flex;
    gap: 6px;
}

.attempt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569; /* Empty/Unused */
}

.attempt-dot.used {
    background: var(--accent-red);
}

.quiz-search-area {
    position: relative;
    width: 100%;
}

.quiz-input-wrapper {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.quiz-input-wrapper:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.quiz-input-wrapper input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 1rem;
}

.quiz-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    margin-top: -2px; /* overlap border */
}

.quiz-suggestions.hidden {
    display: none;
}

.quiz-suggestions li {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.quiz-suggestions li:hover {
    background: var(--bg-base);
    color: var(--accent-blue);
}

/* Guess Grid */
.quiz-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 12px;
    padding: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.quiz-table-header.hidden {
    display: none;
}

.quiz-guesses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guess-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 12px;
    animation: fadeIn 0.4s ease forwards;
}

.guess-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all 0.5s ease;
    word-break: break-word;
}

/* Wordle State Colors */
.guess-box.correct {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.guess-box.wrong {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

/* Modal */
.quiz-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    border-radius: inherit;
}

.quiz-modal.hidden {
    display: none;
}

.quiz-modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.quiz-modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.quiz-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #2563eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .quiz-table-header, .guess-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .guess-row {
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        padding: 8px;
        border-radius: var(--radius-md);
    }

    .quiz-table-header {
        display: none; /* Hide table headers on mobile, looks too squished */
    }
}

/* ========================================= */
/* KİM BİR MİLYON VARİL İSTER - TASARIMI */
/* ========================================= */
.oil-game-container {
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    border: 2px solid #f1c40f;
    border-radius: 15px;
    padding: 25px;
    color: #fff;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(241, 196, 15, 0.1);
}

.oil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.oil-header h2 {
    color: #f1c40f;
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.oil-badge {
    background: #111;
    color: #f1c40f;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    border: 1px solid #f1c40f;
    font-size: 1.2rem;
}

.btn-close-oil {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 2rem;
    transition: 0.3s;
}

.btn-close-oil:hover { color: #e74c3c; }

.oil-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* --- Joker Butonları --- */
.oil-lifelines {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.lifeline-btn {
    background: #111;
    border: 2px solid #f1c40f;
    color: #f1c40f;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifeline-btn:hover:not(.locked):not(.used) {
    background: #f1c40f;
    color: #000;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.5);
}

.lifeline-btn.locked {
    border-color: #444;
    color: #444;
    cursor: not-allowed;
}

.lifeline-btn.used {
    border-color: #e74c3c;
    color: #e74c3c;
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.lifeline-btn.used::after {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 2rem;
    color: #e74c3c;
}

/* --- Soru Kutusu ve Şıklar --- */
.oil-question-box {
    background: #111;
    border: 2px solid #333;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1.5;
}

.oil-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.oil-option {
    background: #111;
    border: 2px solid #f1c40f;
    color: #fff;
    padding: 18px 25px;
    border-radius: 30px;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.oil-option:hover:not(:disabled) {
    background: rgba(241, 196, 15, 0.15);
    transform: translateY(-2px);
}

.opt-letter {
    color: #f1c40f;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2rem;
}

.oil-option.correct {
    background: #27ae60 !important;
    border-color: #2ecc71;
    color: #fff;
}

.oil-option.wrong {
    background: #c0392b !important;
    border-color: #e74c3c;
    color: #fff;
}

.oil-option.hidden-opt {
    visibility: hidden;
}

/* --- Sağ Panel: Ödül Merdiveni --- */
.oil-ladder-container {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.oil-ladder {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column-reverse; /* 1. soru en altta */
    gap: 5px;
}

.ladder-step {
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.95rem;
}

.ladder-step .step-num {
    font-weight: bold;
    width: 30px;
}

.ladder-step.milestone {
    color: #fff;
    font-weight: bold;
}

.ladder-step.milestone .step-val {
    color: #2ecc71;
}

.ladder-step.active {
    background: #f1c40f;
    color: #000 !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
    transform: scale(1.05);
}

.ladder-step.active .step-val {
    color: #000;
}

.ladder-step.passed {
    color: #f1c40f;
}

/* Çekilme Butonu */
.btn-withdraw {
    width: 100%;
    margin-top: 25px;
    background: #222;
    border: 1px solid #555;
    color: #aaa;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    letter-spacing: 1px;
}

.btn-withdraw:hover {
    background: #333;
    color: #fff;
    border-color: #f1c40f;
}

/* Mobil Uyum (Responsive) */
@media (max-width: 768px) {
    .oil-layout { grid-template-columns: 1fr; }
    .oil-options-grid { grid-template-columns: 1fr; }
    .oil-ladder { flex-direction: column; }
}

/* --- YENİ BARAJ (MİLESTONE) TASARIMI --- */
.ladder-step.milestone { color: #fff !important; font-weight: bold; }
.ladder-step.milestone .step-val { color: #fff !important; }

.ladder-step.milestone.passed { color: #2ecc71 !important; }
.ladder-step.milestone.passed .step-val { color: #2ecc71 !important; }

.ladder-step.active.milestone .step-val { color: #000 !important; }

/* Kullanılmış jokerlerdeki üst üste binen X (çarpı) işaretini kaldır */
.lifeline-btn.used::after {
    display: none !important;
}
/* Giriş Paneli İçin Ekran Yerleşimi */
#authModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Arka planı karartır */
    z-index: 9999; /* Her şeyin en üstünde durmasını sağlar */
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px); /* Arka planı bulanıklaştırır, profesyonel durur */
}

#authModal.hidden {
    display: none !important; /* Gizliyken kesinlikle görünmez */
}
.logo {
    flex-shrink: 0 !important;
}
/* Arama çubuğunun Safari'de logoyu ezmesini engellemek için */
.search-container {
    flex: 1 !important;
    min-width: 150px !important;
    margin: 0 15px !important;
}

/* Üst barın elemanları arasındaki boşluğu otomatik ayarla */
.header-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}
/* Üst barın genelini rahatlatalım */
.header-container {
    padding: 0 10px !important; /* Kenar boşluklarını daralt */
    gap: 5px !important; /* Elemanlar arası boşluğu azalt */
}

/* Arama çubuğunu ve yanındaki butonları biraz küçültelim */
.nav-item, .toggle-btn, .search-bar {
    padding: 5px 8px !important; /* İç boşluğu azalt */
    font-size: 13px !important; /* Yazıları çok hafif küçült (Safari için kritik) */
}

/* Bülten butonunun yazısının taşmasını engelle */
.toggle-btn {
    white-space: nowrap !important;
}

/* Arama kabının minimum alanını düşür ki sıkışınca diğerlerini itmesin */
.search-container {
    min-width: 100px !important; 
    margin: 0 5px !important;
}
/* 1. Logonun kesilmesini ve küçülmesini kesin olarak durdur */
#siteLogo, .logo {
    display: flex !important;
    flex-shrink: 0 !important;
    min-width: 180px !important; /* Yazının sığması için alan ayırdık */
    white-space: nowrap !important;
}

/* 2. Navigasyon butonlarını (Akış, Rasathane vb.) dar alanlarda birbirine yaklaştır */
.nav-items {
    display: flex !important;
    gap: 5px !important;
    flex-shrink: 1 !important;
}

.nav-item {
    padding: 5px 8px !important;
    font-size: 12px !important; /* Bir tık küçülterek yer kazandık */
}

/* 3. Arama çubuğunu "akıllı" yap: Yer yoksa küçülsün ama logoyu itmesin */
.search-container {
    flex: 1 !important;
    min-width: 100px !important;
    max-width: 300px !important;
    margin: 0 10px !important;
}

/* 4. Bülten butonunu dar ekranda "jilet" gibi yap */
.toggle-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 5. Header'ın dışına taşmayı engelle */
.header-container {
    overflow: hidden !important;
    padding: 0 15px !important;
}
/* --- RADAR ASİSTAN TASARIMI --- */

/* Asistanın Genel Konumu */
#radar-assistant-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999; /* Her şeyin en üstünde kalsın */
    font-family: 'Inter', sans-serif;
}

/* Yüzen Mavi Buton */
#chat-bubble {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: 2px solid rgba(255,255,255,0.1);
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chat-bubble:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.6);
}

/* Sohbet Penceresi */
#chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 360px;
    height: 500px;
    background: #121212; /* Sitenin koyu temasıyla uyumlu */
    border: 1px solid #333;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px); /* Hafif cam efekti */
}

/* Mesaj Alanı Özelleştirme */
#chat-messages {
    background-image: radial-gradient(circle at 2px 2px, #1a1a1a 1px, transparent 0);
    background-size: 20px 20px; /* Arka planda hafif noktalar */
}

/* Botun Mesaj Balonu */
.bot-msg {
    border-left: 3px solid #3498db;
    line-height: 1.5;
}

/* Giriş Alanı */
.chat-input-area input:focus {
    outline: none;
    border-color: #3498db !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

/* Gizleme ve Gösterme Geçişi */
.hidden {
    display: none !important;
}

/* Safari Uyumu: Alt barların altında kalmaması için */
@media (max-width: 768px) {
    #chat-window {
        width: 300px;
        height: 400px;
        bottom: 75px;
    }
}
/* =========================================
   LOGO & HEADER FIX (TAMİR KODLARI)
   ========================================= */

/* 1. Logonun olduğu alanı serbest bırakalım ve hizalayalım */
#siteLogo, .logo {
    min-width: auto !important; /* Eski zorlamayı kaldır */
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important; /* Logonun küçülmesini engelle */
}

/* 2. Logo görselinin boyutunu ve netliğini ayarla */
.logo img {
    height: 40px !important; /* Ekran görüntüne göre en ideal yükseklik */
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
}

/* 3. Header Container'ı tekrar yan yana dizilmesi için zorla */
.header-container {
    display: flex !important;
    flex-direction: row !important; /* Alt alta inmeyi engelle */
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important; /* Elemanlar arası nefes payı */
    overflow: visible !important; /* Kesilmeleri engelle */
}

/* 4. Arama çubuğunu esnek yap ki diğerlerini itmesin */
.search-bar {
    flex: 1 1 300px !important; /* Boşluğa göre uzasın/kısalsın */
    max-width: 400px !important;
    min-width: 150px !important;
}

/* 5. Navigasyon butonlarının (Akış, Rasathane vb.) hizasını düzelt */
.view-toggles {
    display: flex !important;
    flex-direction: row !important;
    flex-shrink: 0 !important;
    gap: 8px !important;
}

/* 6. Gereksiz metin stillerini temizle (Artık logo kullandığımız için) */
.logo h1, .logo span, .radar-icon {
    display: none !important;
}
/* =========================================
   HEADER BUTONLARI KOYU TEMA DÜZELTMESİ
   ========================================= */

.app-header button, 
.app-header .toggle-btn,
.app-header select {
    background-color: transparent !important; /* Beyaz arkaplanı kaldır */
    color: var(--text-primary) !important;    /* Yazıları gri/beyaz yap */
    border: 1px solid transparent;            /* Sınırları şimdilik gizle */
}

/* Sadece aktif olan butona veya üzerine gelindiğinde koyu bir vurgu verelim */
.app-header .toggle-btn:hover,
.app-header .toggle-btn.active {
    background-color: var(--bg-surface-hover) !important; 
    border: 1px solid var(--border-color) !important;
}

/* Bültene Abone Ol butonunun mavi çerçevesini koruyalım */
.app-header button[onclick="openNewsletterModal()"] {
    border: 1px solid #3498db !important;
    color: #3498db !important;
}

.app-header button[onclick="openNewsletterModal()"]:hover {
    background-color: rgba(52, 152, 219, 0.1) !important;
}
/* =========================================
   ARAMA ÇUBUĞU BEYAZLIK DÜZELTMESİ
   ========================================= */

.search-bar input {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important; /* Tarayıcının kendi stilini ezer */
}

/* Otomatik tamamlama (autofill) kullanıldığında sarı/beyaz olmasını engelle */
.search-bar input:-webkit-autofill,
.search-bar input:-webkit-autofill:hover, 
.search-bar input:-webkit-autofill:focus, 
.search-bar input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: var(--text-primary) !important;
}
/* =========================================
   ARAMA ÇUBUĞU GENİŞLİK DÜZELTMESİ
   ========================================= */
.search-bar {
    flex: 1 !important; /* Mümkün olan tüm boş alanı kapla */
    min-width: 250px !important; /* Yazının sığması için minimum genişlik */
    max-width: 500px !important; /* Çok da uzamasın */
    width: 100% !important; /* İçeriğin tam oturması için */
}

.search-bar input {
    width: 100% !important; /* Yazı alanının çubuğu tam doldurmasını sağla */
    text-overflow: ellipsis; /* Çok uzun yazı yazılırsa taşmasın, üç nokta koysun */
}
/* =========================================
   BUTON ODAKLANMA (FOCUS) VE OVAL DÜZELTMESİ
   ========================================= */

.app-header button, 
.app-header .toggle-btn,
.app-header select {
    border-radius: 30px !important; /* Butonların kalıcı olarak oval kalmasını garantiler */
    outline: none !important; /* Tıklayınca çıkan o çirkin dikdörtgen varsayılan çizgiyi yok eder */
}

/* Tıklandığında dikdörtgen çizgi yerine, butonun kendi oval şekline uygun hafif bir parlama (opsiyonel şıklık) */
.app-header button:focus, 
.app-header .toggle-btn:focus,
.app-header select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.3) !important; /* Mavi, yumuşak bir oval çerçeve */
}

/* =========================================
   MOBİL ÜST MENÜ VE TAŞMA KESİN ÇÖZÜMÜ
   ========================================= */

@media (max-width: 900px) {
    /* 1. ANA İSKELET: Alt alta al ve üst boşluğu sıfırla */
    .app-main {
        display: flex !important;
        flex-direction: column !important;
        margin-top: 0 !important; /* Header'ın sabit 70px boşluğunu iptal et */
        padding-top: 15px !important;
        height: auto !important;
    }
    
    body {
        overflow-y: auto !important; 
    }

    /* 2. HEADER: Sabit yüksekliği bırak, içeriğe göre uzasın */
    .app-header {
        position: relative !important; /* Haberleri ezmesini kesin olarak engeller */
        height: auto !important;
        padding-bottom: 10px !important;
    }

    /* 3. ÜST MENÜ ELEMANLARI: Kutu sırasını (Order) belirliyoruz */
    .header-container {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px 15px !important;
        align-items: center !important;
    }

    /* Logo sol üste */
    #siteLogo, .logo {
        order: 1 !important;
        flex: 1 !important; /* Sol tarafı kaplasın */
    }

    /* Dil Seçici ("Türkçe") sağ üste */
    .user-auth-area, .lang-selector {
        order: 2 !important;
        margin: 0 !important;
    }

    /* Arama Çubuğu (Mobilde çok yer kaplıyor, gizliyoruz) */
    .search-bar {
        display: none !important; 
    }

    /* "Akış, Rasathane, Oyun" Butonları 2. Satıra (Yatay Kaydırmalı) */
    .view-toggles {
        order: 3 !important;
        width: 100% !important;
        margin-top: 5px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch; /* Telefondan kaydırırken pürüzsüz yapar */
        padding-bottom: 5px !important;
        border: none !important; /* Mobilde dış çerçeveyi kaldırıp rahatlatıyoruz */
        background: transparent !important;
    }

    /* 4. HARİTA (Rasathane) VE İÇERİK KUTULARI */
    .map-container {
        width: 100% !important;
        height: 60vh !important;
        min-height: 400px !important;
    }
    
    .sidebar-right {
        order: 5 !important;
        width: 100% !important;
        margin-top: 20px !important;
        height: auto !important;
    }
}
/* =========================================
   KÖŞE YAZILARI (EDITORIALS) SEKMESİ VE KARTLARI
   ========================================= */

/* Sekme Başlıkları ve Aktiflik Durumu */
.feed-header {
    position: relative; /* Alt çizgiler için referans noktası */
}

.feed-tab {
    cursor: pointer;
    margin: 0;
    color: var(--text-secondary) !important; /* HTML'deki inline stili ezer */
    transition: var(--transition);
    position: relative;
    padding-bottom: 16px; /* Alt çizgi için boşluk */
    margin-bottom: -16px; /* feed-header padding'ini dengeler */
}

.feed-tab:hover {
    color: var(--text-primary) !important;
}

.feed-tab.active {
    color: var(--text-primary) !important;
}

/* Aktif Sekmenin Altına Şık UR Mavisi Çizgi */
.feed-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-blue);
    transition: var(--transition);
    border-radius: 3px 3px 0 0;
}

.feed-tab.active::after {
    width: 100%;
}

/* Köşe Yazısı Akış Alanı */
.editorial-feed {
    /* display durumu JS tarafından yönetiliyor */
    flex-direction: column;
    gap: 20px;
    padding-top: 5px;
}

/* Köşe Yazısı Kartı - Hover (Üzerine Gelme) Efektleri */
.editorial-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 24px !important;
    transition: var(--transition) !important;
}

.editorial-card:hover {
    background: var(--bg-surface-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    border-color: #3f4657 !important;
}

/* Yazar Bilgisi Alanı */
.author-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    margin-bottom: 18px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

.author-info:hover {
    transform: translateX(5px) !important;
}

.author-info img {
    border-color: var(--border-color) !important;
    transition: var(--transition) !important;
}

.author-info:hover img {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 10px var(--accent-blue-glow) !important;
}

.author-info h4 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.3px;
}

.author-info span {
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
}

/* Köşe Yazısı İçeriği */
.editorial-content h3 {
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    transition: var(--transition) !important;
    cursor: pointer;
}

.editorial-card:hover .editorial-content h3 {
    color: var(--accent-blue) !important;
}

.editorial-content p {
    color: var(--text-secondary) !important;
    font-size: 1.05rem !important;
}
