/* ====================================================
   HIZLI MENÜ (BOTTOM NAV BAR)
   assets/hizlimenu.css
   ==================================================== */

:root {
    --hm-dark-blue: #0047b3;
    --hm-light-blue: #009ce4;
    --hm-text: #0b2b5e;
    --hm-bg: rgba(255, 255, 255, 0.92);
    --hm-active-bg: linear-gradient(135deg, #009ce4 0%, #0068c8 50%, #0047b3 100%);
    --hm-shadow: 0 -8px 32px rgba(0, 71, 179, 0.13), 0 -2px 8px rgba(0, 0, 0, 0.07);
    --hm-radius: 28px;
    --hm-height: 70px;
}

/* ====================================================
   KAPSAYICI
   ==================================================== */
.hizli-menu-wrapper {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8000;
    width: calc(100% - 32px);
    max-width: 520px;
    pointer-events: none; /* sadece bar tıklanabilir */
}

/* ====================================================
   BAR ARKA PLANI
   ==================================================== */
.hizli-menu-bar {
    pointer-events: all;
    background: var(--hm-bg);
    backdrop-filter: blur(24px) saturate(170%);
    -webkit-backdrop-filter: blur(24px) saturate(170%);
    border-radius: var(--hm-radius);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: var(--hm-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    height: var(--hm-height);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 10px;
    position: relative;
    /* Hareketli kenar çizgisi */
    overflow: hidden;
}

/* Tepedeki ince mavi accent çizgisi */
.hizli-menu-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hm-light-blue), transparent);
    border-radius: 0 0 4px 4px;
    opacity: 0.7;
}

/* ====================================================
   MENÜ ÖĞELERİ
   ==================================================== */
.hm-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--hm-text);
    padding: 8px 14px;
    border-radius: 16px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 60px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hm-item i {
    font-size: 19px;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), color 0.28s;
    filter: drop-shadow(0 1px 2px rgba(255,255,255,0.8));
}

.hm-item span {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: color 0.28s;
    white-space: nowrap;
}

/* Hover durumu */
.hm-item:hover {
    color: var(--hm-light-blue);
    background: rgba(0, 156, 228, 0.08);
}

.hm-item:hover i {
    transform: translateY(-3px) scale(1.12);
    color: var(--hm-light-blue);
}

.hm-item:hover span {
    color: var(--hm-light-blue);
}

/* Aktif sayfa */
.hm-item.hm-active {
    color: var(--hm-light-blue);
}

.hm-item.hm-active i {
    color: var(--hm-light-blue);
}

.hm-item.hm-active span {
    color: var(--hm-light-blue);
}

.hm-item.hm-active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--hm-light-blue);
    border-radius: 2px;
}

/* ====================================================
   ORTA LOGO BUTONU (Hamburg Açar)
   ==================================================== */
.hm-logo-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hm-active-bg);
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 24px rgba(0, 104, 200, 0.45), 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    /* Logo resmi merkeze */
    position: relative;
}

/* Logo resmi */
.hm-logo-btn img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 50%;
    position: absolute;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hamburger ikonları (logo üstünde, başta gizli) */
.hm-logo-btn .hm-hb-lines {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    opacity: 0;
    transform: scale(0.7) rotate(90deg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-hb-line {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hm-hb-line-1 { width: 12px; }
.hm-hb-line-2 { width: 20px; }
.hm-hb-line-3 { width: 12px; }

/* Aktif (menü açık) hali → logo gizlenir, hamburger görünür */
.hm-logo-btn.is-open img {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.hm-logo-btn.is-open .hm-hb-lines {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hover efekti */
.hm-logo-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 104, 200, 0.55), 0 4px 10px rgba(0,0,0,0.15);
}

/* Shimmer efekti */
@keyframes hmShimmer {
    0%   { left: -75%; }
    15%  { left: 130%; }
    100% { left: 130%; }
}

.hm-logo-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    animation: hmShimmer 4s infinite;
    pointer-events: none;
}

/* ====================================================
   MOBİL MENÜ OVERLAY (Mevcut Header ile Aynı Sistem)
   ==================================================== */
.hm-mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: #ffffff;
    z-index: 9998;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.hm-mobile-overlay.active {
    transform: translateX(0);
}

.hm-overlay-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 22px;
    background: linear-gradient(160deg, #ffffff 0%, #eef4ff 100%);
}

/* Üst Bar */
.hm-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 71, 179, 0.12);
    padding-bottom: 20px;
}

