/* Farina Tema CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #292f36;
    --light-color: #f7f7f7;
    --gray-color: #ced4da;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    padding-bottom: 70px;
}

/* Menü öğeleri kartları */
.menu-items .card {
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.menu-items .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-items .card-title {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    flex: 1;
    padding-right: 10px;
}

.menu-items .card-body {
    padding: 0.8rem;
}

.menu-items .card-text {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.menu-items .text-danger {
    font-size: 0.95rem;
    font-weight: 600;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
    white-space: nowrap;
}

/* Menü öğeleri başlık ve fiyat düzeni */
.menu-items .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Kategori başlığı */
.category-header {
    margin-bottom: 1rem;
}

.category-header h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0;
}

.category-header .btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
}

.object-fit-cover {
    object-fit: cover;
}

/* Kategori kartları */
.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--dark-color);
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    margin-bottom: 15px;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    color: var(--dark-color);
}

.category-image {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 oranı */
    position: relative;
    overflow: hidden;
    background-color: var(--light-color);
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
}

.category-image.no-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
}

.category-card h5 {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
    padding: 12px 10px;
    background-color: white;
}

/* Kategori grid düzeni */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Arama sonuçları */
.search-results {
    margin-top: 10px;
    margin-bottom: 20px;
}

.result-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    color: var(--dark-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    overflow: hidden;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.result-image {
    width: 80px;
    min-width: 80px;
    height: 80px;
    position: relative;
    background-color: var(--light-color);
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-color);
}

.result-image.no-image i {
    font-size: 1.5rem;
    color: white;
}

.result-content {
    position: relative;
    padding: 12px 15px;
    flex: 1;
}

.result-content h5 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    font-weight: 500;
    padding-right: 60px;
}

.result-content p {
    margin: 0 0 5px 0;
    font-size: 0.8rem;
    color: #666;
}

.result-category {
    display: inline-block;
    font-size: 0.75rem;
    color: #666;
    background-color: var(--light-color);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.result-price {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.no-results {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.no-results p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Lokasyon seçim ekranı */
.location-select-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.location-select-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.location-title {
    text-align: center;
    margin-bottom: 30px;
}

.location-title h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
}

.location-title p {
    font-size: 1rem;
    color: #666;
}

.location-list {
    margin-bottom: 40px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 15px 20px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.location-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.location-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    margin: 0;
}

/* Lokasyon buton stili */
.location-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    min-width: 80px;
    border-radius: 50px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

.location-button:hover {
    background-color: #ff5252;
    color: white;
}

.location-select-footer {
    background-color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid #ddd;
}

.location-select-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Animasyon */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-item:nth-child(1) { animation-delay: 0.1s; }
.location-item:nth-child(2) { animation-delay: 0.2s; }
.location-item:nth-child(3) { animation-delay: 0.3s; }
.location-item:nth-child(4) { animation-delay: 0.4s; }
.location-item:nth-child(5) { animation-delay: 0.5s; }
.location-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobil cihazlar için responsive ayarlar */
@media (min-width: 576px) {
    .category-image {
        padding-bottom: 70%; /* Biraz daha geniş ekranlarda daha az yükseklik */
    }
    
    .category-card h5 {
        font-size: 1rem;
    }
    
    .result-image {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Ürün container */
.item-container {
    margin-bottom: 1.5rem;
}

/* Seçenekler bölümü */
.options-footer {
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.options-title {
    font-weight: 600;
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.options-list {
    padding-left: 0;
    margin-bottom: 0;
    list-style-type: none;
}

.option-item {
    padding: 3px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2px;
}

.option-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.option-name {
    color: #555;
}

.option-price {
    font-weight: 500;
    font-size: 0.75rem;
    color: #666;
}

/* Lightbox Styles */
.custom-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.custom-lightbox.show {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin: 15px auto 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    max-width: fit-content;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    font-weight: 300;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 10000;
}

.lightbox-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Hover effect on zoomable images */
.menu-item-img-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.menu-item-img-container img.lightbox-trigger {
    transition: transform 0.3s ease;
}

.menu-item-img-container::after {
    content: "\f00e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 1.1rem;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.menu-item-img-container:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.menu-item-img-container:hover img.lightbox-trigger {
    transform: scale(1.08);
}

/* Ribbon styling for local/regional products */
.menu-items .card {
    position: relative;
}

.ribbon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: #e62e2d; /* Theme matching vibrant red */
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 10px;
    text-align: center;
    letter-spacing: 1px;
    pointer-events: none;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.05);
    line-height: 1.2;
}

/* Card highlight for local/regional products */
.menu-items .card.card-local {
    background-color: #fffdf5; /* Warm soft organic cream background */
    border: 1px solid rgba(230, 46, 45, 0.08); /* Soft matching border */
}

.menu-items .card.card-local .options-footer {
    background-color: #fffdf5; /* Match option section background */
    border-top: 1px solid rgba(230, 46, 45, 0.08);
}

/* Alerjen Seçim Chip Tasarımları */
.btn-check + .btn-outline-danger {
    border-color: rgba(230, 46, 45, 0.2);
    color: #e62e2d;
    background-color: transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-check + .btn-outline-danger:hover {
    background-color: rgba(230, 46, 45, 0.05);
    border-color: #e62e2d;
    color: #e62e2d;
}

.btn-check:checked + .btn-outline-danger {
    background-color: #e62e2d;
    border-color: #e62e2d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 46, 45, 0.25);
    transform: scale(1.02);
} 