/* =============================================================================
   PoE 77 — Official Vanilla Path of Exile 2 Trade Aesthetic
   Zero rounded corners, zero glows, zero gradients, strictly PoE2 palette.
   ============================================================================= */

@font-face {
  font-family: 'FontinSmallCaps';
  src: url('fonts/Fontin-SmallCaps.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fontin';
  src: url('fonts/Fontin-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fontin';
  src: url('fonts/Fontin-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-caps: 'FontinSmallCaps', Verdana, Arial, Helvetica, sans-serif;
  --font-body: 'Fontin', Verdana, Arial, Helvetica, sans-serif;

  /* Exact Vanilla PoE 2 Trade Palette */
  --bg-page: #060605;
  --bg-bar: #0d0d0a;
  --bg-panel: #0d0d0a;
  --bg-body: #111214;
  --bg-tile: #1e2124;
  --bg-tile-hover: #272b30;

  --border-seam: #1b1914;
  --border-black: #000000;

  --navy: #0f304d;
  --navy-hover: #164268;
  --amber: #5a3806;
  --amber-hover: #6e4508;

  --cream: #e9cf9f;
  --text: #e2e2e2;
  --muted: #a38d6d;
  --dim: #7c6f5b;
  --gold: #ffd700;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

html {
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--cream);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

/* -----------------------------------------------------------------------------
   Top Navigation Bar (Mirrors Vanilla PoE 2 Trade Header Strip)
   ----------------------------------------------------------------------------- */
.trade-topbar {
  background: var(--bg-bar);
  border-bottom: 1px solid var(--border-seam);
  position: sticky;
  top: 0;
  z-index: 100;
}

.trade-topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 44px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-caps);
  font-size: 13px;
}

.studio-link {
  color: var(--muted);
  letter-spacing: 0.4px;
}

.studio-link:hover {
  color: var(--cream);
}

.topbar-sep {
  color: #3a342a;
}

.product-mark {
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.5px;
}

.trade-nav-tabs {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: 2px;
}

.trade-nav-tabs a {
  display: flex;
  align-items: center;
  padding: 0 15px;
  height: 100%;
  font-family: var(--font-caps);
  font-size: 13.5px;
  color: var(--cream);
  background: transparent;
  border-bottom: 2px solid transparent;
  transition: background 0.12s ease, color 0.12s ease;
}

.trade-nav-tabs a:hover {
  background: var(--bg-tile);
  color: #ffffff;
}

.trade-nav-tabs a.is-active {
  background: var(--navy);
  color: #ffffff;
  border-bottom-color: #296396;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-caps);
  font-size: 12.5px;
}

.topbar-right a {
  color: var(--muted);
}

.topbar-right a:hover {
  color: var(--cream);
}

/* -----------------------------------------------------------------------------
   Main Shell
   ----------------------------------------------------------------------------- */
.page-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* -----------------------------------------------------------------------------
   Hero Band — Direct, Understated, Zero Marketing Fluff
   ----------------------------------------------------------------------------- */
.hero-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-seam);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}

.hero-kicker {
  font-family: var(--font-caps);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-caps);
  font-size: 32px;
  font-weight: normal;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.hero-lead {
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 18px;
}

.hero-meta {
  font-family: var(--font-caps);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 240px;
}

/* Vanilla PoE 2 Buttons */
.poe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border-black);
  outline: none;
  font-family: var(--font-caps);
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease;
}

.poe-btn-navy {
  background: var(--navy);
  color: var(--text);
}

.poe-btn-navy:hover {
  background: var(--navy-hover);
  color: #ffffff;
}

.poe-btn-amber {
  background: var(--amber);
  color: var(--cream);
}

.poe-btn-amber:hover {
  background: var(--amber-hover);
  color: var(--gold);
}

.poe-btn-tile {
  background: var(--bg-tile);
  color: var(--cream);
}

.poe-btn-tile:hover {
  background: var(--bg-tile-hover);
  color: #ffffff;
}

.poe-btn .btn-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.poe-btn-amber .btn-price {
  color: var(--gold);
}

/* -----------------------------------------------------------------------------
   Screenshot Showcase (Real Extension Views — Tabbed Vanilla Bar)
   ----------------------------------------------------------------------------- */
.showcase-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-seam);
}

.showcase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #090906;
  border-bottom: 1px solid var(--border-seam);
  padding: 0 12px;
  flex-wrap: wrap;
}

