/* ============================================================================
   uhp-chrome.css — SADECE header + alt navigasyon (chrome).
   layouts.web (calendar/randevu/hizmet/ürün... ekranları) tarafından yüklenir ve
   bu ekranlara landing sayfasıyla GÖRSEL OLARAK AYNI header + alt navigasyonu verir.
   Global reset / body / bileşen stili İÇERMEZ → Bootstrap sayfasını bozmaz.
   Renk için --uhp-accent / --uhp-on-accent layouts.web tema <style> bloğundan gelir.
   ========================================================================== */

:root {
    --uhp-surface: #ffffff;
    --uhp-surface-2: #f6f8fb;
    --uhp-ink: #141a22;
    --uhp-muted: #5b6573;
    --uhp-faint: #8b93a1;
    --uhp-line: #e7eaf0;
    --uhp-accent-050: color-mix(in srgb, var(--uhp-accent, #2f6bff) 12%, #fff);
    --uhp-accent-line: color-mix(in srgb, var(--uhp-accent, #2f6bff) 30%, transparent);
}
/* Açılır menü yüzeyi cihaz koyu tercihinde koyu olsun (yüzen menü; sayfa gövdesi etkilenmez) */
@media (prefers-color-scheme: dark) {
    :root {
        --uhp-surface: #141b25;
        --uhp-surface-2: #0f151d;
        --uhp-ink: #eef1f6;
        --uhp-muted: #9aa3b2;
        --uhp-faint: #6b7482;
        --uhp-line: #232b37;
        --uhp-accent-050: color-mix(in srgb, var(--uhp-accent, #2f6bff) 16%, #141b25);
    }
}

/* ============================================================================
   İZOLASYON — chrome YALNIZCA kendi stillerini kullansın.
   Bootstrap / main.css / main2.css'in bare element kuralları (a, button, body
   font'u, a:hover rengi, line-height, letter-spacing...) chrome'a SIZMASIN diye
   alt ağaç sıfırlanır; alttaki bileşen kuralları görünümü yeniden tanımlar.
   Sınıf-ata özgüllüğü (0,1,0) tüm bare element kurallarını (0,0,1) yener.
   İkon glifleri .bi::before'da (!important) olduğu için bu reset onları bozmaz.
   ========================================================================== */
.uhp-head, .uhp-tabs {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    text-indent: 0;
    -webkit-font-smoothing: antialiased;
    color: var(--uhp-on-accent);
}
.uhp-head *, .uhp-tabs * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: inherit;
    text-decoration: none;
    text-shadow: none;
    list-style: none;
    vertical-align: baseline;
    box-shadow: none;
    float: none;
    min-width: 0;
    max-width: none;
    transition: none;
}

/* ============================== HEADER ============================== */
.uhp-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 52px;
    padding: 0 10px;
    background: var(--uhp-accent);
    color: var(--uhp-on-accent);
}
.uhp-head__in {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}
.uhp-head__home,
.uhp-hbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    min-width: 34px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    border-radius: 10px;
    color: var(--uhp-on-accent);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.uhp-hbtn { font-size: 13px; font-weight: 700; }
.uhp-head__home:hover,
.uhp-hbtn:hover { background: color-mix(in srgb, var(--uhp-on-accent) 16%, transparent); color: var(--uhp-on-accent); }
.uhp-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--uhp-on-accent);
    pointer-events: none;
}
.uhp-head__acts { display: flex; align-items: center; gap: 2px; }
.uhp-chev { font-size: 10px; opacity: .8; }

/* header açılır menüleri (dil + tema seçici) */
.uhp-dd { position: relative; display: flex; align-items: center; }
.uhp-dd__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1200;
    min-width: 128px;
    padding: 6px;
    border-radius: 14px;
    background: var(--uhp-surface);
    border: 1px solid var(--uhp-line);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
    color: var(--uhp-ink);
    display: none;
}
.uhp-dd.is-open .uhp-dd__menu { display: block; }
.uhp-dd__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    color: var(--uhp-ink);
    text-decoration: none;
    cursor: pointer;
}
.uhp-dd__item:hover { background: var(--uhp-surface-2); color: var(--uhp-ink); }
.uhp-dd__item.is-active { background: var(--uhp-accent-050); color: var(--uhp-accent); }
.uhp-dd__item[disabled] { opacity: .5; cursor: progress; }
.uhp-dd__t {
    padding: 4px 10px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--uhp-faint);
}
.uhp-dd__note {
    margin-top: 6px;
    padding: 8px 10px 2px;
    border-top: 1px solid var(--uhp-line);
    font-size: 10px;
    line-height: 1.5;
    color: var(--uhp-faint);
}
.uhp-dot {
    width: 16px;
    height: 16px;
    flex: none;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--uhp-ink) 22%, transparent);
}
.uhp-dd__item .uhp-nm { flex: 1 1 auto; }
.uhp-dd__item .uhp-chk { opacity: 0; font-size: 14px; }
.uhp-dd__item.is-active .uhp-chk { opacity: 1; }

/* ============================== ALT NAVİGASYON ============================== */
.uhp-tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    display: flex;
    justify-content: center;
    background: var(--uhp-accent);
    color: var(--uhp-on-accent);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.uhp-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1 1 0;
    max-width: 132px;
    padding: 8px 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: var(--uhp-on-accent);
    text-decoration: none;
}
.uhp-tabs a:hover { color: var(--uhp-on-accent); }
.uhp-tabs a i { font-size: 16px; }
.uhp-tabs a.is-on { background: color-mix(in srgb, var(--uhp-on-accent) 20%, transparent); }

/* Sabit alt bar içeriği örtmesin diye alt boşluk — yalnızca tab olan sayfalarda */
body:has(.uhp-tabs) { padding-bottom: 60px; }

@media (min-width: 600px) {
    .uhp-head { height: 58px; padding: 0 16px; }
    .uhp-brand { font-size: 16px; }
    .uhp-tabs a { font-size: 11.5px; flex-direction: row; gap: 7px; padding: 12px 6px; max-width: 190px; }
    .uhp-tabs a i { font-size: 15px; }
    body:has(.uhp-tabs) { padding-bottom: 66px; }
}

@media (max-width: 480px) {
    .uhp-head { padding: 0 8px; gap: 4px; }
    /* Dar ekranda marka absolute-merkez yerine akışa girer: home ile aksiyonlar
       arasındaki boşlukta ortalanır, sığmazsa "..." ile kısalır — asla çakışmaz. */
    .uhp-brand {
        position: static;
        transform: none;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 4px;
        font-size: 13px;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        pointer-events: auto;
    }
    .uhp-head__home, .uhp-hbtn { padding: 0 6px; min-width: 30px; }
}
@media (max-width: 340px) {
    .uhp-brand { font-size: 12px; }
    .uhp-head__acts { gap: 0; }
}
