/* ============================================================
   COMPONENTS - nav, buttons, brand, device, app screens, cards
   ============================================================ */

/* ---------------- Brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { display: grid; place-items: center; flex: none; }
.brand__mark svg { filter: drop-shadow(0 2px 10px rgba(232,199,122,0.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: var(--tracking-tight);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ---------------- Buttons ---------------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid var(--hairline-strong);
  background: var(--btn-bg);
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn i { font-size: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--gold {
  background: var(--gold-grad);
  color: var(--on-gold);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 24px 70px rgba(200,150,47,0.32); }

.btn--ghost {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--gold-400); background: rgba(232,199,122,0.06); }

.btn--lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}
/* App-store style stacked label */
.btn--lg span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn--lg span small { font-size: 0.68rem; font-weight: 500; opacity: 0.8; letter-spacing: 0.01em; }
.btn--gold.btn--lg span small { color: rgba(26,20,8,0.7); }

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease), height var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.nav .brand__sub { display: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.28rem;
  height: 2px;
  background: var(--gold-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link.is-active { color: var(--gold-200); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: 0.5rem; padding: 0.6rem 1.1rem; font-size: 0.88rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Phone / device ---------------- */
.phone {
  position: relative;
  width: min(320px, 78vw);
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a31, #121216 60%);
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.08);
}
.phone__notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #000;
  border-radius: var(--r-pill);
  z-index: 2;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #15151b, #0c0c10);
  border: 1px solid rgba(255,255,255,0.05);
}
.phone__shadow {
  position: absolute;
  left: 50%; bottom: -6%;
  transform: translateX(-50%);
  width: 70%; height: 60px;
  background: var(--gold-glow);
  filter: blur(50px);
  border-radius: 50%;
  z-index: -1;
}

/* App status bar */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 1.2rem 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text);
}
.app-statusbar__icons { display: inline-flex; gap: 4px; font-size: 0.8rem; }

/* App home screen */
.app-home { padding: 0.6rem 0.9rem 0; height: calc(100% - 38px); display: flex; flex-direction: column; }
.app-home__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.app-home__hi { display: block; font-size: 0.7rem; color: var(--text-3); }
.app-home__title { font-family: var(--font-display); font-size: 1.05rem; }
.app-home__avatar {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--gold-grad-soft);
  border: 1px solid var(--hairline);
  color: var(--gold-200);
}

.app-banner {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--r-md);
  background: var(--gold-grad);
  color: var(--on-gold);
  margin-bottom: 0.75rem;
}
.app-banner i { font-size: 1.4rem; }
.app-banner strong { display: block; font-size: 0.82rem; }
.app-banner span { font-size: 0.66rem; opacity: 0.82; line-height: 1.25; }

.app-prices { display: flex; flex-direction: column; gap: 0.5rem; }
.app-price {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name val" "name chg";
  gap: 0 0.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.app-price__name { grid-area: name; align-self: center; font-size: 0.78rem; font-weight: 600; }
.app-price__name small { display: block; font-size: 0.6rem; color: var(--text-3); font-weight: 400; }
.app-price__val { grid-area: val; font-family: var(--font-mono); font-size: 0.82rem; text-align: right; }
.app-price__chg { grid-area: chg; font-family: var(--font-mono); font-size: 0.64rem; text-align: right; display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }

.app-tabbar {
  margin-top: auto;
  display: flex; justify-content: space-around; align-items: center;
  padding: 0.7rem 0.5rem;
  font-size: 1.15rem;
  color: var(--text-3);
  border-top: 1px solid var(--hairline);
  background: rgba(0,0,0,0.25);
}
.app-tabbar .ph-fill { color: var(--gold-300); }

/* up/down semantic (used app-wide) */
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------------- Live badge ---------------- */
.live-dot {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--up);
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 0 0 rgba(63,207,142,0.5);
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(63,207,142,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(63,207,142,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,207,142,0); }
}

