/* BalHost Looking Glass theme - balhost.net.tr palette (Tailwind slate/blue) */

@font-face {
    font-family: "Stack Sans Text";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url(fonts/stack-sans-text-latin-ext.woff2) format("woff2");
    unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Stack Sans Text";
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url(fonts/stack-sans-text-latin.woff2) format("woff2");
    unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --navy: #0c1220;
    --red-50: #fef2f2;
    --red-200: #fecaca;
    --red-700: #b91c1c;
    --green-500: #22c55e;
    --font: "Stack Sans Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--slate-700);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

svg { flex-shrink: 0; }

.bh-wrap {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Buttons ---------- */
.bh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    font: 600 14px/1.2 var(--font);
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .2s, opacity .2s;
    white-space: nowrap;
}
.bh-btn svg { width: 18px; height: 18px; }
.bh-btn--primary {
    color: #fff;
    background: var(--blue-600);
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, .55);
}
.bh-btn--primary:hover { color: #fff; background: var(--blue-500); transform: translateY(-1px); }
.bh-btn--primary:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.bh-btn--lg { padding: 13px 26px; font-size: 15px; }
.bh-btn:disabled { cursor: progress; opacity: .8; transform: none; }
.bh-btn.is-loading svg { animation: bh-pulse 1s ease-in-out infinite; }

/* ---------- Nav ---------- */
.bh-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.bh-nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
    border-bottom: 1px solid var(--slate-200);
}
.bh-nav__logo { display: flex; align-items: center; height: 100%; }
.bh-nav__logo img { height: 40px; width: auto; display: block; }
.bh-nav__links { display: flex; gap: 4px; margin-left: auto; }
.bh-nav__links a {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    transition: color .15s, background .15s;
}
.bh-nav__links a:hover { color: var(--blue-600); background: var(--blue-50); }

.bh-lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--slate-600);
    border-radius: 999px;
    background: var(--slate-800);
}
.bh-lang a {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--slate-400);
    transition: color .15s, background .15s;
}
.bh-lang a:hover { color: #fff; }
.bh-lang a.is-active { background: var(--blue-600); color: #fff; }
.bh-lang a:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; }

/* ---------- Hero ---------- */
.bh-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--slate-900);
}
.bh-hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(15, 23, 42, .88), rgba(15, 23, 42, .6) 55%, rgba(15, 23, 42, .35)),
        linear-gradient(to top, rgba(15, 23, 42, .8), transparent 60%),
        url(img/hero-dc.webp) center / cover no-repeat;
    filter: saturate(1.05);
}
.bh-hero__content {
    position: relative;
    padding-top: 64px;
    padding-bottom: 96px;
}
.bh-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-300);
}
.bh-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.bh-hero h1 span { color: var(--blue-300); }
.bh-hero p {
    max-width: 600px;
    margin: 0 0 24px;
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, .8);
}
.bh-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bh-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-200);
}
.bh-chip svg { width: 16px; height: 16px; color: var(--blue-300); }
.bh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: bh-ping 2s infinite;
}

.bh-chip--live.is-pending .bh-dot { background: var(--slate-400); animation: bh-pulse 1s ease-in-out infinite; box-shadow: none; }
.bh-chip--live.is-failed .bh-dot { background: var(--slate-500); animation: none; box-shadow: none; }

/* ---------- Main / cards ---------- */
.bh-main {
    position: relative;
    margin-top: -56px;
    padding-bottom: 64px;
    display: grid;
    gap: 24px;
}
.bh-locations {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.bh-card {
    background: #fff;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .12);
}
.bh-card--lg { box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .28); }
.bh-card__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.bh-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    border: 1px solid var(--blue-100);
    color: var(--blue-600);
}
.bh-card__icon svg { width: 22px; height: 22px; }
.bh-card h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--slate-900); line-height: 1.3; }
.bh-card__head p { margin: 2px 0 0; font-size: 14px; color: var(--slate-500); }

/* ---------- Form ---------- */
.bh-label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slate-500);
}
.bh-target {
    position: relative;
    margin-bottom: 20px;
}
.bh-target svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}
.bh-target input, .bh-select {
    width: 100%;
    border: 1px solid var(--slate-300);
    border-radius: 12px;
    background: #fff;
    color: var(--slate-900);
    font: 500 16px/1.4 var(--font);
    transition: border-color .15s, box-shadow .15s;
}
.bh-target input { padding: 14px 16px 14px 46px; }
.bh-target input::placeholder { color: var(--slate-400); }
.bh-target input:focus, .bh-select:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.bh-select { width: auto; padding: 8px 12px; font-size: 14px; }

