/* QR Menü - Ana Stil Dosyası */

/* =====================
   Genel Ayarlar
   ===================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* =====================
   Navbar
   ===================== */

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

/* =====================
   Kartlar
   ===================== */

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* =====================
   Butonlar
   ===================== */

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    border: none;
}

.btn-outline-primary {
    border-width: 2px;
}

/* =====================
   Form Elemanları
   ===================== */

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.input-group-text {
    border-radius: 8px;
}

/* =====================
   İşletme Kartı
   ===================== */

.business-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.business-card .card-img-top {
    transition: transform 0.3s ease;
}

.business-card:hover .card-img-top {
    transform: scale(1.05);
}

/* =====================
   Kategori Kartı
   ===================== */

.category-card {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.category-icon i {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: scale(1.1);
}

/* =====================
   Menü Öğeleri
   ===================== */

.menu-item-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.menu-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.price-section {
    font-size: 1.1rem;
}

/* =====================
   How It Works
   ===================== */

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* =====================
   Footer
   ===================== */

footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

footer a:hover {
    color: #fff !important;
    opacity: 1;
}

footer .footer-link {
    opacity: 0.85;
}

footer .footer-link:hover {
    opacity: 1;
    text-decoration: underline !important;
}

footer .text-info {
    color: #6dd5ed !important;
}

footer .text-info:hover {
    color: #fff !important;
}

/* =====================
   QR Scanner
   ===================== */

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.scanner-frame {
    width: 250px;
    height: 250px;
    border: 3px solid #fff;
    border-radius: 16px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #fff;
    }
    50% {
        border-color: var(--primary-color);
    }
}

/* =====================
   Reklam Modal
   ===================== */

.ad-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.ad-container img {
    transition: transform 0.3s ease;
}

.ad-container:hover img {
    transform: scale(1.02);
}

.ad-timer {
    font-size: 0.875rem;
    border-radius: 0 0 12px 12px;
}

/* =====================
   Badge'ler
   ===================== */

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* =====================
   Alert'ler
   ===================== */

.alert {
    border-radius: 10px;
    border: none;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* =====================
   Table
   ===================== */

.table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.table td {
    vertical-align: middle;
}

/* =====================
   Animasyonlar
   ===================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* =====================
   Mobil Uyumluluk
   ===================== */

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .card {
        border-radius: 10px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .business-header .cover-image {
        height: 120px !important;
    }
    
    .business-logo {
        width: 70px !important;
        height: 70px !important;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .scanner-frame {
        width: 200px;
        height: 200px;
    }
}

/* =====================
   Dark Mode Desteği (Opsiyonel)
   ===================== */

@media (prefers-color-scheme: dark) {
    /* Gerekirse dark mode stilleri buraya eklenebilir */
}

/* =====================
   Print Stilleri
   ===================== */

@media print {
    .navbar,
    footer,
    .btn,
    .fixed-bottom {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
