/* BlitzKey — Gift Card Detail
   Стили под актуальную разметку gift_card_detail.html (gc-* / gd-*).
   Прежняя версия файла описывала классы gcd-* устаревшего шаблона. */

.giftcard-detail { background: var(--bg); min-height: 100vh; }

.giftcard-detail__container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.gd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-path {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--fg-3);
  min-width: 0;
}
.page-path__link { color: var(--fg-3); text-decoration: none; transition: color .14s; }
.page-path__link:hover { color: var(--fg); }
.page-path__sep { color: var(--fg-3); opacity: .5; }
.page-path__current {
  color: var(--fg-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

.gd-topbar__actions { display: flex; align-items: center; gap: 10px; }
.gd-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .14s;
}
.gd-action-btn:hover { color: var(--fg); border-color: var(--line-strong); background: var(--surface-2); }
.gd-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--blurple);
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .14s;
}
.gd-buy-btn:hover { background: var(--blurple-2); }
.gd-buy-btn__badge {
  background: rgba(255,255,255,.18);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.gc-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
.gc-layout__card { display: flex; flex-direction: column; gap: 16px; }
.gc-layout__main { min-width: 0; }

/* ── CARD VISUAL ─────────────────────────────────────────── */
.gc-card-wrap { position: relative; }
.gc-card-glow {
  position: absolute;
  inset: 12px -6px -10px;
  border-radius: 22px;
  filter: blur(28px);
  opacity: .35;
}
.gc-card-visual {
  position: relative;
  border-radius: 18px;
  aspect-ratio: 1.586; /* пропорции банковской карты */
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.gc-card-visual__location {
  align-self: flex-end;
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.gc-card-visual__location svg { width: 100%; height: 100%; display: block; }
.gc-card-visual__store {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: .92;
}
.gc-card-visual__store svg { width: 96px; height: 96px; }
.gc-card-visual__amount {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

/* ── INFO / SIDEBAR BLOCKS ───────────────────────────────── */
.gc-info,
.gd-sidebar-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 14px);
  padding: 16px;
}
.gc-info__header,
.gd-sidebar-block__header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gc-info__sku { margin-left: auto; text-transform: none; letter-spacing: 0; }
.gc-info__body { color: var(--fg-2); font-size: 13px; line-height: 1.6; }
.gc-info__body p { margin: 0 0 10px; }
.gc-info__body p:last-child { margin-bottom: 0; }

.gd-price-history { display: flex; flex-direction: column; gap: 9px; }
.gd-price-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.gd-price-history__label { color: var(--fg-3); }
.gd-price-history__val { font-family: var(--font-mono); font-weight: 600; color: var(--fg); }
.gd-price-history__val--current { color: var(--green, #4bd07f); }
.gd-price-history__val--discount { color: var(--green, #4bd07f); }

.gd-alerts__text { color: var(--fg-3); font-size: 12.5px; line-height: 1.5; margin: 0 0 12px; }
.gd-alerts__btn {
  width: 100%;
  padding: 9px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: .14s;
}
.gd-alerts__btn:hover { color: var(--fg); border-color: var(--blurple); }

/* ── HEADER ──────────────────────────────────────────────── */
.gc-header { margin-bottom: 16px; }
.gc-title { font-size: 24px; font-weight: 800; margin: 0 0 6px; line-height: 1.25; }
.gc-subtitle { color: var(--fg-3); font-size: 13px; margin: 0; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.gc-bar {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.gc-bar__left { display: flex; align-items: center; gap: 8px; }
.gc-bar__title { font-size: 13px; font-weight: 700; color: var(--fg); }
.gc-bar__count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 2px 7px;
}
.gc-bar__right { display: flex; align-items: center; gap: 8px; }

.gc-bar__dropdown { position: relative; }
.gc-bar__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg-2);
  font-family: var(--font-ui);
  font-size: 12.5px;
  cursor: pointer;
  transition: .14s;
}
.gc-bar__dropdown-toggle:hover { border-color: var(--line-strong); color: var(--fg); }
.gc-bar__dropdown-arrow { transition: transform .18s; color: var(--fg-3); }
.gc-bar__dropdown-toggle[aria-expanded="true"] .gc-bar__dropdown-arrow { transform: rotate(180deg); }

.gc-bar__dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  padding: 6px;
  display: none;
}
.gc-bar__dropdown-toggle[aria-expanded="true"] + .gc-bar__dropdown-menu { display: block; }
.gc-bar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--fg-2);
  cursor: pointer;
  transition: .12s;
}
.gc-bar__dropdown-item:hover { background: var(--surface-2); color: var(--fg); }
.gc-bar__dropdown-item--selected { background: var(--blurple-bg); color: var(--blurple-2); }
.gc-pill__flag {
  width: 16px; height: 16px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
}
.gc-pill__flag svg { width: 100%; height: 100%; display: block; }

/* ── OFFERS ──────────────────────────────────────────────── */
.gc-offers { display: flex; flex-direction: column; gap: 8px; }
.gc-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: .14s;
  cursor: pointer;
}
.gc-offer:hover { border-color: var(--line-strong); background: var(--surface-2); }
.gc-offer--featured {
  border-color: rgba(75,208,127,.4);
  background: linear-gradient(90deg, rgba(75,208,127,.08), transparent 60%);
}
.gc-offer__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gc-offer__logo { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
.gc-offer__platform-name { font-size: 13.5px; font-weight: 700; color: var(--fg); }
.gc-offer__badges { display: flex; align-items: center; gap: 6px; }
.gc-offer__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: 6px;
  padding: 3px 7px;
}
.gc-offer__badge--best { background: rgba(75,208,127,.14); color: var(--green, #4bd07f); }
.gc-offer__badge--promo { background: var(--blurple-bg); color: var(--blurple-2); }

.gc-offer__right { display: flex; align-items: center; gap: 12px; }
.gc-offer__prices { display: flex; align-items: baseline; gap: 8px; }
.gc-offer__current { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--fg); }
.gc-offer__old {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-3);
  text-decoration: line-through;
}
.gc-offer__discount {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 3px 7px;
}
.gc-offer__chevron { color: var(--fg-3); flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .gc-layout { grid-template-columns: 1fr; }
  .gc-card-wrap { max-width: 360px; }
}
@media (max-width: 640px) {
  .giftcard-detail__container { padding: 16px 16px 40px; }
  .gd-topbar__actions { width: 100%; justify-content: space-between; }
  .gc-title { font-size: 20px; }
  .gc-offer { flex-wrap: wrap; }
  .gc-offer__right { margin-left: auto; }
}
