/* ==========================================================================
   ANADOLUNOVA KLİMA - DAIKIN YETKİLİ SERVİS
   Minimalist Mimari & Hava Akımı (Airflow) Tasarım Sistemi
   ========================================================================== */

:root {
    --text-main: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.92);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background: #f1f4f8;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* ================== ARKA PLAN: SABİT HAVA AKIMI VE DERİNLİK (0% CPU) ================== */
#bgContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, #ffffff 0%, #edf2f7 60%, #e2e8f0 100%);
}

#airCanvas {
    display: none;
}

/* Sayfa bölümleri arka planın üzerinde asılı durur */
section, header, footer {
    position: relative;
    z-index: 10;
}

/* ================== KARTLAR (MİMARİ TEMİZ & HAFİF) ================== */
.card-clean {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 6px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-clean:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

/* ================== ARCHITECTURAL BENTO GALLERY ================== */
.bento-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: #09090b;
    border: 1px solid rgba(228, 228, 231, 0.85);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.16);
    border-color: #a1a1aa;
}

.bento-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover img {
    transform: scale(1.04);
}

.overlay-scrim {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(9, 9, 11, 0.85) 78%,
        rgba(9, 9, 11, 0.98) 100%
    );
    pointer-events: none;
}

/* ================== MASTER VİTRİN SEKMELERİ ================== */
.master-tab {
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: transparent;
    color: #52525b;
}

.master-tab.active {
    background-color: #0097E6 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 151, 230, 0.25);
}

.master-tab:not(.active):hover {
    background-color: #e4e4e7;
    color: #09090b;
}

.filter-tab {
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-tab.active {
    background-color: #0097E6 !important;
    color: #ffffff !important;
    border-color: #0097E6 !important;
}

.filter-tab:not(.active):hover {
    background-color: #e4e4e7;
    color: #09090b;
}

/* ================== ÜRÜN KARTLARI ================== */
.product-card {
    background-color: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #0097E6;
    box-shadow: 0 14px 28px -4px rgba(0, 151, 230, 0.12);
}

.product-tab {
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-tab.active {
    background-color: #0097E6 !important;
    color: #ffffff !important;
    border-color: #0097E6 !important;
}

.product-tab:not(.active):hover {
    background-color: #e4e4e7;
    color: #09090b;
}

/* ================== BUTONLAR (DAIKIN MAVİSİ) ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #0097E6;
    color: #ffffff !important;
    border-color: #0097E6;
    box-shadow: 0 2px 8px rgba(0, 151, 230, 0.25);
}
.btn-primary:hover {
    background-color: #0082c8;
    border-color: #0082c8;
    box-shadow: 0 4px 14px rgba(0, 151, 230, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #0f172a !important;
    border-color: #cbd5e1;
}
.btn-secondary:hover {
    background-color: #ffffff;
    border-color: #0097E6;
    color: #0097E6 !important;
}

/* ================== LIGHTBOX (SAF SİYAH, MİNİMALİST) ================== */
#lightboxModal {
    background-color: rgba(5, 7, 10, 0.96);
    backdrop-filter: blur(12px);
}

.lightbox-content {
    max-width: 960px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.lightbox-img-wrap img {
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    width: 100%;
    padding: 14px 20px;
    text-align: center;
    background: transparent;
}

.lightbox-caption h3 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.lightbox-caption p {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
}

.lightbox-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 60;
}

.lightbox-nav-btn:hover {
    background-color: #0097E6;
    border-color: #0097E6;
    transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
    left: 24px;
}

.lightbox-nav-btn.next {
    right: 24px;
}

@media (max-width: 640px) {
    .lightbox-nav-btn {
        width: 38px;
        height: 38px;
    }
    .lightbox-nav-btn.prev {
        left: 8px;
    }
    .lightbox-nav-btn.next {
        right: 8px;
    }
}

/* Mobil Alt Bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    padding: 10px 16px;
    z-index: 45;
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        gap: 10px;
    }
    body {
        padding-bottom: 65px;
    }
}

/* ================== LENIS AKICI KAYDIRMA (SMOOTH SCROLL) ================== */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

/* ================== GÜVENLİK NUMPAD (PIN KLAVYESİ) ================== */
@keyframes shakePin {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.shake-pin {
    animation: shakePin 0.35s ease-in-out;
}

.pin-dot {
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    border: 2px solid #a1a1aa;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-dot.filled {
    background-color: #0097E6;
    border-color: #0097E6;
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(0, 151, 230, 0.5);
}
.pin-dot.error {
    background-color: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.numpad-key {
    width: 68px;
    height: 68px;
    border-radius: 9999px;
    background: #f4f4f5;
    color: #18181b;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.numpad-key:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}
.numpad-key:active {
    transform: scale(0.92);
    background: #d4d4d8;
}

/* Admin Aksiyon Rozetleri */
.admin-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 30;
    display: flex;
    gap: 4px;
}
.admin-badge-btn {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
}
.admin-badge-btn:hover {
    transform: scale(1.05);
}

/* ================== YÖNETİCİ KONTROL PANELİ DOCK (HER EKRANA ORANTILI) ================== */
.admin-floating-dock {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid rgba(82, 82, 91, 0.7);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    padding: 5px 8px;
    max-width: calc(100vw - 16px);
    width: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.admin-floating-dock.hidden {
    display: none !important;
}
.admin-floating-dock::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .admin-floating-dock {
        bottom: 22px;
        padding: 7px 14px;
        gap: 7px;
    }
}

.admin-status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 4px 0 6px;
    font-size: 11px;
    font-weight: 700;
    color: #34d399;
    flex-shrink: 0;
}
@media (max-width: 440px) {
    .admin-status-text {
        display: none;
    }
}

.admin-dock-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    margin: 0 2px;
}

.admin-dock-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    background: #27272a;
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    user-select: none;
}
@media (min-width: 640px) {
    .admin-dock-btn {
        padding: 6px 13px;
        font-size: 12px;
        gap: 6px;
    }
}
.admin-dock-btn:hover {
    background: #3f3f46;
    color: #ffffff;
}
.admin-dock-btn:active {
    transform: scale(0.95);
}

.admin-dock-btn.primary {
    background: #0097E6;
    color: #ffffff;
    border-color: #0097E6;
}
.admin-dock-btn.primary:hover {
    background: #0082c8;
}

.admin-dock-btn.highlight {
    background: #065f46;
    color: #d1fae5;
    border-color: rgba(16, 185, 129, 0.4);
}
.admin-dock-btn.highlight:hover {
    background: #047857;
    color: #ffffff;
}

.admin-dock-btn.danger {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    padding: 6px 10px;
}
.admin-dock-btn.danger:hover {
    background: #b91c1c;
}

.admin-dock-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    color: #a1a1aa;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.admin-dock-btn-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.admin-dock-btn-icon:active {
    transform: rotate(-45deg);
}

/* Yönetici modundayken alttaki müşteri çubuğunu gizle */
body.admin-active .mobile-bottom-bar {
    display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
