/* ============================================================
   Halkbank Template - Placeholder styling
   Brand assets (logo, background image) upload edilecek:
   - /assets/logo.svg
   - /assets/bg.jpg
   ============================================================ */

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

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #fff;
  min-height: 100vh;
  background: #1B4F72;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ---------- BACKGROUND ---------- */
.hb-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      #A9CCE3 0%,
      #7FB3D5 22%,
      #5DADE2 45%,
      #3498DB 62%,
      #2874A6 82%,
      #1B4F72 100%);
  overflow: hidden;
}
.hb-bg::before {
  /* Yatay ufuk cizgisi + kaya silueti (SVG dataURI) */
  content: '';
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 45%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'><defs><linearGradient id='w' x1='0' x2='0' y1='0' y2='1'><stop offset='0' stop-color='%232C7DA0'/><stop offset='1' stop-color='%23133C55'/></linearGradient></defs><path fill='url(%23w)' d='M0,80 Q50,60 100,70 T200,72 Q250,55 300,68 T400,70 L400,200 L0,200 Z'/><path fill='%23214761' opacity='0.65' d='M0,120 Q40,105 90,115 Q140,100 190,118 Q240,105 290,120 Q340,108 400,118 L400,200 L0,200 Z'/><path fill='%230F2A3F' opacity='0.55' d='M50,140 Q80,132 110,138 L120,145 L135,138 L150,150 L170,145 L190,155 L215,150 L240,158 L265,152 L285,160 L310,155 L340,162 L370,158 L400,165 L400,200 L50,200 Z'/></svg>");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom;
}

/* ---------- STATUS BAR ---------- */
.hb-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  height: 44px;
}
.hb-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.hb-status-icon {
  display: inline-block;
  width: 16px; height: 11px;
  fill: #fff;
}
.hb-battery {
  display: inline-flex;
  align-items: center;
  border: 1.2px solid #fff;
  border-radius: 3px;
  padding: 1px;
  width: 24px; height: 12px;
  position: relative;
  margin-left: 3px;
}
.hb-battery::after {
  content: '';
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: #fff;
  border-radius: 0 1px 1px 0;
}
.hb-battery-fill {
  height: 100%;
  background: #E74C3C;
  border-radius: 1px;
  width: 20%;
}

/* ---------- HEADER ---------- */
.hb-header {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 8px 18px 12px;
  gap: 12px;
}
.hb-back {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 22px;
  padding: 6px;
  cursor: pointer;
  line-height: 1;
}
.hb-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #fff;
}
.hb-brand-logo {
  height: 26px;
  display: block;
}
.hb-brand-fallback {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 16px;
  color: #fff;
}
.hb-header-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hb-bell {
  width: 22px; height: 22px;
  color: #fff;
}
.hb-lang {
  border: 1px solid rgba(255,255,255,0.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: transparent;
  font-weight: 600;
}
.hb-page-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-top: 2px;
}