/* ---------------- Prices board (Canlı Fiyatlar) ---------------- */
.prices-board {
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  box-shadow: var(--shadow-md);
}
.prices-board__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.9rem; margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--hairline);
}
.prices-board__head span:first-child { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.05rem; }
.prices-board__head i { color: var(--gold-300); font-size: 1.3rem; }
.prices-board__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid var(--hairline);
}
.prices-board__row:last-of-type { border-bottom: none; }
.pb__name { font-weight: 600; font-size: 0.95rem; }
.pb__name small { display: block; font-size: 0.72rem; color: var(--text-3); font-weight: 400; }
.pb__val { font-family: var(--font-mono); font-size: 1rem; text-align: right; }
.pb__chg {
  font-family: var(--font-mono); font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.25rem; justify-content: flex-end;
  padding: 0.25rem 0.55rem; border-radius: var(--r-pill);
}
.pb__chg.up { background: var(--up-bg); }
.pb__chg.down { background: var(--down-bg); }

/* Neutral state: live data loaded but no prior snapshot to compare yet */
.app-price__chg.flat, .pb__chg.flat { color: var(--text-3); background: rgba(255, 255, 255, 0.05); }
.app-price__chg.flat i, .pb__chg.flat i { display: none; }
.prices-board__note { margin-top: 0.9rem; font-size: 0.72rem; color: var(--text-3); }

/* ---------------- Feature list ---------------- */
.feature-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.8rem; }
.feature-list li {
  display: flex; align-items: center; gap: 0.85rem;
  font-size: 1.02rem; color: var(--text);
}
.feature-list i {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--gold-grad-soft);
  border: 1px solid var(--hairline);
  color: var(--gold-300);
  font-size: 1.25rem;
}

/* ---------------- Source chips / tags (news) ---------------- */
.source-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--text-2); }
.source-chip__mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--gold-grad);
  color: var(--on-gold);
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.72rem;
}
.source-tag {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--text-2);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.source-tag:hover { border-color: var(--gold-400); color: var(--text); transform: translateY(-2px); }

/* ---------------- Generic card surface ---------------- */
.card-surface {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

/* ---------------- Icon actions (stores) ---------------- */
.icon-action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500; color: var(--text-2);
  padding: 0.5rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.icon-action i { color: var(--gold-300); font-size: 1.05rem; }
.icon-action:hover { color: var(--text); border-color: var(--gold-400); background: rgba(232,199,122,0.06); }

/* ---------------- Converter ---------------- */
.converter {
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--hairline);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow-md);
}
.converter__field label { display: block; font-size: 0.78rem; color: var(--text-3); margin-bottom: 0.5rem; font-family: var(--font-mono); }
.converter__input { display: flex; gap: 0.6rem; }
.converter__input input {
  flex: 1; min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  font-family: var(--font-mono); font-size: 1.15rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.converter__input input:focus { outline: none; border-color: var(--gold-400); box-shadow: var(--ring-gold); }
.converter__input select {
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--hairline-strong);
  font-weight: 600;
  cursor: pointer;
}
.converter__swap {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin: 0.9rem auto;
  border-radius: var(--r-pill);
  background: var(--gold-grad-soft);
  border: 1px solid var(--hairline-strong);
  color: var(--gold-300);
  font-size: 1.2rem;
  transition: transform var(--dur) var(--ease);
}
.converter__swap:hover { transform: rotate(180deg); }
.converter__results { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.converter__result {
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.converter__result span { display: block; font-size: 0.72rem; color: var(--text-3); margin-bottom: 0.25rem; }
.converter__result b { font-family: var(--font-mono); font-size: 1.05rem; }
.converter__result--major {
  grid-column: 1 / -1;
  background: var(--gold-grad);
  border-color: transparent;
}
.converter__result--major span { color: rgba(26,20,8,0.7); }
.converter__result--major b { color: var(--on-gold); font-size: 1.35rem; }
.converter__note { margin-top: 1rem; font-size: 0.72rem; color: var(--text-3); }

/* ---------------- Notifications ---------------- */
.notif-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.notif {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.notif__icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  font-size: 1.3rem;
}
.notif__icon--brief { background: var(--gold-grad-soft); color: var(--gold-300); }
.notif__icon--alarm { background: var(--up-bg); color: var(--up); }
.notif__icon--promo { background: var(--gold-grad); color: var(--on-gold); }
.notif__icon--info { background: rgba(255,255,255,0.05); color: var(--text-2); }
.notif__body { flex: 1; min-width: 0; }
.notif__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.notif__top strong { font-size: 0.95rem; }
.notif__top time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); flex: none; }
.notif__body p { font-size: 0.86rem; color: var(--text-2); margin-top: 0.2rem; line-height: 1.4; }