.bh-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.bh-method { position: relative; cursor: pointer; }
.bh-method input { position: absolute; opacity: 0; pointer-events: none; }
.bh-method span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-700);
    transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.bh-method small {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--slate-200);
    font-size: 11px;
    font-weight: 700;
    color: var(--slate-600);
}
.bh-method:hover span { border-color: var(--blue-300); background: #fff; }
.bh-method input:checked + span {
    border-color: var(--blue-500);
    background: var(--blue-50);
    color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}
.bh-method input:checked + span small { background: var(--blue-600); color: #fff; }
.bh-method input:focus-visible + span { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.bh-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.bh-form__foot .bh-btn { margin-left: auto; }
.bh-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.bh-check input { width: 18px; height: 18px; accent-color: var(--blue-600); }

.bh-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--red-200);
    border-radius: 12px;
    background: var(--red-50);
    color: var(--red-700);
    font-size: 14px;
    font-weight: 500;
}
.bh-alert svg { width: 20px; height: 20px; }

/* ---------- Terminal output ---------- */
.bh-terminal {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--slate-800);
    border-radius: 12px;
    background: var(--navy);
    box-shadow: 0 20px 40px -20px rgba(12, 18, 32, .6);
}
.bh-terminal__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    background: var(--slate-800);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.bh-terminal__bar i { width: 11px; height: 11px; border-radius: 50%; }
.bh-terminal__bar span {
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: 500 12px var(--mono);
    color: var(--slate-400);
}
.bh-terminal pre {
    margin: 0;
    padding: 16px 18px 20px;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
    font: 13px/1.6 var(--mono);
    color: var(--slate-200);
    min-height: 120px;
}

/* ---------- Network grid ---------- */
.bh-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.bh-grid > .bh-stat { grid-column: span 2; }
/* 5 items: the last row of two fills the full width */
.bh-grid > .bh-stat:nth-child(4):nth-last-child(2),
.bh-grid > .bh-stat:nth-child(5):last-child { grid-column: span 3; }
.bh-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
}
.bh-stat__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slate-500);
}
.bh-stat__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 96px;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-900);
}
code.bh-stat__value { font-family: var(--mono); font-size: 14px; }
.bh-stat__value small { font-size: 12px; color: var(--slate-500); font-weight: 600; }
.bh-stat__hint { font-size: 12px; color: var(--slate-500); }
.bh-stat.is-pending .bh-stat__value { color: var(--slate-400); animation: bh-pulse 1s ease-in-out infinite; }
.bh-stat.is-failed .bh-stat__value { color: var(--slate-500); }
.bh-stat__action {
    position: absolute;
    right: 12px;
    bottom: 14px;
    padding: 5px 10px;
    border: 1px solid var(--blue-200);
    border-radius: 8px;
    background: #fff;
    font: 600 12px var(--font);
    color: var(--blue-600);
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.bh-stat__action:hover { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-700); }
.bh-stat__action.is-done { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ---------- Service status ---------- */
.bh-card__title { flex: 1; min-width: 0; }
.bh-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--blue-200);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
}
.bh-card__link:hover { background: var(--blue-50); border-color: var(--blue-300); }
.bh-card__link svg { width: 15px; height: 15px; }

