/* Komponent Stilleri
 * Münhasır Döner & Kebap web sitesi için komponent stilleri
 * @author: Claude AI
 * @date: 2023
 */

/* Lüks Tema Bileşenler CSS
 * Münhasır Döner & Kebap web sitesi için lüks tema bileşen stilleri
 * @author: Claude AI
 * @date: 2023
 */

/* CSS Değişkenleri - Tutarlılık için */
:root {
    --color-primary: #c8a165;
    --color-secondary: #0f1923;
    --color-dark: #0a0f14;
    --color-light: #f5f5f5;
    --color-gold-light: #e6d2a8;
    --color-gold-dark: #906f33;
    --font-sans: 'Montserrat', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-display: 'Playfair Display', serif;
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 6px 15px rgba(0, 0, 0, 0.25);
    --shadow-hard: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Nav Bar */
nav.top-nav {
    background-color: var(--color-dark);
    border-bottom: 1px solid rgba(200, 161, 101, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Tab Bar */
nav.bottom-nav {
    background-color: var(--color-dark);
    border-top: 1px solid rgba(200, 161, 101, 0.3);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    margin-top: -1px; /* Üstteki navigasyon ile boşluk oluşmaması için */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                rgba(10, 15, 20, 0.5) 0%, 
                rgba(10, 15, 20, 0.8) 100%);
    z-index: 1;
}

.hero-section .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 100%;
    padding: 0 1rem;
}

.hero-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-separator {
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 0 auto 15px;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-family: var(--font-serif);
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-buttons a {
    min-width: 130px;
    flex: 0 1 auto;
}

/* Section Title */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--color-primary);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 30;
}

.floating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
                0 0 10px rgba(200, 161, 101, 0.2);
}

