/* 
  Global Application Styles
  Base: Tailwind CSS (via CDN)
  Custom Overrides & Components (Standard CSS)
*/

body {
    background-color: #f8fafc;
    color: #0f172a;
}

.dark body {
    background-color: #101c22;
    color: #f1f5f9;
}

/* Premium Component Cards */
.section-card {
    background-color: #ffffff;
    border-radius: 1rem; /* 16px */
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.dark .section-card {
    background-color: #0f172a;
    border-color: #1e293b;
}

/* Sidebar Navigation */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem; /* 12px */
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.sidebar-link-active {
    background-color: rgba(23, 143, 69, 0.1);
    color: #178F45;
    border: 1px solid rgba(23, 143, 69, 0.2);
}

.sidebar-link-inactive {
    color: #64748b;
}

.sidebar-link-inactive:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.dark .sidebar-link-inactive:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* Üye hesabı: mobilde yatay kaydırmalı menü */
@media (max-width: 1023px) {
    .member-sidebar-card .member-account-nav {
        background: linear-gradient(180deg, rgba(248, 250, 252, 0.65) 0%, rgba(255, 255, 255, 0.4) 100%);
        border-radius: 0 0 0.875rem 0.875rem;
    }

    .dark .member-sidebar-card .member-account-nav {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.08) 100%);
    }

    .member-account-nav .sidebar-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: 9999px;
        border-width: 1px;
        border-style: solid;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }

    .member-account-nav .sidebar-link-inactive {
        background-color: #ffffff;
        border-color: #e2e8f0;
    }

    .dark .member-account-nav .sidebar-link-inactive {
        background-color: #1e293b;
        border-color: #334155;
    }

    .member-account-nav .sidebar-link-active {
        box-shadow:
            0 2px 8px -2px rgba(23, 143, 69, 0.35),
            0 0 0 1px rgba(23, 143, 69, 0.12);
    }

    .member-account-nav .sidebar-link .material-symbols-outlined {
        font-size: 1.125rem;
        opacity: 0.95;
    }

    .member-account-nav .sidebar-link--logout {
        border-radius: 9999px;
        border: 1px solid rgba(220, 38, 38, 0.22);
        background-color: rgba(254, 242, 242, 0.65);
    }

    .dark .member-account-nav .sidebar-link--logout {
        border-color: rgba(57, 184, 90, 0.25);
        background-color: rgba(127, 29, 29, 0.2);
    }
}

@media (min-width: 1024px) {
    .member-sidebar-card .member-account-nav {
        background: none;
        border-radius: 0;
    }
}

/* Form Elements — üye / profil sayfaları (Tasarım: profilim.html ile uyumlu) */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.45;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dark .input-field {
    border-color: #334155;
    background-color: #1e293b;
    color: #f1f5f9;
}

.input-field::placeholder {
    color: #94a3b8;
}

.dark .input-field::placeholder {
    color: #64748b;
}

.input-field:hover:not(:disabled):not(:focus) {
    border-color: #cbd5e1;
}

.dark .input-field:hover:not(:disabled):not(:focus) {
    border-color: #475569;
}

.input-field:focus {
    border-color: #178F45;
    box-shadow: 0 0 0 2px rgba(23, 143, 69, 0.2);
}

.input-field:disabled {
    cursor: not-allowed;
    opacity: 0.92;
    background-color: #f8fafc;
    color: #64748b;
}

.dark .input-field:disabled {
    background-color: #0f172a;
    color: #94a3b8;
}

textarea.input-field {
    min-height: 6.5rem;
    resize: vertical;
}

select.input-field:not([disabled]) {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
}

.dark select.input-field:not([disabled]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.label-text {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.5rem;
}

.dark .label-text {
    color: #64748b;
}

/* Üye form kartı içi bölüm başlığı */
.member-form-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.dark .member-form-section-head {
    border-bottom-color: #1e293b;
}

.member-form-section-head .material-symbols-outlined {
    font-size: 1.5rem;
    color: #178F45;
}

.member-form-section-head h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.dark .member-form-section-head h2 {
    color: #f8fafc;
}

/* Tabs */
.tab-active {
    border-color: #178F45;
    color: #178F45;
    padding: 1rem 0.25rem;
    border-bottom-width: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.tab-inactive {
    border-color: transparent;
    color: #64748b;
    padding: 1rem 0.25rem;
    border-bottom-width: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
}

.tab-inactive:hover {
    color: #334155;
    border-color: #cbd5e1;
}

.dark .tab-inactive:hover {
    color: #ffffff;
    border-color: #475569;
}

/* Sipariş detay — tasarım ile uyumlu alan etiketleri */
.detail-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.25rem;
}

.dark .detail-label {
    color: #64748b;
}

.detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.5;
}

