/* Custom Styles for Faruk Restaurant */

/* Genel Stil Düzenlemeleri */
:root {
    --primary-color: #d97706;
    --primary-hover: #b45309;
    --secondary-color: #111827;
    --light-color: #f9fafb;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Mobil Menü Düzenlemeleri */
@media (max-width: 768px) {
    #mainMenu {
        background-color: #1f2937;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #mainMenu.hidden {
        display: none;
    }
    
    /* Mobil menü açık olduğunda */
    #mainMenu:not(.hidden) {
        display: block;
    }
}

/* Responsive Ayarları */
/* Ekstra Küçük Cihazlar - Telefonlar */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.7rem !important;
    }
    
    .gallery-item {
        height: 170px;
    }
    
    .gallery-modal-content img {
        max-height: 70vh;
    }
    
    /* Hero bölümü mobilce düzeltmeler */
    .hero-image-container {
        margin-top: 2rem;
    }
    
    /* Butonlar tek sütunda */
    .button-container {
        flex-direction: column;
    }
    
    .button-container a {
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

/* Küçük Cihazlar - Tabletler */
@media (min-width: 481px) and (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .gallery-item {
        height: 200px;
    }
}

/* Orta Cihazlar - Masaüstü */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
}

/* Büyük Cihazlar */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Yeni Arka Plan Desenleri */
.bg-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-pattern-light {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Özel Animasyonlar */
@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-slow {
    animation: bounce-slow 5s ease-in-out infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.page-banner {
    height: 350px;
    background-position: center;
    background-size: cover;
    position: relative;
    margin-top: -1px; /* Header ile bitişik olması için */
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-banner-content {
    position: relative;
    z-index: 10;
}

/* Menü Kartları */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1), 
                0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.menu-img {
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Animasyonlar */
.fade-in {
    animation: fadeIn 1.2s ease-in;
}

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

/* Özel Butonlar */
.btn-primary {
    @apply bg-amber-600 text-white px-6 py-3 rounded-xl shadow-lg hover:bg-amber-500 hover:shadow-xl hover:translate-y-[-3px] transition-all;
}

.btn-secondary {
    @apply bg-gray-700 text-white px-6 py-3 rounded-xl shadow-lg hover:bg-gray-600 hover:shadow-xl hover:translate-y-[-3px] transition-all;
}

/* Galeri Düzenlemeleri */
.gallery-item {
    position: relative;
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Modal (Galeri Popup) Stilleri */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    padding: 20px;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.gallery-modal.active .gallery-modal-content {
    transform: scale(1);
}

.gallery-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border: 5px solid white;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.gallery-modal-caption {
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    margin-top: 15px;
    border-radius: 8px;
    font-size: 18px;
}

.gallery-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1100;
}

.gallery-modal-close:hover {
    background-color: var(--primary-color);
    transform: rotate(90deg);
}

.gallery-modal-prev,
.gallery-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 50px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    border-radius: 8px;
    transition: all 0.3s;
    z-index: 1100;
}

.gallery-modal-prev {
    left: 25px;
}

.gallery-modal-next {
    right: 25px;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
    background-color: var(--primary-color);
    width: 60px;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .page-banner {
        height: 220px;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    .gallery-modal-prev,
    .gallery-modal-next {
        width: 40px;
        height: 55px;
    }
    
    .gallery-modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.7rem !important;
    }
    
    .gallery-item {
        height: 170px;
    }
    
    .gallery-modal-content img {
        max-height: 70vh;
    }
} 