﻿/* Hepsibank v5 design (spec: docs/superpowers/specs/2026-09-17-hepsibank-v5-design.md).
   Framework-free. Everything is scoped to hb-* classes except the base rules
   in section 1, which SiteAdmin.Master also loads (hepsibank-admin.css
   overrides body there). */

/* --- 0. Tokens --- */
:root {
    --hb-ink: #1F1F1F;
    --hb-strong: #000000;
    --hb-muted: #757575;
    --hb-orange: #FE6100;
    --hb-rule: #E4E4E4;
    --hb-page: #FFFFFF;
    --hb-hover: #F7F7F7;
    --hb-line: #D4D4D4;
    --hb-wrap: 1440px;
    --hb-pad: 150px;
}

/* --- 1. Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--hb-page); }
body {
    margin: 0;
    padding: 0;
    background: var(--hb-page);
    color: var(--hb-ink);
    font: 16px/24px Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
/* Sticky footer: the form is the page column. */
body > form { display: flex; flex-direction: column; min-height: 100vh; }
.hb-main { flex: 1 0 auto; }
.hb-wrap {
    width: 100%;
    max-width: var(--hb-wrap);
    margin: 0 auto;
    padding-left: var(--hb-pad);
    padding-right: var(--hb-pad);
}
a:focus-visible, button:focus-visible, input:focus-visible, label:focus-visible {
    outline: 2px solid var(--hb-orange);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- 2. Header --- */
.hb-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--hb-page);
    border-bottom: 1px solid var(--hb-rule);
}
.hb-utility { background: var(--hb-hover); border-bottom: 1px solid var(--hb-rule); }
.hb-utility-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding-top: 11px;
    padding-bottom: 11px;
}
.hb-utility-links { display: flex; gap: 28px; }
.hb-utility-links a { display: inline-flex; align-items: center; gap: 6px; }
.hb-utility-icon { display: block; width: 15px; height: 18px; flex: none; }
.hb-utility a { color: var(--hb-muted); text-decoration: none; font-size: 14px; line-height: 18px; }
.hb-utility a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-utility-search { display: block; width: 15px; height: 15px; flex: none; }
.hb-utility-search svg { display: block; width: 15px; height: 15px; }
.hb-utility-sep { width: 1px; height: 14px; background: var(--hb-line); flex: none; }
.hb-lang { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 18px; }
.hb-lang b { color: var(--hb-orange); font-weight: 700; }
.hb-lang-dot { color: var(--hb-ink); font-weight: 700; }
.hb-lang a { color: var(--hb-muted); text-decoration: none; }
.hb-lang a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 36px;
    padding-bottom: 36px;
}
.hb-logo { display: block; line-height: 0; text-decoration: none; }
.hb-logo img { display: block; width: 160px; height: 33px; }
.hb-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.hb-nav a {
    display: inline-block;
    color: var(--hb-ink);
    text-decoration: none;
    font-size: 16px;
    line-height: 20px;
    padding-bottom: 4px;
}
.hb-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--hb-orange); }
.hb-nav a[aria-current="page"]:hover { text-decoration: none; }

.hb-mobtools { display: none; align-items: center; gap: 18px; }
.hb-mobsearch { display: block; color: var(--hb-ink); line-height: 0; }
.hb-mobsearch svg { display: block; width: 18px; height: 18px; }
.hb-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 6px 0;
    cursor: pointer;
}
.hb-burger span { display: block; width: 22px; height: 1.5px; background: var(--hb-ink); }

