/* --- TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    /* Renk Paleti */
    --bg-dark: #333333;
    --primary-blue: #0056b3;
    --primary-blue-hover: #004494;
    --primary-yellow: #ffc107;
    --text-color: #333;
    --text-light: #777;
    --border-color: #e0e0e0;
    --container-bg: #ffffff;
    --page-bg: #f4f6f8; /* Sayfa arka planı hafif gri */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--page-bg);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    font-size: 14px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
* { box-sizing: border-box; }

/* --- HEADER (Üst Kısım) --- */
.main-header {
    background-color: var(--bg-dark); /* Koyu Tema */
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    width: 1150px; /* Standart genişlik */
    margin: 0 auto;
    max-width: 95%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: var(--primary-yellow);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

/* Arama Çubuğu */
.search-bar {
    display: flex;
    width: 450px;
}

.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background: #555;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
}

/* Kullanıcı Navigasyonu */
.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-nav a:not(.btn-post):not(.logout-link) {
    color: #ccc;
    font-weight: 500;
    transition: 0.3s;
}

.user-nav a:not(.btn-post):not(.logout-link):hover {
    color: white;
}

.user-display-name {
    color: var(--primary-yellow);
    font-weight: 600;
}

.logout-link {
    color: #ff6b6b;
    font-size: 12px;
    margin-left: 5px;
}

/* "Ücretsiz İlan Ver" Butonu */
.btn-post {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-post:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
}

/* --- ANA İÇERİK DÜZENİ --- */
.main-content {
    display: flex;
    gap: 20px;
    padding-bottom: 50px;
}

/* --- SIDEBAR (Sol Menü) --- */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.filter-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-size: 16px;
}

/* --- AKORDİYON MENÜ STİLLERİ (ÖNEMLİ KISIM) --- */
.sidebar-nav-box {
    padding: 0; /* İçeriği sıfırla */
}

.sidebar-nav-box h4 {
    margin: 0;
    padding: 15px;
    background: #f9f9f9;
}

.cat-list {
    padding: 5px;
}

.cat-item {
    margin-bottom: 2px;
}

/* Kategori Satırı */
.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    transition: background 0.2s;
}

.cat-header:hover {
    background-color: #f0f4f8;
}

/* Link Alanı */
.cat-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    flex-grow: 1;
    color: #444;
    font-weight: 600;
}

/* İkon */
.cat-icon-box {
    width: 28px;
    height: 28px;
    background-color: var(--primary-yellow);
    color: #fff; /* İkon içi beyaz olsun */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Ok Butonu */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: #999;
    font-size: 12px;
}

.toggle-btn:hover { color: var(--primary-blue); }

/* Aktif Kategori (Ok Döndürme) */
.cat-item.active .toggle-btn {
    transform: rotate(180deg);
}

/* Alt Menü */
.sub-menu {
    display: none; /* Gizli */
    padding-left: 46px; /* İkon hizasından başlat */
    padding-bottom: 5px;
}

.sub-menu.open {
    display: block; /* JS ile açılır */
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-menu li a {
    display: block;
    padding: 6px 0;
    color: #666;
    font-size: 13px;
    transition: color 0.2s;
}

.sub-menu li a:hover {
    color: var(--primary-blue);
    padding-left: 3px;
}

/* --- SAĞ TARAF (İlan Listesi) --- */
.listings-area {
    flex-grow: 1;
    background: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.listings-area h2 { margin-top: 0; font-size: 20px; }

.listing-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* İlan Kartı */
.ad-card {
    display: flex;
    border: 1px solid #eee;
    padding: 15px;
    gap: 20px;
    transition: box-shadow 0.3s;
    border-radius: 6px;
    background: #fff;
}

.ad-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.ad-img {
    width: 140px;
    height: 105px;
    flex-shrink: 0;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.ad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--primary-blue);
    line-height: 1.4;
}

.ad-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.ad-location {
    font-size: 12px;
    color: #999;
    margin-top: auto; /* En alta it */
}
/* --- ALT BÖLÜM (SERVICES & SEO & FOOTER) --- */

/* 1. Hizmetler Alanı (Oto360, Emlak360) */
.services-section {
    width: 1150px;
    margin: 30px auto;
    max-width: 95%;
}

.service-row {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.service-row h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
}

.service-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0056b3;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.service-item i {
    font-size: 18px;
    color: #555; /* İkon rengi */
}

.service-item:hover { color: #003399; }

/* 2. Popüler Markalar ve Aramalar (SEO Alanı) */
.seo-section {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 30px 0;
    margin-top: 40px;
}

.seo-container {
    width: 1150px;
    margin: 0 auto;
    max-width: 95%;
}

.seo-group {
    margin-bottom: 30px;
}

.seo-group h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Marka Logoları (Temsili Kutular) */
.brand-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.brand-box {
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    background: #fff;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.brand-box:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Etiket Butonları (Pill Buttons) */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 20px; /* Yuvarlak kenar */
    color: #555;
    font-size: 13px;
    background: #fff;
    transition: 0.2s;
}

.tag-btn:hover {
    border-color: #999;
    color: #000;
}

/* 3. Kurumsal Footer (En Alt) */
.main-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    padding-top: 40px;
    font-size: 13px;
    color: #666;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    width: 1150px;
    margin: 0 auto;
    max-width: 95%;
    padding-bottom: 40px;
}

.f-col h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.f-col ul li {
    margin-bottom: 8px;
}

.f-col ul li a:hover {
    text-decoration: underline;
}

/* Footer Alt Bar (İletişim) */
.footer-bottom {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
}

.fb-content {
    width: 1150px;
    margin: 0 auto;
    max-width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.c-icon {
    width: 32px;
    height: 32px;
    background: #d00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
/* style.css - Genel Tasarım Dosyası */