.showcase-tabs {
  display: flex;
  gap: 2px;
}

.showcase-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-caps);
  font-size: 13px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.showcase-tab:hover {
  background: var(--bg-tile);
  color: var(--cream);
}

.showcase-tab.is-active {
  background: var(--navy);
  color: #ffffff;
  border-bottom-color: #296396;
}

.showcase-hint {
  font-family: var(--font-caps);
  font-size: 11.5px;
  color: var(--dim);
  padding: 6px 4px;
}

.showcase-frame {
  background: #000000;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border-seam);
}

.showcase-caption {
  padding: 11px 16px;
  background: var(--bg-bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.showcase-caption strong {
  font-family: var(--font-caps);
  font-weight: normal;
  color: var(--cream);
  margin-right: 6px;
}

/* -----------------------------------------------------------------------------
   Vanilla PoE 2 Filter-Group Panels (Matches /trade2/settings & /trade2/about)
   ----------------------------------------------------------------------------- */
.section-heading {
  font-family: var(--font-caps);
  font-size: 16px;
  color: var(--cream);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.filter-group {
  background: var(--bg-panel);
  border: 1px solid var(--border-seam);
}

.filter-group-header {
  background: #090906;
  border-bottom: 1px solid var(--border-seam);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-caps);
  font-size: 13.5px;
  color: var(--cream);
  letter-spacing: 0.4px;
}

.filter-group-header .header-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  background: var(--bg-tile);
  color: var(--muted);
}

.filter-group-header .header-tag.is-amber {
  background: var(--amber);
  color: var(--gold);
}

.filter-group-body {
  display: flex;
  flex-direction: column;
}

.filter-row {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #161613;
  background: var(--bg-body);
  align-items: baseline;
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-row:nth-child(even) {
  background: #0e0f11;
}

.filter-row-label {
  font-family: var(--font-caps);
  font-size: 13px;
  color: var(--cream);
  letter-spacing: 0.2px;
}

.filter-row-desc {
  font-size: 13.5px;
  color: #c8c4bc;
  line-height: 1.48;
}

/* -----------------------------------------------------------------------------
   Pricing / Supporter Panel (Matches Approved V2 Navy & Amber Split Card)
   ----------------------------------------------------------------------------- */
.tier-panel-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-panel);
}

.tier-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.tier-spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tier-spec-list li {
  background: var(--bg-body);
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tier-spec-list li span:last-child {
  font-family: var(--font-caps);
  color: var(--cream);
  white-space: nowrap;
}

.tier-spec-list li.is-highlight span:last-child {
  color: var(--gold);
}

/* Exact V2 Payment Buttons */
.store-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.store-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  font-family: var(--font-caps);
  font-size: 11.5px;
  color: var(--muted);
}

.store-or-divider::before,
.store-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-seam);
}

.store-btn {
  width: 100%;
  background: var(--bg-tile);
  border: none;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-caps);
  transition: background 0.12s ease;
}

.store-btn:hover {
  background: var(--bg-tile-hover);
}

.store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.store-copy {
  flex: 1;
  min-width: 0;
}

.store-title {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.store-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.store-price {
  font-size: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.delivery-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-body);
  border-left: 2px solid var(--navy);
}

.delivery-note strong {
  color: var(--cream);
  font-weight: normal;
  font-family: var(--font-caps);
}

.legal-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-caps);
  font-size: 12px;
  color: var(--muted);
  padding-top: 2px;
}

.legal-inline a {
  color: var(--muted);
}

.legal-inline a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   FAQ / About-Style Panel
   ----------------------------------------------------------------------------- */
.about-prose {
  padding: 18px 20px;
  background: var(--bg-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-item h3 {
  font-family: var(--font-caps);
  font-size: 14px;
  font-weight: normal;
  color: var(--cream);
  margin-bottom: 4px;
}

.about-item p {
  font-size: 14px;
  color: #c8c4bc;
  line-height: 1.58;
}

.about-item a {
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.trade-footer {
  background: var(--bg-bar);
  border-top: 1px solid var(--border-seam);
  padding: 18px 20px;
}

.trade-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  font-family: var(--font-caps);
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--cream);
}

/* -----------------------------------------------------------------------------
   Lightbox for Full-Resolution Screenshot Inspection
   ----------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border: 1px solid #2b2720;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9);
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .filter-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .trade-nav-tabs {
    display: none;
  }
}