/* --- 3. Mobile overlay --- */
.hb-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: var(--hb-page);
    overflow-y: auto;
}
.hb-overlay[hidden] { display: none; }
.hb-overlay-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--hb-rule);
}
.hb-overlay-bar .hb-logo img { width: 130px; height: 27px; }
.hb-close { position: relative; width: 26px; height: 26px; background: none; border: 0; padding: 0; cursor: pointer; }
.hb-close::before, .hb-close::after {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 22px;
    height: 1.5px;
    background: var(--hb-ink);
}
.hb-close::before { transform: rotate(45deg); }
.hb-close::after { transform: rotate(-45deg); }
.hb-overlay-nav a {
    display: block;
    padding: 20px 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--hb-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--hb-rule);
}
.hb-overlay-sub { padding-top: 32px; }
.hb-overlay-head { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--hb-muted); margin: 0 0 10px; }
.hb-overlay-head:not(:first-child) { margin-top: 24px; }
.hb-overlay-sub a { display: block; color: var(--hb-ink); text-decoration: none; font-size: 16px; line-height: 20px; margin-bottom: 10px; }
.hb-overlay-sub a .hb-utility-icon { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.hb-overlay-lang { padding-top: 32px; padding-bottom: 32px; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.hb-overlay-lang b { color: var(--hb-orange); }
.hb-overlay-lang a { color: var(--hb-muted); text-decoration: none; }

/* --- 4. Homepage hero --- */
.hb-hero { padding-top: 50px; padding-bottom: 50px; }
.hb-hero-row { display: flex; align-items: center; gap: 80px; }
.hb-hero-text { width: 620px; flex: none; }
.hb-hero h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -.03em;
    font-weight: 700;
    color: var(--hb-strong);
    margin: 0;
}
.hb-hero p { font-size: 20px; line-height: 24px; margin: 16px 0 0; color: var(--hb-strong); }
.hb-hero-fig { flex: 1; display: flex; justify-content: flex-start; }
.hb-hero-art { display: block; max-width: 100%; height: auto; }

/* --- 5. Inner pages --- */
.hb-inner { padding-top: 64px; padding-bottom: 110px; }
.hb-inner h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -.03em;
    font-weight: 700;
    color: var(--hb-strong);
    margin: 0;
}
.hb-inner .hb-lede { margin: 28px 0 0; max-width: 766px; }
.hb-inner p { max-width: 766px; }
.hb-inner h2 { font-size: 20px; line-height: 28px; font-weight: 600; margin: 48px 0 16px; }
.hb-inner h3 { font-size: 18px; line-height: 26px; font-weight: 600; margin: 36px 0 14px; }
.hb-stack > p { margin: 0 0 16px; }
.hb-stack > p:last-child { margin-bottom: 0; }
.hb-inner p a, .hb-inner li a, .hb-link { color: var(--hb-orange); text-decoration: none; }
.hb-inner p a:hover, .hb-inner li a:hover, .hb-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-note { font-size: 14px; line-height: 18px; color: var(--hb-muted); max-width: 892px; }
.hb-inner ul.hb-plain { list-style: none; padding-left: 24px; margin: 14px 0 0; max-width: 766px; }
.hb-plain li { margin-bottom: 10px; }

/* --- 6. Document list (CmsDocumentLister) --- */
.hb-docs { max-width: 860px; margin-top: 36px; }
.hb-doc {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--hb-rule);
    text-decoration: none;
    color: var(--hb-ink);
}
.hb-doc:last-child { border-bottom: 1px solid var(--hb-rule); }
.hb-doc:hover .hb-doc-title { text-decoration: underline; text-underline-offset: 3px; }
.hb-doc-title { flex: 1; }
.hb-doc-date { color: var(--hb-muted); font-size: 14px; line-height: 18px; white-space: nowrap; padding-top: 3px; }
.hb-docs-empty {
    max-width: 860px;
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid var(--hb-rule);
    border-bottom: 1px solid var(--hb-rule);
    color: var(--hb-muted);
    font-size: 14px;
    line-height: 18px;
}
/* A list under its own h2 (archive page) sits on the heading's margin. */
.hb-inner h2 + .hb-docs-block .hb-docs,
.hb-inner h2 + .hb-docs-block .hb-docs-empty { margin-top: 0; }

/* --- 7. Year tabs (financial reports) --- */
.hb-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.hb-tabs a { font-size: 16px; line-height: 20px; padding: 0 0 6px; color: var(--hb-muted); text-decoration: none; }
.hb-tabs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-tabs a[aria-current="page"] { color: var(--hb-ink); box-shadow: inset 0 -2px 0 var(--hb-orange); }
.hb-tabs a[aria-current="page"]:hover { text-decoration: none; }

/* --- 8. Contact --- */
.hb-blocks { display: flex; gap: 40px; margin-top: 44px; align-items: flex-start; }
.hb-blocks section { flex: 1; }
.hb-blocks h2 { font-size: 18px; line-height: 26px; font-weight: 600; margin: 0 0 20px; }
.hb-field { margin-bottom: 18px; }
.hb-field-k { font-size: 12px; line-height: 16px; letter-spacing: .06em; color: var(--hb-muted); }
.hb-field-v { margin-top: 4px; }
.hb-blocks .hb-note { margin: 20px 0 0; }

/* --- 9. Tables (cookie policy) --- */
.hb-inner table { border-collapse: collapse; width: 100%; max-width: 860px; margin-top: 24px; }
.hb-inner th {
    text-align: left;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .06em;
    color: var(--hb-muted);
    font-weight: 400;
    padding: 0 24px 10px 0;
    vertical-align: top;
}
.hb-inner th:first-child { width: 180px; }
.hb-inner td { padding: 14px 24px 14px 0; border-top: 1px solid var(--hb-rule); vertical-align: top; }
.hb-inner tbody tr:last-child td { border-bottom: 1px solid var(--hb-rule); }

