/**
 * Bisandvic - Müşteri Arayüzü CSS
 * Mobil uyumlu QR menü stilleri
 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Genel Stiller */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-top: 80px; /* Navbar için boşluk */
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Sepet Dropdown */
.cart-dropdown {
    min-width: 300px;
    max-width: 90vw;
}

.cart-content {
    max-height: 400px;
    overflow-y: auto;
}

.cart-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Kategori Sekmeleri - Profesyonel ve Mobil Uyumlu */
.category-tabs {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.nav-pills {
    display: flex;
    gap: 0.75rem;
    padding: 0.25rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-pills .nav-link {
    border-radius: 15px;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-pills .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.nav-pills .nav-link:hover::before {
    left: 100%;
}

.nav-pills .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.nav-pills .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

/* Kategori ikonları için özel stiller */
.nav-pills .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.nav-pills .nav-link:hover i {
    transform: scale(1.1);
}

.nav-pills .nav-link.active i {
    transform: scale(1.15);
}

/* Ürün Kartları */
.product-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
}

/* Miktar Kontrolleri */
.quantity-controls .btn-group {
    border-radius: 20px;
    overflow: hidden;
}

.quantity-controls .btn {
    border-radius: 0;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-controls .quantity-display {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
    font-weight: 600;
    min-width: 50px;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 150px;
    right: 20px;
    z-index: 1000;
}

.fab .badge {
    transition: all 0.3s ease;
}

.fab .btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fab .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

/* Mobil İletişim Butonları */
.mobile-contact-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    z-index: 999;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-contact-buttons .contact-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    margin: 0 5px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-height: 60px;
}

.mobile-contact-buttons .contact-btn i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-contact-buttons .whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.mobile-contact-buttons .whatsapp-btn:hover {
    background: linear-gradient(135deg, #20B358 0%, #0F7A6B 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
}

.mobile-contact-buttons .phone-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-contact-buttons .phone-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Alert Mesajları */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid var(--info-color);
}

/* Badge'ler */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Butonlar */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px; /* Dokunmatik uyumlu */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .category-tabs {
        padding: 1rem;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }
    
    .nav-pills {
        gap: 0.5rem;
        padding: 0.2rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-pills .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        border-radius: 12px;
        flex: 1;
        min-width: 0;
        text-align: center;
    }
    
    .nav-pills .nav-link i {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-dropdown {
        min-width: 280px;
        max-width: 85vw;
    }
    
    .fab {
        bottom: 150px;
        right: 15px;
    }
    
    .fab .btn {
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 576px) {
    .category-tabs {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .nav-pills {
        gap: 0.4rem;
        padding: 0.15rem;
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .nav-pills .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        border-radius: 10px;
        text-align: center;
        width: 100%;
    }
    
    .nav-pills .nav-link i {
        font-size: 0.9rem;
    }
    
    /* Mobil iletişim butonlarını göster */
    .mobile-contact-buttons {
        display: flex;
    }
    
    /* Body padding bottom ekle */
    body {
        padding-bottom: 200px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-image-placeholder {
        height: 150px;
    }
    
    .quantity-controls .btn {
        min-width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .quantity-controls .quantity-display {
        min-width: 40px;
        font-size: 0.9rem;
    }
}

/* Animasyonlar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* PWA Stilleri */
@media (display-mode: standalone) {
    body {
        padding-top: 0;
    }
    
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #2d3748;
        --dark-color: #f7fafc;
    }
    
    body {
        background-color: #1a202c;
        color: #f7fafc;
    }
    
    .card {
        background-color: #2d3748;
        color: #f7fafc;
    }
    
    .navbar {
        background-color: #2d3748 !important;
    }
}
