/* ========================================
   TeknoAuto - Ana CSS Dosyası
   ======================================== */

/* Genel */
body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #333;
}

/* Üst Bar */
.top-bar {
    font-size: 0.82rem;
}

/* Navbar */
.navbar-brand {
    text-decoration: none;
}

.search-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
}

/* Kategori Nav */
.category-nav .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    padding: .5rem .85rem;
    transition: background .2s;
    border-radius: 4px;
}

.category-nav .nav-link:hover {
    background: rgba(255,255,255,.15);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Kategori Kartları */
.category-card {
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* Ürün Kartı */
.urun-kart {
    transition: transform .2s, box-shadow .2s;
}

.urun-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1) !important;
}

.urun-kart .card-title a:hover {
    color: #0d6efd !important;
}

.urun-resim-wrapper {
    transition: background .2s;
    border-radius: 4px 4px 0 0;
}

/* Fiyat Kutusu */
.price-box {
    border-left: 4px solid #0d6efd;
}

/* Marka Kart */
.marka-kart {
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

.marka-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,.1) !important;
}

.brand-logo-link {
    text-decoration: none;
}

/* Toast Bildirimi */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    min-width: 250px;
    border-radius: 8px;
    animation: slideIn .3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sepet Badge */
#sepetBadge {
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sayfalama */
.page-link {
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Sidebar Filter */
.sidebar-filter .form-check-label {
    font-size: 0.88rem;
    cursor: pointer;
}

/* Admin Panel */
.sidebar .nav-link {
    font-size: 0.9rem;
    transition: background .15s, color .15s;
}

/* Responsive Fixes */
@media (max-width: 576px) {
    .hero-section {
        min-height: 300px;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .urun-kart .card-title {
        font-size: 0.82rem !important;
    }
}

/* Tablo Stili */
.table th {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
}

/* Badge */
.badge-sm {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Buton Efektleri */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0958d9);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0958d9, #084cd2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,.35);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
}

/* Footer */
footer {
    border-top: 3px solid #0d6efd;
}

footer a:hover {
    color: #0d6efd !important;
}

/* Ürün Detay */
.product-detail-img {
    max-height: 380px;
    object-fit: contain;
}

/* Stok Durumu */
.stock-ok { color: #198754; }
.stock-low { color: #dc3545; }

/* Sipariş Durumu Renkleri */
.siparis-hazirlaniyor { background: #ffc107; }
.siparis-kargoda { background: #0dcaf0; }
.siparis-teslim { background: #198754; }
.siparis-iptal { background: #dc3545; }
