/* Ekran Okuyucu İçin Gizli Metin (Accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* KÖK CSS DEĞİŞKENLERİ: Glass Efektini modüler hale getirir */
:root {
    --glass-bg-opacity: 0.35;
    --glass-blur: 16px;
    --glass-border-color: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --nav-height: 6rem;
}

/* Fixed Navbar ile uyumlu scroll padding */
html {
    scroll-padding-top: var(--nav-height);
}

/* Arka Plan Efekti */
body {
    background-color: #f0f9ff;
    background-image: radial-gradient(at 0% 0%, hsla(192, 100%, 93%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(196, 100%, 90%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(192, 100%, 93%, 1) 0, transparent 50%);
}

/* Glassmorphism (Cam Efekti) - Modüler Tanım */
.glass-panel {
    background: rgba(255, 255, 255, var(--glass-bg-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
}
.glass-card {
    background: rgba(255, 255, 255, 0.5); /* Card için biraz daha opak */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.4s ease;
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(255, 255, 255, 0.9);
}
.glass-btn {
    background: rgba(12, 74, 110, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}
.glass-btn:hover {
    background: rgba(14, 165, 233, 0.9);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* Filtreleme butonu (urunler.php) */
.filter-btn.active {
    background-color: #0c4a6e;
    color: white;
}

/* Ensure hover/focus always shows white text and the brand background for filter buttons */
.filter-btn:hover,
.filter-btn:focus {
    background-color: #0c4a6e;
    color: #ffffff;
    border-color: #0c4a6e;
}
.filter-btn.active:hover,
.filter-btn.active:focus {
    background-color: #084a63; /* slightly darker on hover when active */
    color: #ffffff;
    border-color: #084a63;
}

/* Blob Efekti (index.php) */
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
}

/* Mobil Giriş Formu (siparis.php) */
.glass-input {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.glass-input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}
.value-icon-container {
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    margin-left: auto;
    margin-right: auto;
    border-radius: 9999px; /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem; /* text-3xl */
    margin-bottom: 1.5rem; /* mb-6 */
    /* Arka plan ve renkler Tailwind sınıflarıyla PHP dosyasından yönetiliyor */
}

/* NAVBAR DEBUG & FIX: ensure fixed navbar behaves as viewport-fixed and doesn't block scroll */
nav.fixed {
    position: fixed !important;
    top: 1rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    touch-action: auto !important;
}

/* Visual debug (remove after verification) */
/* Debug outline removed. */

/* Mobile menu hidden state should not block scrolling (ensure display none when hidden) */
#mobileMenu.hidden { display: none !important; }

/* Very low z-index class for decorative background elements that must never block interaction */
.low-z {
    z-index: -9999 !important;
}

/* Ensure fixed header/navbar does not overlap content on load
   If your header is fixed (position: fixed), push page content down by header height.
   Adjust 105px if your navbar height differs. */
body.page-offset-by-header {
    padding-top: 120px;
}

/* If you want this behavior site-wide, add the class to <body> in `_header.php` or
   simply target `body` directly (but class is safer). */

/* Stat icon hover + focus styles */
.stat-icon {
    transition: transform 250ms cubic-bezier(.2,.9,.2,1),
                background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
    will-change: transform, background-color, box-shadow;
    cursor: default;
}
.stat-icon i {
    transition: transform 200ms ease, color 200ms ease;
    color: inherit;
}
.stat-icon:hover {
    transform: translateY(-6px) scale(1.04);
    background-color: rgba(12,74,110,0.12); /* subtle brand tint */
    box-shadow: 0 10px 24px rgba(12,74,110,0.06);
    color: #0c4a6e;
}
.stat-icon:hover i {
    transform: translateY(-2px);
    color: #075985;
}
.stat-icon:focus-visible {
    outline: 3px solid rgba(3,105,161,0.12);
    outline-offset: 3px;
}
