:root {
    /* Simit Renkleri */
    --simit-koyu: #8B4513;
    /* Pişmiş Kabuk */
    --simit-orta: #CD853F;
    /* Kızarmış Bölge */
    --simit-altin: #DAA520;
    /* Susam Rengi */
    --simit-acik: #FFFFFF;
    /* Hamur İçi/Arkaplan */
    --koyu-kahve: #3E2723;
    /* Metin Rengi */
    --beyaz: #FFFFFF;

    /* Fontlar */
    --font-baslik: 'Playfair Display', serif;
    --font-govde: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-govde);
    color: var(--koyu-kahve);
    background-color: var(--simit-acik);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-baslik);
    font-weight: 700;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
}

.logo {
    display: block;
    text-decoration: none;
    margin-bottom: 0;
}

.logo-mask {
    width: 280px;
    height: 80px;
    background-color: var(--simit-koyu);

    -webkit-mask-image: url('../images/logo.PNG');
    mask-image: url('../images/logo.PNG');

    -webkit-mask-size: contain;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: left center;
    mask-position: left center;

    transition: background-color 0.3s ease;
}

/* Hover efekti opsiyonel */
.logo:hover .logo-mask {
    background-color: var(--simit-orta);
}

.nav-links a {
    color: var(--koyu-kahve);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--simit-orta);
}

/* Hero Section / Slider */
.hero-slider {
    width: 100%;
    /* height: 100vh; -- Kaldirildi */
    aspect-ratio: 16 / 9;
    /* Slider'i 16:9 formatina sabitler */
    position: relative;
    overflow: hidden;
    /* Override generic section styles */
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: 100% 100%;
    /* Resmi kutuya tam sigdirir (kirpma yapmaz) */
    background-position: center center;
    background-repeat: no-repeat;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    /* Hafif karartma */
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Sections General */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Resimlerde optimizasyon */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Inline boşluk sorunlarını çözer */
}

h2.section-title {
    text-align: center;
    color: var(--simit-koyu);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--simit-altin);
    margin: 10px auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-family: var(--font-baslik);
    font-style: italic;
    color: var(--simit-orta);
    font-size: 1.3rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Ürünler (Products) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--beyaz);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    background-color: var(--simit-altin);
    /* Placeholder color if image fails */
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-info h3 {
    color: var(--simit-koyu);
    margin-bottom: 0.5rem;
}

/* Bilgi Bölümü (Info: Hours & Location) */
.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.info-box {
    flex: 1;
    min-width: 300px;
    background: var(--beyaz);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--simit-orta);
}

.info-box h3 {
    color: var(--simit-koyu);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 0.2rem;
}

.map-container {
    width: 100%;
    height: 300px;
    background: #eee;
    margin-top: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Hakkımızda Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-img,
.about-content {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    height: 400px;
    /* Sabit yükseklik vererek düzeni koruyalım, opsiyonel */
}

.about-content {
    padding: 1rem;
}

.about-text {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Galeri Section */
.gallery-grid-frontend {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item-frontend {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #f0f0f0;
    /* Yüklenirken boş görünmemesi için */
}

.gallery-item-frontend img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-frontend:hover img {
    transform: scale(1.1);
}

/* Footer Modern */
.modern-footer {
    background-color: #2c1a12;
    /* Çok koyu kahve/siyah karışımı */
    color: #e6e6e6;
    margin-top: 5rem;
    padding-top: 4rem;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--simit-altin);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--simit-altin);
    color: var(--simit-koyu);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--simit-altin);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aeaeae;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--simit-altin);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    color: #aeaeae;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--simit-altin);
    margin-top: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 1.5rem auto;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact li {
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 768px) {

    /* Navbar Düzenlemeleri */
    header {
        position: fixed;
        /* Mobilde de sabit */
        background-color: rgba(255, 255, 255, 0.98);
        /* Daha opak */
    }

    nav {
        padding: 0.5rem 1rem;
        /* Daha ince navbar */
        justify-content: center;
        /* Sadece mobilde logo ortalansın */
    }

    .logo {
        font-size: 1.3rem;
        margin: 0;
        /* Olası marginleri sıfırla */
        display: flex;
        /* Flex yaparak içindekini ortalayalım */
        justify-content: center;
        width: 100%;
        /* Nav içinde tam alan kaplasın */
    }

    .logo-mask {
        /* Mobilde maskeyi tam ortaya hizala */
        -webkit-mask-position: center center;
        mask-position: center center;
    }

    /* Hero Slider - Mobil İçin Büyük Değişiklik */
    .hero-slider {
        /* Aspect ratio yerine ekran yüksekliğine göre ayarla */
        aspect-ratio: unset;
        height: 60vh;
        /* Ekranın %60'ını kaplasın */
        margin-top: 60px;
        /* Header altında kalmaması için boşluk */
    }

    .slide {
        /* Mobilde resmi uzatmak (100% 100%) yerine ortalayarak kes (cover) */
        /* Bu sayede resim bozulmaz ve profesyonel durur */
        background-size: cover;
        background-position: center bottom;
        /* Arabanın alt kısmı görünmesi için bottom */
    }

    .slide-content {
        width: 95%;
    }

    /* Font Boyutları */
    .slide-content h2 {
        font-size: 1.8rem;
    }

    /* Menü Linklerini Gizle (Basit Hamburger sonradan eklenebilir) */
    .nav-links {
        display: none;
    }

    /* Hakkımızda Bölümü Mobilde Ters Çevir (Metin Üste, Resim Alta) */
    .about-container {
        flex-direction: column-reverse !important;
        gap: 2rem;
    }
}

/* 
   ----------------------------------------- 
   NEW FEATURES (WhatsApp, Menu Button) 
   ----------------------------------------- 
*/

/* Hero Button (QR Menu Link) */
.btn-hero {
    display: inline-block;
    background-color: var(--simit-altin);
    color: var(--koyu-kahve);
    padding: 12px 30px;
    margin-top: 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    border: 2px solid transparent;
}

.btn-hero:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    color: #fff;
}

@media (max-width: 992px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

.nav-btn-admin {
    font-size: 0.85rem;
    border: 1px solid var(--simit-koyu);
    padding: 6px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--simit-koyu) !important;
    /* Override nav link color */
}

.nav-btn-admin:hover {
    background: var(--simit-koyu);
    color: #fff !important;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3E2723;
    /* Koyu kahve fallback */
    background-color: var(--koyu-kahve);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
    color: var(--simit-altin);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Simit Loader CSS */
.simit-loader {
    width: 90px;
    height: 90px;
    border: 14px solid;
    /* 4 Farklı Simit Tonu - Daha gerçekçi ve belirgin renkler */
    border-color: #8B4513 #CD853F #DAA520 #A0522D;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    animation: spin-simit 1.5s linear infinite;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

/* Susam Efekti 1 (Dış Halka) */
.simit-loader::before {
    content: '';
    position: absolute;
    /* Content box üzerinden hesaplama: 90px width - 28px border = 62px content. 
       Hedef halka ~82px. Fark 20px -> -10px offset */
    top: -10px;
    left: -10px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 3px dotted rgba(255, 255, 255, 0.7);
}

/* Susam Efekti 2 (İç Halka) */
.simit-loader::after {
    content: '';
    position: absolute;
    /* Hedef halka ~70px. Fark 8px -> -4px offset */
    top: -4px;
    left: -4px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px dotted rgba(255, 255, 255, 0.7);
}

.loading-text {
    font-family: var(--font-baslik);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.9;
}

@keyframes spin-simit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}