/* --- 10. Cookie level chooser (cookie policy page) --- */
.hb-consent-panel { max-width: 860px; margin-top: 32px; }
.hb-consent-panel h2 { margin-top: 0; }
.hb-consent-panel p { max-width: 860px; }
.hb-level {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 0;
    margin: 0;
    border-top: 1px solid var(--hb-rule);
    cursor: pointer;
}
.hb-level:last-of-type { border-bottom: 1px solid var(--hb-rule); }
.hb-level:hover { background: var(--hb-hover); padding-left: 12px; padding-right: 12px; }
.hb-level input { margin: 5px 0 0; accent-color: var(--hb-orange); }
.hb-chosen { margin-top: 16px; font-size: 14px; line-height: 18px; color: var(--hb-muted); }

/* --- 11. Search (UI only) --- */
.hb-search { padding-top: 40px; }
.hb-sfield {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 860px;
    padding: 9px 0;
    border-bottom: 1px solid var(--hb-line);
    color: var(--hb-muted);
}
.hb-sfield svg { display: block; width: 15px; height: 15px; flex: none; }
.hb-sfield input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: none;
    padding: 0;
    font: 600 20px/28px Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--hb-ink);
}
.hb-sfield input::placeholder { color: var(--hb-muted); font-weight: 600; }
.hb-sfield input:focus-visible { outline: none; }
.hb-scount { margin-top: 28px; font-size: 14px; line-height: 18px; color: var(--hb-muted); }
.hb-search .hb-note { margin-top: 24px; }

/* --- 12. Footer --- */
.hb-footer { border-top: 1px solid var(--hb-rule); padding-top: 50px; padding-bottom: 32px; background: var(--hb-page); }
.hb-fcols { display: grid; grid-template-columns: 340px 180px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.hb-fcols > div { min-width: 0; overflow-wrap: anywhere; }
.hb-fhead { font-size: 14px; line-height: 18px; font-weight: 600; margin: 0 0 12px; color: var(--hb-ink); }
.hb-fid p { font-size: 14px; line-height: 18px; color: var(--hb-muted); margin: 0 0 6px; }
.hb-fcols ul { list-style: none; margin: 0; padding: 0; }
.hb-fcols li { margin-bottom: 6px; }
.hb-fcols a { color: var(--hb-ink); text-decoration: none; font-size: 16px; line-height: 20px; }
.hb-fcols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-fbottom { display: flex; justify-content: space-between; gap: 40px; margin-top: 30px; }
.hb-copy { color: var(--hb-muted); font-size: 14px; line-height: 18px; }

/* --- 13. Cookie consent bar ---
   Own design on the v5 tokens: a bottom bar, shown by Site.Master until a
   consent cookie exists. Sits under the mobile overlay (z 50). */
.hb-consent {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--hb-page);
    border-top: 1px solid var(--hb-rule);
}
.hb-consent.is-open { display: block; }
.hb-consent-inner { position: relative; display: flex; align-items: flex-start; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.hb-consent-text { flex: 1; font-size: 14px; line-height: 20px; color: var(--hb-ink); }
.hb-consent-text p { margin: 0; }
.hb-consent-title { font-weight: 600; margin-bottom: 4px !important; }
.hb-consent-text a { color: var(--hb-orange); text-decoration: none; }
.hb-consent-text a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; align-self: center; }
.hb-btn {
    font: inherit;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 16px;
    border: 1px solid var(--hb-ink);
    background: var(--hb-page);
    color: var(--hb-ink);
    cursor: pointer;
}
.hb-btn:hover { background: var(--hb-hover); }
.hb-btn-primary { background: var(--hb-orange); border-color: var(--hb-orange); color: #fff; }
.hb-btn-primary:hover { background: #E55700; border-color: #E55700; }
.hb-consent-close { position: relative; width: 22px; height: 22px; flex: none; background: none; border: 0; padding: 0; cursor: pointer; align-self: center; }
.hb-consent-close::before, .hb-consent-close::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 10px;
    width: 20px;
    height: 1.5px;
    background: var(--hb-ink);
}
.hb-consent-close::before { transform: rotate(45deg); }
.hb-consent-close::after { transform: rotate(-45deg); }

/* --- 14. Indicative rates strip (Helpers/MarketRates.ascx; hidden for now) --- */
.hb-rates { display: flex; align-items: stretch; border-top: 1px solid var(--hb-rule); border-bottom: 1px solid var(--hb-rule); }
.hb-rates-label { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 26px 22px 0; min-width: 230px; border-right: 1px solid var(--hb-rule); }
.hb-rates-title { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-ink); }
.hb-rates-stamp { font-size: 12px; line-height: 16px; color: var(--hb-muted); }
.hb-rate { display: flex; flex-direction: column; gap: 6px; padding: 22px 30px; border-right: 1px solid var(--hb-rule); flex: 1; }
.hb-rate-pair { font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--hb-muted); }
.hb-rate-value { font-size: 22px; line-height: 28px; font-weight: 600; color: var(--hb-ink); }
.hb-rate-value a { color: var(--hb-ink); text-decoration: none; }
.hb-rate-value a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hb-rates-foot { display: flex; align-items: center; padding: 22px 0 22px 26px; max-width: 230px; }
.hb-rates-foot span { font-size: 12px; line-height: 16px; color: var(--hb-muted); }

