/* style.css - Premium Dark Theme */

/* 1. GENEL AYARLAR & DEĞİŞKENLER */
:root {
    --primary-orange: #FF8C00;
    /* Logonuzdaki Turuncu */
    --dark-bg: #121212;
    /* Ana Arka Plan (Simsiyah değil, çok koyu gri) */
    --card-bg: #1e1e1e;
    /* Kart Arka Planı */
    --text-main: #ffffff;
    /* Ana Yazı Rengi */
    --text-muted: #b0b0b0;
    /* Yan Yazı Rengi */
    --accent-blue: #1e3c72;
    /* Slaytınızdaki Mavi tonu (Hafif detaylar için) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    /* Modern Font */
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. NAVİGASYON (MENÜ) */
.navbar {
    background: rgba(18, 18, 18, 0.95);
    /* Hafif şeffaf siyah */
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
    /* Arkası bulanıklaşsın */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    /* Navbar 80px olduğu için logo taşmasın */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 140, 0, 0.5));
}

/* --- YENİ MODERN NAVBAR TASARIMI (HİZALAMA GARANTİLİ) --- */

.nav-links {
    display: flex;
    gap: 15px;
    /* Öğeler arası boşluk */
    align-items: center;
    /* Dikeyde tam oralar */
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Tüm menü öğeleri (linkler ve butonlar) için ortak yapı */
.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    /* Hepsi sabit yükseklik */
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    /* Hafif yuvarlatılmış köşeler */
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Standart Linkler (Ana Sayfa vb.) için Efekt */
.nav-links a:not(.btn-login):hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Üzerine gelince hafif beyaz */
    color: white;
}

/* Aktif Link Durumu */
.nav-links a.active {
    color: var(--primary-orange);
    background-color: rgba(255, 140, 0, 0.1);
}

/* BUTONLAR (Giriş Yap / Kayıt Ol) */
.btn-login {
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* İnce gri çerçeve */
    background-color: rgba(255, 255, 255, 0.05);
    margin-left: 5px;
}

