/* =========================================
   1. TEMEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --accent: #C5A059;
    --bg: #0D0D0D;
    --card: #161616;
    --wa: #25D366;
    --text: #fff;
    --text-muted: #aaa;
    --border: #333;
    --header-bg: rgba(0, 0, 0, 0.95);
}

/* Light Mode (Beyaz Tema) Değişkenleri */
body.light-mode {
    --bg: #f4f4f4;
    --card: #ffffff;
    --text: #333;
    --text-muted: #555;
    --border: #ddd;
    --header-bg: rgba(255, 255, 255, 0.95);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* Scrollbar Gizleme */
::-webkit-scrollbar { width: 0px; background: transparent; display: none; }
html { -ms-overflow-style: none; scrollbar-width: none; }

/* =========================================
   2. HEADER (ÜST MENÜ)
   ========================================= */
header {
    background: var(--header-bg);
    padding: 15px 5%;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.logo { height: 45px; cursor: pointer; }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.2s;
}

nav ul li:hover { color: var(--text); }

/* =========================================
   3. HERO VE FİLTRE ALANI
   ========================================= */
.hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--accent);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

/* Beyaz Tema Hero Ayarları */
body.light-mode .hero-overlay { background: rgba(255, 255, 255, 0.5); }
body.light-mode .hero h2 { color: #000 !important; text-shadow: 0 0 15px rgba(255,255,255,0.8); }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

input, select {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
}

body.light-mode input, body.light-mode select {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}

/* =========================================
   4. VİTRİN SLIDER (KAYAR YAPI)
   ========================================= */
.vitrin-wrapper {
    padding: 20px 5% 0 5%;
    position: relative; /* Butonları konumlandırmak için */
}

.vitrin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vitrin-title {
    color: var(--accent);
    font-size: 18px;
    font-weight: 800;
    border-left: 4px solid var(--accent);
    padding-left: 10px;
    text-transform: uppercase;
}

/* YATAY KAYDIRMA ALANI */
.vitrin-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Mobil akıcılığı */
    /* Scrollbar gizleme */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.vitrin-scroll::-webkit-scrollbar { display: none; }

/* Vitrin Kartı */
.vitrin-card {
    min-width: 280px;
    width: 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    flex-shrink: 0; /* Kartların küçülmesini engeller */
}

.vitrin-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.vitrin-img { width: 100%; height: 180px; object-fit: cover; }
.vitrin-info { padding: 15px; }
.vitrin-price { color: var(--accent); font-weight: 800; font-size: 18px; }

.vitrin-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: #000;
    padding: 4px 10px; border-radius: 4px;
    font-size: 10px; font-weight: 800; text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Slider Butonları (PC İçin) */
.slider-btn {
    background: rgba(0,0,0,0.6);
    color: var(--accent);
    border: 1px solid var(--border);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
    margin-left: 5px;
}
.slider-btn:hover { background: var(--accent); color: #000; }

/* Vitrin Beyaz Tema */
body.light-mode .vitrin-card {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
body.light-mode .vitrin-price { color: var(--accent); }
body.light-mode .vitrin-info div { color: #222; font-weight: 600; }
body.light-mode .slider-btn { background: #fff; border-color: #ccc; color: #333; }
body.light-mode .slider-btn:hover { background: var(--accent); color: #fff; }

/* =========================================
   5. İLAN LİSTELEME GRID
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 5%;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.card:hover { transform: translateY(-5px); border-color: var(--accent); }
.card img { width: 100%; height: 210px; object-fit: cover; }

/* --- SATILIK / KİRALIK ROZETLERİ --- */
.status-badge {
    position: absolute; top: 15px; left: 15px;
    padding: 5px 15px; border-radius: 5px;
    font-size: 11px; font-weight: 800;
    text-transform: uppercase; z-index: 10;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Dark Mode (Varsayılan) */
.badge-satilik { background: var(--accent); color: #000; }
.badge-kiralik { background: #fff; color: #000; }

/* Light Mode (BEYAZ TEMA) - İSTEĞİNİZ: KİRALIK GOLD YAZI */
body.light-mode .badge-satilik { 
    background: var(--accent) !important; 
    color: #000 !important; 
}

/* KİRALIK: SİYAH ZEMİN - GOLD YAZI (İsteğiniz) */
body.light-mode .badge-kiralik { 
    background: #000 !important; 
    color: var(--accent) !important; /* GOLD YAZI */
    border: 1px solid var(--accent); 
}

/* =========================================
   6. İLAN DETAY SAYFASI
   ========================================= */
.det-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5%;
    align-items: start;
}

.main-img-container {
    width: 100%; height: 500px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
body.light-mode .main-img-container { background: #f5f5f5; border-color: #ddd; }

.main-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-watermark { position: absolute; bottom: 20px; left: 20px; width: 120px; opacity: 0.8; }

.thumb-gallery { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; padding-bottom: 5px; }

.spec-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    position: sticky; top: 100px;
}

.spec-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 13px; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.spec-table td:first-child { font-weight: 700; color: var(--accent); width: 40%; }

/* Tabs */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin: 30px 0 20px 0; }
.tab-btn { background: none; border: none; padding: 10px 0; color: #888; font-weight: 600; cursor: pointer; font-size: 14px; }
.tab-btn.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* Özellik Listeleri */
.features-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 20px; }
.feature-item { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.feature-item i { color: var(--accent); }

.btn-back-custom {
    background: var(--accent); color: #000;
    border: none; padding: 10px 20px;
    border-radius: 5px; font-weight: bold;
    cursor: pointer; margin-left: 5%; margin-top: 20px;
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #000;
    padding: 50px 5% 20px 5%;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}
body.light-mode footer { background: #f9f9f9; border-top: 1px solid #ddd; }

.footer-badges { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.badge-box { background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 4px; font-size: 11px; color: #aaa; border: 1px solid #333; }
body.light-mode .badge-box { background: #eee; color: #333; border-color: #ccc; }

.social-btn {
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; text-decoration: none;
    transition: 0.3s;
}
.social-btn:hover { background: var(--accent); color: #000; }
body.light-mode .social-btn { background: #ddd; color: #333; }

.ssl-secure { display: inline-flex; align-items: center; gap: 5px; color: #2ecc71; font-size: 12px; margin-top: 10px; }

/* =========================================
   8. MOBİL
   ========================================= */
.mobile-app-bar {
    display: none;
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #111; border-top: 1px solid #333;
    z-index: 9999; justify-content: space-around; padding: 10px 0;
}
body.light-mode .mobile-app-bar { background: #fff; border-top: 1px solid #ddd; }

.nav-item { display: flex; flex-direction: column; align-items: center; color: #888; text-decoration: none; font-size: 10px; flex: 1; }
.nav-center-btn { width: 55px; height: 55px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; font-size: 20px; position: relative; top: -25px; border: 5px solid var(--bg); }

@media (max-width: 900px) {
    header nav { display: none; }
    .mobile-app-bar { display: flex; }
    .det-grid { grid-template-columns: 1fr; padding: 15px; }
    .main-img-container { height: 280px; }
    .section { padding: 20px 15px 100px 15px; }
    .spec-card { position: static; margin-top: 20px; }
    
    /* Mobilde Butonları Gizle (Parmakla kaydırılır) */
    .slider-btn { display: none; }
    .vitrin-wrapper { padding: 10px 15px; }
    .vitrin-card { width: 240px; min-width: 240px; }
}
/* --- HABERLER SAYFASI TASARIMI --- */

/* Hero (Başlık) Alanı */
.news-hero-section {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://i.hizliresim.com/3n9r4jc.png') center/cover;
    border-bottom: 4px solid var(--accent);
    margin-bottom: 40px;
}
.news-hero-section .hero-content { text-align: center; color: #fff; }
.news-hero-section .gold-badge { background: var(--accent); color: #000; padding: 5px 15px; border-radius: 20px; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.news-hero-section h1 { margin: 15px 0 0 0; font-size: 32px; letter-spacing: 2px; }

/* Ana Şablon */
.news-main-wrapper { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding: 0 5%; min-height: 80vh; }

/* Haber Kartları */
.n-card { 
    display: flex; background: var(--card); border: 1px solid var(--border); 
    border-radius: 15px; overflow: hidden; margin-bottom: 30px; transition: 0.3s;
}
.n-card:hover { transform: translateY(-5px); border-color: var(--accent); }

/* Light Mode Kart Uyumu */
body.light-mode .n-card { background: #fff !important; border-color: #ddd !important; box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important; }

.n-img-wrapper { width: 40%; position: relative; overflow: hidden; }
.n-img-side { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.n-card:hover .n-img-side { transform: scale(1.1); }

.n-body { padding: 25px; width: 60%; display: flex; flex-direction: column; justify-content: space-between; }

.n-meta { font-size: 12px; color: var(--accent); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }

.n-title { margin: 0 0 15px 0; font-size: 20px; color: var(--text); line-height: 1.4; }
body.light-mode .n-title { color: #222 !important; }

.n-text { color: #888; font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
body.light-mode .n-text { color: #555 !important; }

.read-more-btn { color: var(--accent); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: 0.3s; text-decoration: none; }
.read-more-btn:hover { padding-left: 5px; }

/* Sidebar (Yan Menü) */
.sidebar-card-wrapper { position: -webkit-sticky; position: sticky; top: 100px; }
.section-title { font-size: 16px; color: var(--text); border-left: 4px solid var(--accent); padding-left: 15px; margin-bottom: 20px; font-weight: 700; text-transform: uppercase; }
body.light-mode .section-title { color: #222 !important; }

.fb-wrapper-premium { background: var(--card); padding: 20px; border-radius: 15px; border: 1px solid var(--border); text-align: center; overflow: hidden; }
body.light-mode .fb-wrapper-premium { background: #fff !important; border-color: #ddd !important; }

/* Mobil Uyumluluk */
@media (max-width: 900px) {
    .news-main-wrapper { grid-template-columns: 1fr; }
    .n-card { flex-direction: column; }
    .n-img-wrapper, .n-body { width: 100%; }
    .n-img-wrapper { height: 200px; }
    .sidebar-column { display: none; }
}
/* --- HABERLER MODÜLÜ (GÜVENLİ VE TEMA UYUMLU) --- */

.news-module-wrapper {
    width: 100%;
    padding-top: 20px;
    /* Rengi explicit olarak belirtmiyoruz, parent'tan (body) miras alacak */
}

/* Başlık */
.news-header-modern {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.news-header-modern h2 {
    color: var(--accent);
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-header-modern p {
    color: var(--text);
    opacity: 0.8;
    font-size: 14px;
    margin-top: 5px;
}

/* Grid Yapısı */
.news-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Kart Tasarımı */
.n-card {
    background-color: var(--card); /* index.php değişkeni */
    border: 1px solid var(--border); /* index.php değişkeni */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.n-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.n-img-area {
    height: 180px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.n-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.n-card:hover .n-img-area img {
    transform: scale(1.1);
}

.n-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.n-date {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.n-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.n-desc {
    font-size: 13px;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.n-btn {
    margin-top: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

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

/* Sidebar */
.n-sidebar {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
}

.n-sidebar-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Mobil */
@media (max-width: 900px) {
    .news-layout { grid-template-columns: 1fr; }
    .n-sidebar { display: none; } /* Mobilde sidebarı gizle */
}