@media (min-width: 768px) {
    .floating-buttons {
        bottom: 30px;
    }
    
    .hero-section {
        height: 450px;
        margin-top: 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-separator {
        width: 80px;
        margin-bottom: 1rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .hero-buttons a {
        min-width: 150px;
    }
}

/* Card Bileşeni */
.card {
    position: relative;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(15, 25, 35, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 161, 101, 0.3);
}

.card-img {
    width: 100%;
    height: 185px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.card-text {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-price {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary, #c8a165);
    margin-top: auto;
}

/* Mobil için Kartlar */
@media (max-width: 767px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img {
        height: 165px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}

/* Çok küçük ekranlar için kartlar */
@media (max-width: 374px) {
    .card-img {
        height: 150px;
    }
    
    .card-content {
        padding: 0.65rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
}

/* Geri kalan CSS stiller aynı kalır */
/* Menü Kategorileri */
.category-card {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 161, 101, 0.2);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
                0 0 10px rgba(200, 161, 101, 0.15);
    border-color: rgba(200, 161, 101, 0.4);
}

.active-category {
    border: 2px solid var(--color-primary);
}

.active-category .bg-gray-700 {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

/* Menü Öğeleri */
.menu-item {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 161, 101, 0.2);
    background: linear-gradient(145deg, 
                rgba(15, 25, 35, 0.9), 
                rgba(10, 15, 20, 0.95));
    overflow: hidden;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
                0 0 10px rgba(200, 161, 101, 0.15);
    border-color: rgba(200, 161, 101, 0.4);
}

/* Side Menu */
#sideMenu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 16rem;
    background: linear-gradient(135deg, 
                var(--color-secondary) 0%, 
                var(--color-dark) 100%);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 50;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(200, 161, 101, 0.2);
}

#menuOverlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 40;
}

/* Galeri Öğeleri */
.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(200, 161, 101, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 
                0 0 10px rgba(200, 161, 101, 0.15);
    border-color: rgba(200, 161, 101, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Modal */
#imageModal {
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

#closeModal, #prevImage, #nextImage {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(200, 161, 101, 0.3);
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
    color: var(--color-primary);
}

#closeModal:hover, #prevImage:hover, #nextImage:hover {
    background-color: rgba(200, 161, 101, 0.8);
    color: var(--color-dark);
    transform: scale(1.1);
}

#modalImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(200, 161, 101, 0.3);
}

#imageCaption {
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: var(--color-primary);
    font-family: var(--font-serif);
}

/* Masaüstü için ek stiller */
@media (min-width: 769px) {
    .hero-section {
        height: 600px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .hero-separator {
        width: 6rem;
    }
    
    .hero-tagline {
        font-size: 1.5rem;
    }
    
    .floating-buttons {
        right: 2rem;
    }
    
    nav.top-nav .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    nav.bottom-nav {
        display: none;
    }
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    transition: all 0.6s ease;
}

.btn:hover::after {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
    border: 1px solid var(--color-gold-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold-dark);
    box-shadow: 0 4px 12px rgba(200, 161, 101, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(200, 161, 101, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Rozetler */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--color-primary);
    color: var(--color-dark);
}

.badge-secondary {
    background-color: var(--color-dark);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

/* Ayrıştırıcılar */
.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
                rgba(200, 161, 101, 0) 0%, 
                rgba(200, 161, 101, 0.5) 50%, 
                rgba(200, 161, 101, 0) 100%);
    margin: 2rem 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, 
                rgba(200, 161, 101, 0) 0%, 
                rgba(200, 161, 101, 0.5) 50%, 
                rgba(200, 161, 101, 0) 100%);
    margin: 0 2rem;
}

/* Özel İkonlar */
.icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 161, 101, 0.1);
    border: 1px solid rgba(200, 161, 101, 0.3);
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.icon-wrapper:hover {
    background: var(--color-primary);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Testimonial Kartları */
.testimonial {
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.7), rgba(17, 24, 39, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.testimonial-content {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.testimonial-content::before {
    content: '"';
    font-size: 2.5rem;
    position: absolute;
    left: -0.75rem;
    top: -0.75rem;
    color: var(--color-primary, #c8a165);
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #2d3748;
    overflow: hidden;
}

.testimonial-name {
    font-weight: 600;
    color: #fff;
    margin: 0;
    font-size: 1rem;
}

.stars {
    display: flex;
    margin-top: 0.25rem;
}

.star {
    color: var(--color-primary, #c8a165);
    font-size: 0.9rem;
}

/* Mobil için Testimonial */
@media (max-width: 767px) {
    .testimonial {
        padding: 1.25rem;
        min-width: 85%;
        margin-right: 0.75rem;
        scroll-snap-align: start;
        box-sizing: border-box;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .testimonial-author {
        gap: 0.5rem;
    }
    
    .testimonial-avatar {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .testimonial-name {
        font-size: 0.9rem;
    }
    
    .star {
        font-size: 0.8rem;
    }
    
    .testimonial-container {
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .testimonial-container::-webkit-scrollbar {
        display: none;
    }
}

/* Animasyonlar */
@keyframes shine {
    0% {
        background-position: -100px;
    }
    40%, 100% {
        background-position: 300px;
    }
}

/* Scroll animasyonları */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Fade animasyonları */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, 
                rgba(255,255,255,0) 0%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0) 100%);
    animation: shine 3s infinite linear;
}

/* Galeri Stilleri */
.gallery-section {
    transition: all 0.3s ease;
}

.gallery-slider {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.category-card {
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-card.active-category {
    border: 2px solid var(--primary-color);
    position: relative;
}

.category-card.active-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(200, 161, 101, 0.2), rgba(200, 161, 101, 0));
    pointer-events: none;
}

/* Swiper Slider İyileştirmeleri */
.swiper {
    width: 100%;
    height: 100%;
    overflow: visible !important;
}

.swiper-slide {
    transition: all 0.3s ease;
    opacity: 0.7;
    transform: scale(0.9);
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.3);
    transition: all 0.3s ease;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.3);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(200, 161, 101, 0.7);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    color: white;
}

/* Lazy Loading İçin Görsel Değişim Efekti */
.swiper-lazy-preloader {
    border-color: var(--primary-color);
    border-top-color: transparent;
}

.swiper-slide img {
    transition: opacity 0.5s ease;
}

.swiper-slide img.swiper-lazy:not(.swiper-lazy-loaded) {
    opacity: 0;
}

.swiper-slide img.swiper-lazy.swiper-lazy-loaded {
    opacity: 1;
}

/* Modal Görsel Görüntüleyici */
#imageModal {
    transition: opacity 0.3s ease;
}

#imageModal #modalImage {
    transition: all 0.5s ease;
    max-width: 90%;
    max-height: 80vh;
}

#prevImage, #nextImage {
    opacity: 0.7;
    transition: all 0.3s ease;
}

#prevImage:hover, #nextImage:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Mobil Görünüm Optimize Ayarları */
@media (max-width: 640px) {
    .gallery-slider {
        padding: 0.75rem !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px !important;
    }
    
    .swiper-slide img {
        height: 250px !important;
    }
}

/* Görsel Yükleme Animasyonu */
@keyframes imageLoadAnimation {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.swiper-slide img {
    animation: imageLoadAnimation 0.5s ease forwards;
} 