.btn-login:hover {
    border-color: var(--primary-orange);
    background-color: var(--primary-orange);
    color: black !important;
    /* Hazırda siyah yazı olsun */
    transform: translateY(-2px);
    /* Hafif yukarı kalksın */
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Çizgi efektini iptal ediyoruz çünkü yeni tasarımda kutu mantığı var */
.nav-links a::after {
    display: none;
}

/* 3. HERO BÖLÜMÜ (VİTRİN) */
.hero {
    /* Slaytınızdaki mavi-siyah geçişine benzer bir yapı */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--dark-bg)),
        url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: -webkit-linear-gradient(#fff, #ccc);
    /* Yazıya metalik efekt */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Modern Arama Kutusu */
.search-box {
    background: rgba(255, 255, 255, 0.1);
    /* Cam efekti */
    padding: 10px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.search-box input,
.search-box select {
    background: transparent;
    border: none;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.search-box input {
    flex: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box select {
    flex: 1;
    cursor: pointer;
}

.search-box select option {
    background: #222;
    color: white;
}

/* Açılır menü içi siyah */

.btn-search {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.btn-search:hover {
    transform: scale(1.05);
    background: #ff7b00;
}

/* 4. ARAÇ KARTLARI */
.featured-cars {
    padding: 80px 0;
}

.featured-cars h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.featured-cars h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    margin: 15px auto 0;
    border-radius: 2px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.car-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
    transition: 0.4s;
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.car-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-orange);
    color: white;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.car-details {
    padding: 25px;
}

.car-details h3 {
    font-size: 22px;
    margin-bottom: 5px;
    color: white;
}

.price {
    font-size: 24px;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.specs {
    display: flex;
    justify-content: space-between;
    background: #252525;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}

.specs i {
    color: var(--primary-orange);
    margin-right: 5px;
}

.btn-detail,
.btn-compare {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-detail {
    background: white;
    color: black;
}

.btn-detail:hover {
    background: #ddd;
}

.btn-compare {
    background: transparent;
    border: 1px solid #555;
    color: #aaa !important;
}

.btn-compare:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange) !important;
}

/* 5. FOOTER */
footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    color: #777;
    text-align: center;
    padding: 40px 0;
    margin-top: 100px;
}

/* --- BUTON DÜZELTMESİ --- */
/* Butonların altındaki çizgi efektini iptal et */
.nav-links .btn-login::after {
    display: none !important;
}

/* Butonların hizasını düzelt */
.btn-login {
    display: inline-block;
    /* Şekli korur */
    margin-left: 10px;
    /* Butonları birbirinden ayırır */
}

/* --- DETAY SAYFASI DÜZELTMESİ --- */

/* Kutunun Arka Planını Koyu Yap */
.detail-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    background-color: #1e1e1e;
    /* İşte eksik olan renk buydu! */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
    /* İçindeki yazıları beyaz yap */
}

/* Resim Ayarları */
.detail-image {
    flex: 1;
}

.detail-image img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #444;
}

/* Başlık ve Fiyat */
.detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-title {
    font-size: 36px;
    color: white;
    margin-bottom: 10px;
}

.detail-price {
    font-size: 32px;
    color: #FF8C00;
    /* Turuncu */
    font-weight: bold;
    margin-bottom: 20px;
}

/* Liste Ayarları */
.feature-list {
    list-style: none;
    background: #121212;
    /* Listenin arkası daha koyu olsun */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    color: #ccc;
    /* Gri Yazı */
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: #FF8C00;
    width: 30px;
    text-align: center;
    margin-right: 10px;
}

.feature-list li span {
    font-weight: bold;
    color: white;
    width: 80px;
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }
}

/* --- YENİ PROFESYONEL ARAMA FORMU STİLLERİ --- */

.search-form-container {
    max-width: 900px;
    /* Form genişliğini sabitler */
    margin: 40px auto 0;
    padding: 20px;
    border-radius: 20px;
    /* Yumuşak kenarlar */
    background: rgba(0, 0, 0, 0.7);
    /* Koyu Cam Efekti */
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    /* İçeriği alt alta dizeriz */
    gap: 15px;
    /* İki satır arasındaki boşluk */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-row-1,
.search-row-2 {
    display: flex;
    gap: 10px;
    /* Kutular arası boşluk */
    width: 100%;
}

.search-row-1>*,
.search-row-2>* {
    flex: 1;
    /* Tüm kutuların eşit yayılmasını sağlar */
    min-width: 0;
    /* Flexbox hatasını düzeltir */
}

.search-form-container input,
.search-form-container select {
    background: #282828;
    /* Input arka planı biraz daha açık gri */
    border: 1px solid #444;
    color: white;
    padding: 15px 18px;
    border-radius: 12px;
    /* Inputların da yumuşak kenarlı olması */
    font-size: 16px;
    transition: 0.3s;
}

/* Ara butonu: HTML'de style="" ile verilen flex-basis: 15% gibi değerleri korumak için burada esnetmeyiz */
.btn-search {
    border-radius: 12px;
    /* Eski stili korur */
}
/* --- MOBİL UYUMLULUK BAŞLANGICI --- */

/* Tüm cihazlarda taşmayı engelle */
* {
    box-sizing: border-box;
}

/* 768px ve altı (Telefonlar ve Tabletler) için geçerli kurallar */
@media screen and (max-width: 768px) {
    
    /* Sayfa genişliğini sabitle, sağa sola kaymayı engelle */
    body, html {
        width: 100% !important;
        overflow-x: hidden; /* Yatay kaydırma çubuğunu gizle */
        margin: 0;
        padding: 0;
    }

    /* Sitedeki TÜM ana kutular %100 genişlikte olsun */
    .container, .wrapper, .main, .content, #admin-panel, .header, .footer {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px !important;
        float: none !important; /* Yan yana duranları alt alta al */
        display: block !important;
    }

    /* Resimler asla ekrandan taşmasın */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Tablolar mobilde patlamasın (Yatay kaydırma ekler) */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap; /* Satırları kırmasın, kaydırılabilsin */
    }

    /* Form elemanları (Inputlar, Butonlar) tam genişlik olsun */
    input, select, textarea, button {
        width: 100% !important;
        max-width: 100%;
        margin-bottom: 10px;
        font-size: 16px; /* Mobilde kolay okunması için */
    }
    
    /* Yan menü (Sidebar) varsa alta at */
    .sidebar, .left-menu, .right-menu {
        width: 100% !important;
        position: relative !important;
        height: auto !important;
    }
}
/* --- MOBİL UYUMLULUK BİTİŞİ --- */
/* Eğer eski .search-box stilini kullanıyorsak, onu da temizlemeliyiz. */
/* Eğer tüm siteyi dark mode yaptıysak, eski .search-box stilini silmeliyiz. */