.dark .detail-value {
    color: #e2e8f0;
}

/* Birincil buton — HTML şablonlarında btn-primary kullanılıyor; Tailwind CDN bu sınıfı üretmez */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    background-color: #178F45;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(23, 143, 69, 0.2), 0 4px 6px -4px rgba(23, 143, 69, 0.15);
}

.btn-primary:hover {
    background-color: #137036;
    color: #ffffff;
}

.btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(23, 143, 69, 0.35), 0 10px 15px -3px rgba(23, 143, 69, 0.2);
}

/* Custom Utilities */
.order-card-shadow {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SSS (/sss) — kategori şeridi: kaydırma çubuğu gizli, dokunmatik kaydırma yumuşak */
.tts-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.125rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
    color: #64748b;
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dark .tts-category-tab {
    color: #94a3b8;
    background-color: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tts-category-tab:hover {
    color: #0f172a;
    border-color: rgba(23, 143, 69, 0.35);
    background-color: #ffffff;
}

.dark .tts-category-tab:hover {
    color: #f1f5f9;
    border-color: rgba(57, 184, 90, 0.35);
    background-color: #1e293b;
}

.tts-category-tab.is-active {
    color: #ffffff;
    background-color: #178F45;
    border-color: transparent;
    box-shadow:
        0 4px 14px -3px rgba(23, 143, 69, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.tts-category-tab.is-active:hover {
    color: #ffffff;
    background-color: #137036;
    border-color: transparent;
}

.tts-category-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 4px;
}

/* Fare: tekerlek / sürükleme (ince işaretçi cihazlarda) */
@media (hover: hover) and (pointer: fine) {
    .tts-category-scroll:hover {
        cursor: grab;
    }

    .tts-category-scroll.is-grabbing {
        cursor: grabbing;
        user-select: none;
    }

    .tts-category-scroll.is-grabbing * {
        pointer-events: none;
    }
}

@media (min-width: 768px) {
    .tts-category-tab {
        padding: 0.5rem 1.25rem;
    }
}

/* Mobil tam ekran menü — JS .is-open ile; üst bardaki z-50’nin üzerinde */
.site-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.site-mobile-nav .site-mobile-nav__backdrop {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-mobile-nav.is-open .site-mobile-nav__backdrop {
    opacity: 1;
}

.site-mobile-nav .site-mobile-nav__panel {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100%;
    height: 100%;
}

.site-mobile-nav.is-open .site-mobile-nav__panel {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .site-mobile-nav {
        display: none !important;
    }
}

/* Rezervasyon Modal Popup & Modern UI/UX Tasarım Revizyonu */

/* Sayfa arka planını blurlu bir wrapper yapma (Premium Glassmorphic Backdrop) */
.rez-page-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    padding: 1rem;
    overflow-y: auto;
}

.dark .rez-page-wrapper {
    background-color: rgba(10, 15, 30, 0.45);
}

/* Modal Popup Kutusu (Ultra Premium Floating Glass Card) */
.rez-modal-card {
    width: 100%;
    max-width: 640px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 2rem; /* 32px */
    box-shadow: 
        0 40px 80px -20px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(15, 23, 42, 0.04),
        0 2px 4px -1px rgba(15, 23, 42, 0.02);
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: rezModalScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rezModalScaleUp {
    from {
        transform: scale(0.96) translateY(10px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.dark .rez-modal-card {
    background-color: rgba(15, 23, 42, 0.92);
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.05);
}

/* Kapatma Butonu (Sağ üst - Glassmorphic Circle) */
.rez-modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background-color: rgba(15, 23, 42, 0.04);
    color: #64748b;
    border: 1px solid rgba(15, 23, 42, 0.02);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rez-modal-close-btn:hover {
    background-color: rgba(23, 143, 69, 0.1);
    color: #178F45;
    transform: rotate(90deg);
}

.dark .rez-modal-close-btn {
    background-color: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.02);
}

.dark .rez-modal-close-btn:hover {
    background-color: rgba(23, 143, 69, 0.15);
    color: #39B85A;
    border-color: rgba(23, 143, 69, 0.2);
}

/* Minimal Adım Çizgileri (Step Indicator) */
.rez-steps-mini {
    display: flex;
    gap: 0.35rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.rez-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .rez-step-dot {
    background-color: #334155;
}

.rez-step-dot.is-active {
    background-color: #178F45;
    background-image: linear-gradient(90deg, #178F45 0%, #39B85A 100%);
}

.rez-step-dot.is-completed {
    background-color: rgba(23, 143, 69, 0.4);
}

/* İnteraktif Seçenek Kartları (Hover & Active Glow Stilleri) */
.js-rez-step label {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-rez-step label:hover {
    transform: translateY(-2px);
}

.js-rez-step label:active {
    transform: translateY(0) scale(0.98);
}

/* Seçilen Kartın Canlı Gradient Kenarlığı & Glow Gölgesi */
.js-rez-step input:checked + div {
    border-color: #178F45 !important;
    background-color: rgba(23, 143, 69, 0.02) !important;
    box-shadow: 
        0 0 0 1px #178F45, 
        0 10px 25px -10px rgba(23, 143, 69, 0.2);
}

.dark .js-rez-step input:checked + div {
    background-color: rgba(23, 143, 69, 0.05) !important;
    box-shadow: 
        0 0 0 1px #178F45, 
        0 10px 25px -10px rgba(23, 143, 69, 0.35);
}

/* Seçilen Karttaki Onay İkonunun Mikro Animasyonu */
.js-rez-step input:checked + div span[class*="check_circle"] {
    animation: rezScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rezScaleIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Alt Butonlar Barı (Premium Container) */
.js-rez-footer-bar {
    border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

.dark .js-rez-footer-bar {
    border-top-color: rgba(255, 255, 255, 0.05) !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.35) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
}

/* Geri Butonu (Minimal Hover) */
.js-rez-back {
    border: none !important;
    background-color: transparent !important;
    color: #64748b !important;
    transition: all 0.2s ease !important;
}

.js-rez-back:hover:not(:disabled) {
    background-color: rgba(15, 23, 42, 0.04) !important;
    color: #0f172a !important;
}

.dark .js-rez-back {
    color: #94a3b8 !important;
}

.dark .js-rez-back:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.04) !important;
    color: #ffffff !important;
}

/* Devam ve Ödeme Butonları (Vibrant Gradient & Drop Shadow Glow) */
.js-rez-next, .js-rez-pay {
    border: none !important;
    background: linear-gradient(135deg, #178F45 0%, #39B85A 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px -8px rgba(23, 143, 69, 0.35) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.js-rez-next:hover:not(:disabled), .js-rez-pay:hover:not(:disabled) {
    box-shadow: 0 12px 24px -6px rgba(23, 143, 69, 0.45) !important;
    transform: translateY(-1px);
    opacity: 0.95;
}

.js-rez-next:active, .js-rez-pay:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px -8px rgba(23, 143, 69, 0.3) !important;
}

/* Mobilde boyutları küçültme ve sıkıştırma */
@media (max-width: 640px) {
    .rez-modal-card {
        border-radius: 1.5rem;
    }
    
    .rez-page-wrapper {
        padding: 0.75rem 0.5rem;
    }
    
    /* Wizard içindeki adımlar ve başlıklar */
    .js-rez-wizard .p-6, 
    .js-rez-wizard .p-8, 
    .js-rez-wizard .md:p-10, 
    .js-rez-wizard .p-6.md\:p-10 {
        padding: 1.125rem !important;
    }
    
    .js-rez-step-title {
        font-size: 1.125rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* Hizmet kartı düzeni - Mobilde 2 kolon olsun */
    .js-rez-step[data-step="1"] .grid {
        gap: 0.5rem !important;
    }
    
    /* Hizmet ve ev kartı iç dolgusu */
    .js-rez-step label div {
        padding: 0.75rem 1rem !important;
    }
    
    /* Genel grid boşlukları */
    .js-rez-step .grid {
        gap: 0.5rem !important;
    }
    
    /* Footer bar mobil */
    .js-rez-footer-bar {
        padding: 0.75rem 1rem !important;
        border-radius: 1rem !important;
    }
    
    .js-rez-total {
        font-size: 1.5rem !important;
    }
    
    /* Buton yükseklikleri */
    .js-rez-back, .js-rez-next, .js-rez-pay {
        height: 2.75rem !important;
        font-size: 0.875rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* Randevu ve Saat ızgaraları */
    .js-rez-cal-grid {
        gap: 0.25rem !important;
    }
    
    .js-rez-cal-day {
        border-radius: 0.5rem !important;
        font-size: 0.75rem !important;
    }
}
