﻿:root {
    --primary-color: #F4B41A; /* Altın Sarısı */
    --secondary-color: #111111; /* Koyu Siyah */
    --bg-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --text-dark: #333333;
    --card-bg: #222222;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh; /* Masaüstünde tam ekran hissi */
    
    /* Resim Ayarları */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(17,17,17,1)), 
                url('https://images.unsplash.com/photo-1601362840469-51e4d8d58785?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; /* Resmi kutuya sığdır (taşabilir) */
    background-position: center center; /* Resmi ortala */
    background-repeat: no-repeat;
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Navbar payı */
}

/* Mobil için özel ayarlar */
@media (max-width: 768px) {
    .hero-section {
        background-position: center top;
        min-height: auto; /* Mobilde biraz daha kısa olabilir */
        padding: 140px 20px 80px 20px;
    }
    .hero-section h1 {
        font-size: 2rem; /* Başlığı küçült */
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    .display-3 {
        font-size: 2.5rem; /* Başlığı mobilde küçült */
    }
}

/* --- KART TASARIMLARI (MODERN) --- */
.custom-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(244, 180, 26, 0.2); /* Sarı gölge */
    border-color: var(--primary-color);
}

.card-img-wrapper {
    overflow: hidden;
    height: 250px;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card:hover .card-img-wrapper img {
    transform: scale(1.1); /* Resim zoom efekti */
}

/* --- BUTONLAR --- */
.btn-warning {
    background-color: var(--primary-color);
    border: none;
    color: #000;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: #ffca2c;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(244, 180, 26, 0.6);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05);
}

/* --- INPUTLAR --- */
form input.form-control,
form textarea.form-control,
form select.form-select {
    background-color: #2b2b2b !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

form input.form-control:focus, 
form textarea.form-control:focus {
    background-color: #333 !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 5px rgba(244, 180, 26, 0.5);
}

/* --- LOADER --- */
.loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--secondary-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}
.tire-spinner {
    width: 80px; height: 80px;
    border: 8px solid var(--primary-color);
    border-top: 8px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Navbar Dropdown Fix --- */
.dropdown-menu {
    background-color: var(--bg-dark);
    border: 1px solid #444;
}
.dropdown-item { color: #eee; }
.dropdown-item:hover { background-color: var(--primary-color); color: #000; }

/* --- MAĞAZA (SHOP) DÜZELTMELERİ --- */

/* Kartın içindeki resim kutusu */
.product-card .card-img-wrapper {
    height: 250px; /* Sabit yükseklik */
    background-color: #fff; /* Ürün net görünsün diye beyaz arka plan */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* Kenarlardan biraz boşluk */
}

/* Resmin kendisi */
.product-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ASLA KESME, SIĞDIR */
    transform: none !important; /* Zoom efektini iptal et (ürün incelenirken kaybolmasın) */
}

/* Hover efektini sadece kartın gölgesi için tutalım */
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* --- OKUNABİLİRLİK İYİLEŞTİRMESİ --- */
.text-secondary {
    color: #e0e0e0 !important; /* Çok açık gri (neredeyse beyaz) */
}
.text-white-50 {
    color: rgba(255, 255, 255, 0.85) !important; /* %50 değil %85 opaklık */
}
.card-text {
    color: #f0f0f0 !important;
}
/* Admin panelinde form label'ları da netleşsin */
label {
    color: #ffffff !important;
    font-weight: 500;
}

.nav-link {
    color: #c7bfbf !important;
}


/* --- MOBİL ÜRÜN KARTLARI (2'li Izgara) --- */
@media (max-width: 768px) {
    /* Kartın kendisi */
    .product-card {
        border-radius: 8px;
        font-size: 0.9rem; /* Yazıları biraz küçült */
    }
    
    /* Resim alanı küçülsün */
    .product-card .card-img-wrapper {
        height: 140px !important; 
        padding: 5px;
    }

    /* Başlık ve butonlar daha kompakt olsun */
    .product-card .card-body {
        padding: 10px;
    }
    
    .product-card h5.card-title {
        font-size: 0.95rem;
        height: 2.4em; /* İki satırla sınırla */
        overflow: hidden;
        margin-bottom: 5px;
    }
    
    /* Mobilde "Sepete Ekle" yazısı yerine sadece ikon olsun (yer kazanmak için) */
    .product-card .btn-warning {
        padding: 5px 0;
        font-size: 0.85rem;
    }
}

/* --- MOBİL YATAY KAYDIRMA (SERVICES) --- */
.mobile-scroll-container {
    scrollbar-width: none; /* Firefox scrollbar gizle */
    -ms-overflow-style: none; /* IE scrollbar gizle */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Kartlar tam dursun */
}
.mobile-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari scrollbar gizle */
}

@media (max-width: 768px) {
    .mobile-scroll-container .col-10 {
        scroll-snap-align: center; /* Kart ortada dursun */
    }
}

.alert-fixed {
    position: fixed;
    top: 100px; /* Navbar'dan biraz daha aşağıda olsun */
    right: 20px;
    z-index: 100000; /* Çok yüksek bir değer veriyoruz */
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideIn 0.4s ease-out;
}