/* assets/css/style.css - Teldiz Global Final Sürüm (Arama Kutusu Optimize Edildi) */

/* --- 1. FONTLAR VE TEMEL AYARLAR --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    /* Renk Paleti */
    --bg-body: #F5F7FA;          /* Zemin */
    --bg-card: #FFFFFF;          /* Kartlar */
    --primary: #4318FF;          /* Ana Renk (İndigo) */
    --primary-soft: #EFF4FF;     /* Açık İndigo */
    --secondary: #6AD2FF;        /* İkincil */
    --text-main: #2B3674;        /* Ana Metin */
    --text-sub: #A3AED0;         /* Alt Metin */
    --success: #05CD99;          /* Yeşil */
    --danger: #EE5D50;           /* Kırmızı */
    
    /* Ölçüler */
    --radius-l: 24px;
    --radius-m: 16px;
    --radius-s: 10px;
    
    /* Gölgeler */
    --shadow-card: 0px 18px 40px rgba(112, 144, 176, 0.12);
    --shadow-hover: 0px 25px 50px rgba(112, 144, 176, 0.22);
}

body {
    background-color: var(--bg-body);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Yatay taşmayı engelle */
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; padding: 0; margin: 0; }

/* Yardımcı Sınıflar */
.ls-1 { letter-spacing: 1px; }
.z-index-2 { position: relative; z-index: 2; }
.hover-bg-white:hover { background: white !important; color: var(--primary) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.transition-all { transition: all 0.3s ease; }

/* --- 2. HEADER VE NAVBAR --- */
.top-bar { font-size: 0.85rem; letter-spacing: 0.3px; }
.middle-header { position: relative; z-index: 1000; }

.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.nav-link { 
    font-weight: 600; 
    color: var(--text-main);
    position: relative;
}
.nav-link.active { color: var(--primary) !important; }
.nav-link:hover { color: var(--primary); }

/* --- 3. HERO SECTION (ULTRA MODERN TASARIM) --- */
.hero-section {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 80px 0 100px;
    margin-bottom: -50px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Animasyonlu Işıklar */
.hero-section::before {
    content: ''; position: absolute; top: -50%; left: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(67, 24, 255, 0.4) 0%, transparent 70%);
    filter: blur(60px); border-radius: 50%; z-index: 0;
    animation: floatLight 10s infinite alternate;
}
.hero-section::after {
    content: ''; position: absolute; bottom: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(114, 57, 234, 0.3) 0%, transparent 70%);
    filter: blur(60px); border-radius: 50%; z-index: 0;
    animation: floatLight 8s infinite alternate-reverse;
}

@keyframes floatLight {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.hero-content { position: relative; z-index: 2; }

/* MODERN ARAMA KUTUSU (GÜNCELLENDİ: DAHA İNCE VE DERLİ TOPLU) */
.search-box-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 4px 4px 4px 20px; /* İç boşluk azaltıldı */
    border-radius: 60px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 4px solid rgba(255,255,255,0.1);
    max-width: 700px;
    margin: 0 auto;
}

.search-box-modern:focus-within {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(67, 24, 255, 0.4);
    border-color: rgba(67, 24, 255, 0.3);
    background: #fff;
}

.search-box-modern input {
    border: none;
    background: transparent;
    padding: 10px; /* Yazı alanı inceltildi */
    font-size: 1rem;
    width: 100%;
    color: #333;
    font-weight: 500;
}
.search-box-modern input:focus { outline: none; }
.search-box-modern input::placeholder { color: #999; font-weight: 400; }

.search-box-modern button {
    border-radius: 50px;
    padding: 10px 30px; /* Buton inceltildi */
    font-weight: 700;
    font-size: 0.95rem;
    background: linear-gradient(90deg, #4318FF 0%, #7239EA 100%);
    border: none;
    color: white;
    box-shadow: 0 5px 15px rgba(67, 24, 255, 0.4);
    transition: transform 0.2s;
    white-space: nowrap; /* Tek satıra zorla */
    flex-shrink: 0; /* Küçülmesini engelle */
}
.search-box-modern button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(67, 24, 255, 0.6);
}

/* Glass Badge */
.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-block;
}
.glass-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff; transform: translateY(-2px);
}

/* --- 4. FİLTRE VE SIDEBAR --- */
.filter-sidebar {
    position: sticky; top: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-l);
    padding: 25px;
    box-shadow: var(--shadow-card);
    border: none;
}
.filter-option { display: block; cursor: pointer; margin-bottom: 8px; }
.filter-option input { display: none; }
.filter-chip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; background: #f8f9fa;
    border: 1px solid #e9ecef; border-radius: 12px;
    color: #495057; font-weight: 500; font-size: 0.9rem;
    transition: all 0.2s ease;
}
.filter-chip:hover { background: #e9ecef; transform: translateX(3px); }
.filter-option input:checked + .filter-chip {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(67, 24, 255, 0.1);
}
.filter-option input:checked + .filter-chip::after {
    content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
}
.custom-scroll {
    max-height: 250px; overflow-y: auto; padding-right: 5px;
}
.custom-scroll::-webkit-scrollbar { width: 5px; }
.custom-scroll::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 10px; }