/* ---------- MAIN CONTENT ---------- */
.hb-main {
  flex: 1;
  padding: 20px 22px 100px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* ---------- TABS ---------- */
.hb-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0 22px;
}
.hb-tab {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 6px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.hb-tab.active {
  color: #fff;
  border-bottom-color: #fff;
  font-weight: 600;
}

/* ---------- FORM ---------- */
.hb-form { display: flex; flex-direction: column; gap: 10px; }
.hb-field {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 6px;
  padding: 12px 14px;
}
.hb-field:focus-within { border-color: #fff; }
.hb-field-label {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 12.5px;
  margin-bottom: 3px;
}
.hb-field input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0;
}
.hb-field input::placeholder {
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.hb-alt-link {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  margin: 8px 4px 20px;
  display: inline-block;
  cursor: pointer;
}
.hb-alt-link:hover { text-decoration: underline; }

.hb-cta {
  width: 100%;
  background: #fff;
  color: #1B4F72;
  border: 0;
  padding: 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}
.hb-cta:hover { background: #f4f6f8; }
.hb-cta:disabled { opacity: 0.7; cursor: default; }

.hb-cta-bottom {
  color: #fff;
  font-size: 12px;
  text-align: right;
  margin-top: 14px;
  opacity: 0.9;
}

.hb-error {
  color: #ffb1b1;
  background: rgba(200, 30, 30, 0.15);
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12.5px;
  margin: 4px 0 0;
  min-height: 12px;
}

/* ---------- LOADING SPINNER (buton icinde ve orta) ---------- */
.hb-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(27, 79, 114, 0.25);
  border-top-color: #1B4F72;
  border-radius: 50%;
  animation: hb-spin 0.8s linear infinite;
}
.hb-cta .hb-spinner {
  border-color: rgba(27, 79, 114, 0.2);
  border-top-color: #1B4F72;
}
.hb-center-spinner {
  width: 56px; height: 56px;
  border: 4px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hb-spin 0.85s linear infinite;
  margin: 20px auto;
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* ---------- SMS ekran ---------- */
.hb-sms-note {
  color: #fff;
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
  margin: 8px 20px 24px;
}
.hb-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px; height: 90px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  margin: 0 auto 26px;
  flex-direction: column;
  font-weight: 700;
  color: #fff;
}
.hb-countdown-value { font-size: 16px; }
.hb-countdown-label { font-size: 10px; opacity: 0.75; letter-spacing: 0.5px; }
.hb-resend {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  margin: 14px 0;
  cursor: pointer;
}

/* ---------- PUSH BEKLE ---------- */
.hb-push-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 6px;
}
.hb-push-sub {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0 20px 28px;
  line-height: 1.5;
}
.hb-push-mockup {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 16px;
  margin: 6px auto 22px;
  max-width: 300px;
  text-align: center;
}
.hb-push-mockup-h {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.hb-push-mockup-body {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin-bottom: 14px;
}
.hb-push-mockup-btns {
  display: flex;
  gap: 8px;
}
.hb-push-mockup-btn {
  flex: 1;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
}
.hb-push-mockup-btn.reddet {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}
.hb-push-mockup-btn.onayla {
  background: #fff;
  color: #1B4F72;
}
.hb-push-steps {
  margin: 0 auto 20px;
  max-width: 320px;
  counter-reset: step;
  padding-left: 0;
  list-style: none;
}
.hb-push-steps li {
  counter-increment: step;
  color: #fff;
  font-size: 13.5px;
  padding: 8px 0 8px 34px;
  position: relative;
  line-height: 1.4;
}
.hb-push-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 5px;
  width: 24px; height: 24px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.hb-push-status {
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  margin-top: 10px;
}

/* ---------- SUCCESS / FAIL ---------- */
.hb-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  padding: 40px 20px;
  text-align: center;
}
.hb-result-icon {
  width: 82px; height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.hb-result-icon.ok { background: rgba(46, 204, 113, 0.85); }
.hb-result-icon.err { background: rgba(231, 76, 60, 0.85); }
.hb-result-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.hb-result-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 320px;
  line-height: 1.5;
}

/* ---------- BOTTOM NAV ---------- */
.hb-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 10px 4px 20px;
  height: 76px;
  z-index: 5;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.hb-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #34495E;
  font-size: 10.5px;
  font-weight: 500;
  flex: 1;
  text-align: center;
  cursor: default;
  user-select: none;
  padding: 2px 0;
}
.hb-nav-item svg {
  width: 22px; height: 22px;
  fill: #34495E;
}
.hb-nav-item.center {
  position: relative;
  margin-top: -26px;
}
.hb-nav-center-fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(180deg, #F5A623, #E67E22);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}
.hb-nav-center-fab svg { width: 26px; height: 26px; fill: #fff; }
.hb-nav-item.center .hb-nav-label { margin-top: 6px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 380px) {
  .hb-tabs { gap: 28px; }
  .hb-main { padding: 16px 18px 100px; }
  .hb-bottom { height: 72px; padding: 8px 4px 18px; }
  .hb-nav-item { font-size: 9.5px; }
}