/* --- 15. Breakpoints --- */
@media (max-width: 1439px) {
    :root { --hb-pad: 64px; }
}
@media (max-width: 1023px) {
    :root { --hb-pad: 40px; }
    .hb-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
    .hb-rates { flex-wrap: wrap; }
}
@media (max-width: 820px) {
    :root { --hb-pad: 20px; }
    .hb-bar { padding-top: 18px; padding-bottom: 18px; }
    .hb-logo img { width: 130px; height: 27px; }
    .hb-nav { display: none; }
    .hb-utility { display: none; }
    .hb-mobtools { display: flex; }

    .hb-hero { padding-top: 32px; padding-bottom: 56px; }
    .hb-hero-row { display: block; }
    .hb-hero-text { width: auto; }
    .hb-hero-fig { display: block; margin-top: 40px; }
    .hb-hero-art { width: 100%; max-width: 440px; }
    .hb-hero h1 { font-size: 30px; line-height: 36px; letter-spacing: -.025em; }
    .hb-hero p { font-size: 16px; line-height: 24px; }

    .hb-inner { padding-top: 40px; padding-bottom: 64px; }
    .hb-inner h1 { font-size: 26px; line-height: 32px; letter-spacing: -.025em; }
    .hb-inner .hb-lede { margin-top: 24px; }
    .hb-inner p, .hb-stack > p { max-width: none; }
    .hb-inner h2 { font-size: 18px; line-height: 24px; margin-top: 40px; }
    .hb-inner h3 { font-size: 18px; line-height: 24px; }
    .hb-inner ul.hb-plain { padding-left: 16px; }

    .hb-docs, .hb-docs-empty { max-width: none; margin-top: 28px; }
    .hb-doc { flex-direction: column; align-items: stretch; gap: 6px; padding: 16px 0; }
    .hb-doc-date { padding-top: 0; }
    .hb-tabs { gap: 18px; }
    .hb-tabs a { font-size: 14px; line-height: 18px; }

    /* Stacked sections span the column, so the rules between them run edge to edge. */
    .hb-blocks { flex-direction: column; align-items: stretch; gap: 0; margin-top: 32px; }
    .hb-blocks section + section { border-top: 1px solid var(--hb-rule); padding-top: 28px; margin-top: 20px; }
    .hb-blocks h2 { font-size: 18px; line-height: 24px; }

    .hb-consent-panel { max-width: none; }

    /* Tables become label/value cards. */
    .hb-inner table { max-width: none; }
    .hb-inner thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .hb-inner table, .hb-inner tbody, .hb-inner tr, .hb-inner td { display: block; width: auto; }
    .hb-inner tr { border-top: 1px solid var(--hb-rule); padding: 16px 0; }
    .hb-inner tbody tr:last-child { border-bottom: 1px solid var(--hb-rule); }
    .hb-inner td, .hb-inner tbody tr:last-child td { border: 0; padding: 0 0 12px; }
    .hb-inner tr td:last-child { padding-bottom: 0; }
    .hb-inner td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        line-height: 16px;
        letter-spacing: .06em;
        color: var(--hb-muted);
        margin-bottom: 3px;
    }

    .hb-fcols { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
    .hb-fbottom { flex-direction: column; gap: 16px; margin-top: 30px; }
    .hb-footer { padding-top: 40px; padding-bottom: 32px; }

    .hb-consent-inner { flex-direction: column; gap: 16px; align-items: stretch; }
    .hb-consent-actions { width: 100%; align-self: auto; }
    .hb-btn { flex: 1 1 auto; }
    .hb-consent-close { position: absolute; right: var(--hb-pad); top: 20px; }
    .hb-consent-text { padding-right: 34px; }

    .hb-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .hb-rates-label, .hb-rate, .hb-rates-foot { border-right: 0; min-width: 0; max-width: none; padding: 14px 0; }
    .hb-rates-label { grid-column: 1 / -1; }
}