/* --- 5. ÜRÜN KARTLARI --- */
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-card);
    border: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; position: relative;
    overflow: hidden; padding: 15px;
}
.product-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.card-img-wrapper {
    background: #F4F7FE; border-radius: var(--radius-m);
    height: 220px; display: flex;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden; margin-bottom: 15px;
}
.card-img-top {
    max-height: 85%; max-width: 85%;
    object-fit: contain; transition: transform 0.5s ease;
}
.product-card:hover .card-img-top { transform: scale(1.1); }

.product-brand {
    color: var(--text-sub); font-size: 0.75rem;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 5px;
}
.product-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text-main);
    margin-bottom: 10px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.spec-pill {
    display: inline-flex; align-items: center;
    background: var(--bg-body); color: var(--text-sub);
    font-size: 0.75rem; font-weight: 600;
    padding: 5px 10px; border-radius: 8px;
    margin-right: 5px; margin-bottom: 5px;
}
.price-tl { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.price-usd { font-size: 0.85rem; color: var(--text-sub); font-weight: 500; margin-top: 2px; }

/* WhatsApp Butonu */
.btn-whatsapp {
    background: var(--success); color: white;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s; box-shadow: 0 5px 15px rgba(5, 205, 153, 0.4);
    border: none;
}
.btn-whatsapp:hover {
    background: #04b385; transform: scale(1.1) rotate(10deg); color: white;
}
.pulse-animation { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(5, 205, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(5, 205, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(5, 205, 153, 0); }
}

/* İncele ve Sayaç Butonları */
.action-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.2s;
    border: 1px solid #eee; background: white; color: var(--text-main);
}
.action-btn:hover {
    background: var(--primary); color: white;
    border-color: var(--primary); transform: translateY(-2px);
}
.view-count-badge {
    font-size: 0.75rem; color: #A3AED0;
    background: #F4F7FE; padding: 4px 8px;
    border-radius: 6px; font-weight: 600;
}

/* --- 6. MOBİL BUTON (SABİT) --- */
.mobile-filter-btn {
    position: fixed; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary); color: white;
    padding: 14px 28px; border-radius: 50px;
    font-weight: 700; border: none;
    box-shadow: 0 10px 30px rgba(67, 24, 255, 0.4);
    z-index: 9999;
}

/* --- 7. FOOTER STİLLERİ (Yedek) --- */
footer {
    background: #1B1B28; color: white;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    margin-top: 50px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}
.footer-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2); color: white;
}
.footer-input:focus {
    background: rgba(255,255,255,0.2); color: white;
    box-shadow: none; border-color: rgba(255,255,255,0.5);
}
.social-icon {
    width: 35px; height: 35px;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.3s;
}
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }


/* --- 8. RESPONSIVE / MOBİL UYUMLULUK --- */

@media (max-width: 991.98px) {
    /* Hero Alanı: Mobilde daha kompakt */
    .hero-section {
        padding: 40px 0 60px;
        border-radius: 0 0 25px 25px;
    }
    .hero-section h1 { font-size: 1.8rem; line-height: 1.3; }
    .lead { font-size: 0.95rem; }
    
    /* Arama Kutusu: Mobilde tam genişlik ama ince */
    .search-box-modern {
        max-width: 100%;
        padding: 4px;
        flex-direction: row;
    }
    .search-box-modern input { font-size: 0.95rem; }
    .search-box-modern button { padding: 10px 20px; font-size: 0.9rem; }
    
    /* Ürün Kartı İyileştirmesi */
    .product-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    .card-img-wrapper { height: 180px; }
    
    .product-title { font-size: 1rem; margin-bottom: 5px; }
    .price-tl { font-size: 1.2rem; }
    
    /* Detay Sayfası Mobili */
    .product-title-large { font-size: 1.8rem; margin-top: 20px; }
    .specs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .price-action-card {
        position: fixed; bottom: 0; left: 0; width: 100%; z-index: 990;
        border-radius: 20px 20px 0 0; padding: 15px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    }
    
    /* Mobil Filtre Butonu */
    .mobile-filter-btn {
        width: 90%;
        bottom: 80px; /* Alttaki fiyat barı varsa yukarıda kalsın */
        font-size: 1rem;
        padding: 12px;
        background: rgba(67, 24, 255, 0.95);
        backdrop-filter: blur(5px);
    }
}

@media (max-width: 576px) {
    .top-bar { display: none; }
    
    /* Footer Ortalama */
    footer .col-lg-4, footer .col-lg-2, footer .col-lg-3 {
        text-align: center;
        margin-bottom: 20px;
    }
    .social-icon { margin: 0 auto; }
    
    /* Liste Görünümü Düzeni */
    .list-item { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px;
    }
    .mobile-flex-row {
        justify-content: center;
        width: 100%;
    }
    .col-action { width: 100%; }
    .col-action .btn { width: 100%; }
}