.bh-status-banner {
    --c: var(--slate-400);
    --bg: var(--slate-50);
    --bd: var(--slate-200);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--bd);
    border-radius: 12px;
    background: var(--bg);
    font-size: 15px;
    font-weight: 700;
    color: var(--slate-900);
}
.bh-status-banner.is-up { --c: #16a34a; --bg: #f0fdf4; --bd: #bbf7d0; color: #166534; }
.bh-status-banner.is-down { --c: #dc2626; --bg: #fef2f2; --bd: #fecaca; color: #991b1b; }
.bh-status-banner.is-maint { --c: var(--blue-600); --bg: var(--blue-50); --bd: var(--blue-200); color: var(--blue-700); }
.bh-status-banner.is-pending { color: var(--slate-600); }
.bh-status-banner .bh-status-dot { background: var(--c); width: 10px; height: 10px; }
.bh-status-banner.is-up .bh-status-dot { animation: bh-ping 2s infinite; }

.bh-status-dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-400);
}
.bh-status-dot.is-up { background: #22c55e; }
.bh-status-dot.is-down { background: #ef4444; }
.bh-status-dot.is-pending { background: #f59e0b; }
.bh-status-dot.is-maint { background: var(--blue-500); }

.bh-status-groups { display: grid; gap: 20px; }
.bh-status-group__name {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slate-500);
}
.bh-monitor {
    padding: 14px 18px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    background: var(--slate-50);
}
.bh-monitor + .bh-monitor { margin-top: 8px; }
.bh-monitor__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.bh-monitor__name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-900);
}
.bh-monitor__meta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.bh-monitor__state {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--slate-200);
    color: var(--slate-600);
}
.bh-monitor__state.is-up { background: #dcfce7; color: #166534; }
.bh-monitor__state.is-down { background: #fee2e2; color: #991b1b; }
.bh-monitor__state.is-pending { background: #fef3c7; color: #92400e; }
.bh-monitor__state.is-maint { background: var(--blue-100); color: var(--blue-700); }
.bh-monitor__uptime { font: 600 12px var(--mono); color: var(--slate-500); }

.bh-beats { display: flex; gap: 3px; height: 26px; }
.bh-beats i {
    flex: 1;
    min-width: 3px;
    border-radius: 3px;
    background: var(--slate-300);
    transition: transform .15s;
}
.bh-beats i:hover { transform: scaleY(1.15); }
.bh-beats i.is-up { background: #22c55e; }
.bh-beats i.is-down { background: #ef4444; }
.bh-beats i.is-pending { background: #f59e0b; }
.bh-beats i.is-maint { background: var(--blue-500); }

.bh-status-foot { margin-top: 14px; font-size: 12px; color: var(--slate-500); }
.bh-status-foot:empty { display: none; }

/* ---------- Footer ---------- */
.bh-footer {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: var(--slate-300);
}
.bh-footer::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    width: 640px;
    height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(37, 99, 235, .22), transparent);
    pointer-events: none;
}
.bh-footer__inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 32px;
}
.bh-footer__brand { max-width: 420px; }
.bh-footer__brand img { height: 32px; width: auto; display: block; }
.bh-footer__brand p { margin: 14px 0 0; font-size: 14px; color: var(--slate-400); }
.bh-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.bh-footer__contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--slate-300);
    transition: color .15s;
}
.bh-footer__contact a:hover { color: var(--blue-400); }
.bh-footer__contact svg { width: 18px; height: 18px; color: var(--blue-400); }
.bh-footer__bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 13px;
    color: var(--slate-500);
}
.bh-footer__bottom .bh-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
}
.bh-footer__bottom a { color: var(--slate-400); }
.bh-footer__bottom a:hover { color: var(--blue-400); }

/* ---------- Animations ---------- */
@keyframes bh-ping {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes bh-pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .bh-nav__links { display: none; }
    .bh-lang { margin-left: auto; }
    .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bh-grid > .bh-stat,
    .bh-grid > .bh-stat:nth-child(4):nth-last-child(2) { grid-column: span 1; }
    .bh-grid > .bh-stat:nth-child(5):last-child { grid-column: span 2; }
}
@media (max-width: 640px) {
    .bh-nav__inner { height: 64px; }
    .bh-nav__logo img { height: 32px; }
    .bh-nav__cta { padding: 9px 12px; }
    .bh-nav__cta span { display: none; }
    .bh-hero__content { padding-top: 40px; padding-bottom: 80px; }
    .bh-card { padding: 20px 16px; }
    .bh-grid { grid-template-columns: minmax(0, 1fr); }
    .bh-grid > .bh-stat:nth-child(5):last-child { grid-column: span 1; }
    .bh-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #statusCard .bh-card__head { flex-wrap: wrap; }
    .bh-card__link { width: 100%; justify-content: center; }
    .bh-monitor { padding: 12px 14px; }
    .bh-monitor__head { flex-wrap: wrap; }
    .bh-beats { gap: 2px; }
    .bh-beats i { min-width: 2px; }
    .bh-form__foot .bh-btn { width: 100%; margin-left: 0; }
    .bh-footer__inner { flex-direction: column; }
    .bh-footer__bottom .bh-wrap { flex-direction: column; gap: 4px; }
}
