/* =========================================
   ATÖLYESEL - REZERVASYON (BOOKING) CSS V8.0
   Modern · Açık · Sıcak · Platform Stili
   ========================================= */

/* ─── TOKENS (Ana Stilden Miras / Fallback) ─── */
:root {
    --white:        #ffffff;
    --bg:           #f7f5f2;
    --bg-card:      #ffffff;
    --primary:      #ff5c35;
    --primary-soft: #fff1ee;
    --primary-dark: #e04520;
    --ink:          #1a1a1a;
    --ink-2:        #444444;
    --ink-3:        #888888;
    --border:       #eae8e4;
    --border-2:     #d8d5d0;
    --radius-pill:  999px;
    --radius-xl:    24px;
    --radius-lg:    16px;
    --radius-md:    12px;
    --shadow-md:    0 12px 32px rgba(0,0,0,.10);
    --shadow-lg:    0 24px 56px rgba(0,0,0,.12);
    --ease:         cubic-bezier(.25,.46,.45,.94);
    --font:         'Plus Jakarta Sans', system-ui, sans-serif;
}

.booking-page-container {
    padding: 60px 0 100px;
    background-color: var(--bg);
    min-height: 100vh;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* ─── KART MİMARİSİ ─── */
.b-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.b-header h2 {
    font-family: var(--font);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.1;
}

.b-header p {
    font-family: var(--font);
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.6;
}

/* ─── ÖZEL TAKVİM BİLEŞENİ (CUSTOM CALENDAR) ─── */
.custom-calendar {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin: 32px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.calendar-title {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    text-transform: capitalize;
}

.cal-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.cal-nav-btn:hover {
    background-color: var(--primary-soft);
    border-color: var(--primary-soft);
    color: var(--primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: 2px solid transparent;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background-color: var(--primary-soft);
    color: var(--primary);
    transform: scale(1.05);
}

.cal-day.active {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 16px rgba(255, 92, 53, 0.3); /* Turuncu Gölge */
}

.cal-day.disabled {
    color: var(--border-2);
    cursor: not-allowed;
    background-color: transparent;
}

.cal-day.empty {
    cursor: default;
    background-color: transparent;
}

/* ─── SEANS LİSTESİ (SEANS SEÇİMİ) ─── */
.session-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.session-item {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.session-item:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.session-item.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.s-name { 
    font-family: var(--font); 
    font-weight: 800; 
    font-size: 16px; 
    color: var(--ink); 
    line-height: 1.4; 
    margin-bottom: 12px; 
}
.s-meta { 
    font-family: var(--font); 
    font-size: 13px; 
    color: var(--ink-3); 
    font-weight: 600; 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
}
.s-time { 
    font-family: var(--font); 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--primary); 
    margin-top: auto; 
    padding-top: 16px; 
}

/* ─── SAĞ PANEL (ÖZET VE FORM) ─── */
.sticky-card {
    position: sticky;
    top: 100px;
}

.summary-box {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    border: 1px solid var(--border);
}

.sum-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-2);
}

.sum-item:last-child { border-bottom: none; }
.sum-label { font-family: var(--font); font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;}
.sum-val { font-family: var(--font); font-size: 14px; color: var(--ink); font-weight: 800; }

.price-band {
    text-align: center;
    padding: 24px;
    background: var(--primary-soft);
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid rgba(255, 92, 53, 0.1);
}

.t-total-val { font-family: var(--font); font-size: 2.8rem; font-weight: 900; color: var(--primary); letter-spacing: -0.03em; }

/* ─── FORM ELEMANLARI VE BUTONLAR ─── */
.p-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.25s var(--ease);
    background: var(--bg);
    box-sizing: border-box;
}

.p-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.btn-premium {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-premium:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(255,92,53,.35);
}
.btn-premium:disabled {
    background: var(--border-2);
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* ─── OTP (DOĞRULAMA) MODAL ─── */
.otp-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.8); backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center; z-index: 9999;
}

.otp-modal-content {
    background: var(--white); padding: 48px; border-radius: var(--radius-xl); 
    width: 100%; max-width: 440px; text-align: center; 
    box-shadow: var(--shadow-lg);
}

.otp-modal-content h3 {
    font-family: var(--font); font-size: 1.8rem; font-weight: 800; color: var(--ink); margin-bottom: 8px;
}

.otp-input {
    width: 100%; letter-spacing: 12px; text-align: center; font-size: 36px;
    font-weight: 900; padding: 20px; border: 2px solid var(--border); border-radius: var(--radius-lg);
    margin: 24px 0; color: var(--primary); font-family: var(--font); background: var(--bg);
}
.otp-input:focus { outline: none; border-color: var(--primary); background: var(--white); }
/* ─── RESPONSIVE (GELİŞTİRİLMİŞ MOBİL UYUM) ─── */
@media (max-width: 1024px) {
    .booking-wrapper { 
        grid-template-columns: 1fr; 
        gap: 24px;
    }
    .sticky-card { 
        position: relative; 
        top: 0; 
    }
    .b-card { 
        padding: 32px 24px; 
    }
}

@media (max-width: 768px) {
    /* Takvim ve Seans Listesi Mobil Optimizasyonu */
    .session-grid {
        grid-template-columns: 1fr; /* Mobilde seanslar tek sütun alt alta gelsin */
        gap: 16px;
    }
    
    .custom-calendar {
        padding: 16px; /* Ekran kenarlarından kazanmak için iç boşluğu küçült */
    }

    .t-total-val { 
        font-size: 2.2rem; /* Mobilde fiyat boyutu biraz küçülsün */
    }

    .otp-modal-content {
        padding: 32px 24px;
        margin: 0 16px; /* Ekranın kenarlarına yapışmasını engelle */
    }
}

@media (max-width: 480px) {
    .booking-page-container { 
        padding: 24px 0 60px; 
    }
    
    .b-header h2 {
        font-size: 1.6rem;
    }
    
    .b-card {
        padding: 24px 16px;
        border-radius: var(--radius-lg);
    }

    .calendar-weekdays { 
        font-size: 11px; 
    }
    
    .cal-day { 
        font-size: 13px; 
        /* Dokunma alanını korumak için aspect ratio aynı kalsa da padding verilebilir */
    }

    /* Dokunmatik hedefleri (Touch Targets) genişletme */
    .p-input, .btn-premium {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .otp-input {
        font-size: 28px;
        letter-spacing: 8px;
        padding: 16px;
    }
}