/* =========================================
   1. GENEL AYARLAR (TÜM SAYFALAR İÇİN)
   ========================================= */
:root {
    --primary-bg: #1a1a1a;    /* Ana arka plan (Koyu Gri) */
    --secondary-bg: #1f1f1f;  /* Kutu ve Header rengi */
    --gold: #d4af37;          /* Altın Sarısı */
    --text-light: #f4f4f4;    /* Yazı Rengi */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Taşmaları engeller */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   2. HEADER VE NAVİGASYON
   ========================================= */
header {
    background-color: var(--secondary-bg);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
}

nav a:hover, nav a:visited:hover {
    color: var(--gold);
}

/* =========================================
   3. GENEL BÖLÜM YAPISI (SECTION)
   ========================================= */
section {
    padding: 40px 20px;
    max-width: 1100px;
    margin: auto;
}

.center-wrap {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 10px;
}

/* =========================================
   4. ANA SAYFA (SLIDER VB.)
   ========================================= */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh; /* Ekranın %60'ı yükseklik */
    overflow: hidden;
    background: #000;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.slider-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border: 1px solid var(--gold);
    width: 80%;
    max-width: 600px;
}

/* =========================================
   5. HAKKIMIZDA SAYFASI (RESİM IZGARASI)
   ========================================= */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Yan yana 2 resim */
    gap: 20px;
    margin: 40px auto;
    width: 100%;
}

.image-grid img {
    width: 100%;
    height: 300px; /* Resimlerin yüksekliği eşit olsun */
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--gold);
}

/* =========================================
   6. FİYAT LİSTESİ SAYFASI
   ========================================= */
.price-list {
    background-color: var(--secondary-bg);
    padding: 30px;
    border: 1px solid var(--gold);
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-radius: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between; /* Yazı sola, fiyat sağa */
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px dotted #555;
    padding-bottom: 8px;
    font-size: 18px;
}

.price-item span:last-child {
    color: var(--gold);
    font-weight: bold;
    margin-left: 20px;
    white-space: nowrap; /* Fiyatın aşağı kaymasını engeller */
}

/* =========================================
   7. RANDEVU SAYFASI (FORM VE SAATLER)
   ========================================= */
/* Tab Butonları */
.tab-container {
    display: flex;
    width: 100%;
    max-width: 500px;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 15px 0;
    background: #333;
    border: 1px solid var(--gold);
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #444;
    color: var(--gold);
}

/* Form Elemanları (Input/Select) */
input, select {
    width: 100%;
    padding: 15px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

input:focus {
    border-color: var(--gold);
}

/* Tarih Seçici */
#datePicker {
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--gold);
    border: 2px solid var(--gold);
    cursor: pointer;
}

/* Saat Kutuları Grid */
.slots-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Masaüstünde 4'lü */
    gap: 10px;
    margin: 25px auto;
    width: 100%;
}

.slot {
    background-color: #1a1a1a;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 10px 5px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.slot:hover, .slot.selected {
    background-color: var(--gold);
    color: #000;
}

.slot.disabled {
    background-color: #333 !important;
    color: #555 !important;
    border-color: #444 !important;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Butonlar (Randevu Onayla / Sorgula) */
#bookBtn, .gold-btn {
    width: 100%;
    background-color: var(--gold);
    color: #000;
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    border: 2px solid var(--gold);
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#bookBtn:hover, .gold-btn:hover {
    background-color: transparent;
    color: var(--gold);
}

/* İletişim Kutuları */
.contact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    border: 2px solid var(--gold);
    padding: 20px;
    border-radius: 10px;
}

.iletisim-btn {
    display: inline-block;
    background-color: var(--gold);
    color: #000 !important;
    padding: 10px 20px;
    margin-top: 15px;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid var(--gold);
}

.iletisim-btn:hover {
    background-color: transparent;
    color: var(--gold) !important;
}

/* =========================================
   8. FOOTER VE MODAL
   ========================================= */
footer {
    text-align: center;
    padding: 30px;
    background: #111;
    margin-top: 30px;
    border-top: 1px solid #333;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--secondary-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--gold);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

#tamamBtn {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: var(--gold);
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

/* =========================================
   9. MOBİL UYUMLULUK (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    /* Header Mobilde Alt Alta Gelsin */
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Hakkımızda Resimleri Tek Sütun Olsun */
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid img {
        height: auto; /* Orijinal oran korunsun */
        max-height: 300px;
    }

    /* Slider Yüksekliği Mobilde Azalsın */
    .slider-container {
        height: 40vh;
    }
}

@media (max-width: 480px) {
    /* Randevu Saatleri 2'li Olsun */
    .slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 12px 0;
        color: #d4af37;
    }
    
    .section-title {
        font-size: 1.5rem;
    }

    /* Fiyat Listesi Fontu Küçülsün */
    .price-item {
        font-size: 16px;
    }
}