.hm-overlay-logo {
    max-height: 44px;
    width: auto;
}

.hm-overlay-close {
    background: transparent;
    border: 1.5px solid rgba(0, 71, 179, 0.2);
    width: 40px; height: 40px;
    border-radius: 50%;
    color: var(--hm-text);
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.hm-overlay-close:hover {
    background: var(--hm-light-blue);
    border-color: var(--hm-light-blue);
    color: #fff;
    transform: rotate(90deg);
}

/* Linkler */
.hm-overlay-links {
    flex-grow: 1;
    overflow-y: auto;
}

.hm-overlay-links ul {
    list-style: none;
    margin: 0; padding: 0;
}

.hm-overlay-links > ul > li {
    border-bottom: 1px solid rgba(0, 71, 179, 0.08);
}

.hm-overlay-links > ul > li > a,
.hm-overlay-links .hm-sub-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--hm-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 13px 4px;
    transition: 0.22s;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hm-overlay-links .hm-sub-toggle {
    justify-content: space-between;
}

.hm-sub-arrow {
    font-size: 11px;
    color: var(--hm-light-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.hm-overlay-links > ul > li > a span,
.hm-overlay-links .hm-sub-toggle span.hm-num {
    font-size: 10px;
    color: var(--hm-light-blue);
    font-weight: 500;
    opacity: 0.75;
    font-family: monospace;
    flex-shrink: 0;
}

.hm-overlay-links > ul > li > a:hover,
.hm-overlay-links .hm-sub-toggle:hover {
    color: var(--hm-light-blue);
    padding-left: 10px;
}

/* Alt menüler */
.hm-sub-menu {
    padding: 4px 0 12px 32px;
    flex-direction: column;
    gap: 0;
    margin-bottom: 4px;
}

.hm-sub-menu.hm-sub-hidden { display: none !important; }

.hm-sub-menu.hm-sub-open-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    padding-left: 22px;
}

.hm-sub-menu.hm-sub-open-flex {
    display: flex !important;
    flex-direction: column;
}

.hm-sub-menu a {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #3a5a8a;
    padding: 7px 10px;
    border-radius: 6px;
    transition: 0.18s;
    text-decoration: none;
}

.hm-sub-menu a:hover {
    color: var(--hm-light-blue);
    background: rgba(0, 156, 228, 0.08);
    padding-left: 14px;
}

/* Alt */
.hm-overlay-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 71, 179, 0.1);
}

.hm-overlay-catalog-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--hm-light-blue), var(--hm-dark-blue));
    color: #fff;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0,156,228,0.28);
    transition: 0.3s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hm-overlay-catalog-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 156, 228, 0.38);
}

.hm-overlay-copy {
    text-align: center;
    color: rgba(0, 43, 94, 0.3);
    font-size: 11px;
    margin-top: 12px;
    font-family: monospace;
}

/* ====================================================
   MASAÜSTÜNDE GİZLE — SADECE MOBİLDE GÖSTER
   ==================================================== */
@media (min-width: 1151px) {
    .hizli-menu-wrapper { display: none !important; }
    .hm-mobile-overlay  { display: none !important; }
}

/* ====================================================
   BODY PADDING (Alt menü tarafından ezilmesin) — sadece mobilde
   ==================================================== */
@media (max-width: 1150px) {
    body {
        padding-bottom: 100px;
    }
}