/* ============================================================
   fees.css — /fees/ page styles
   Relies on design-tokens.css for --vr-* variables.
   Dark (default) + light (html[data-theme="light"]) +
   editorial (html[data-theme="editorial"]) +
   studio  (html[data-theme="studio"])  all handled here.
   ============================================================ */

/* ── Hero ── */
.vr-fees-hero .vr-section-header { max-width: 660px; }
.vr-fees-hero h1 { margin-bottom: 1rem; }
.vr-fees-hero strong { color: var(--vr-text); font-weight: 600; }

/* ── At-a-glance summary card ── */
.vr-fees-summary {
  border: 1px solid var(--vr-border);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}
.vr-fees-summary__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vr-text-muted);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.vr-fees-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.1rem;
}
.vr-fees-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.vr-fees-stat__label {
  font-size: 0.8125rem;
  color: var(--vr-text-muted);
  line-height: 1.4;
}
.vr-fees-stat__value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--vr-text);
}
.vr-fees-free {
  color: var(--vr-success) !important;
}

/* ── Party block ── */
.vr-fees-party {
  border: 1px solid var(--vr-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--vr-surface);
  box-shadow: var(--vr-shadow-sm);
}
.vr-fees-party__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.6rem 1.2rem;
  border-bottom: 1px solid var(--vr-border);
}
.vr-fees-party__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.vr-fees-party__icon--artist   { background: rgba(201,169,110,0.12); color: #c9a96e; }
.vr-fees-party__icon--collector { background: rgba(108,99,255,0.12);  color: var(--vr-primary); }
.vr-fees-party__icon--verifier  { background: rgba(0,196,179,0.12);   color: var(--vr-accent); }
.vr-fees-party__icon--checkout  { background: rgba(91,141,239,0.12);  color: #5B8DEF; }
.vr-fees-party__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--vr-text);
}
.vr-fees-party__sub {
  font-size: 0.85rem;
  color: var(--vr-text-muted);
  margin: 0;
}

/* ── Fee table ── */
.vr-fees-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0 1.6rem;
  display: table;
}
.vr-fees-table tbody tr {
  border-bottom: 1px solid var(--vr-border);
}
.vr-fees-table tbody tr:last-child { border-bottom: none; }
.vr-fees-table td {
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  vertical-align: top;
  color: var(--vr-text);
}
.vr-fees-table td:first-child {
  color: var(--vr-text-muted);
  width: 44%;
}
.vr-fees-table td:last-child {
  font-weight: 500;
  text-align: right;
}

/* ── Pro callout ── */
.vr-fees-pro {
  border-top: 1px solid var(--vr-border);
  background: var(--vr-surface-raised);
}
.vr-fees-pro__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 1.6rem;
  border-bottom: 1px solid var(--vr-border);
}
.vr-fees-pro__badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c9a96e;
  background: rgba(201,169,110,0.12);
  border: 1px solid rgba(201,169,110,0.28);
  padding: 2px 8px;
  border-radius: 999px;
}
.vr-fees-pro__label {
  font-size: 0.8rem;
  color: var(--vr-text-muted);
}
.vr-fees-pro__body .vr-fees-table td {
  font-size: 0.855rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* ── Note / footnote ── */
.vr-fees-note {
  margin: 0;
  padding: 0.85rem 1.6rem 1rem;
  font-size: 0.8125rem;
  color: var(--vr-text-faint);
  line-height: 1.65;
  border-top: 1px solid var(--vr-border);
}

/* ── NFT disclaimer ── */
.vr-fees-nft {
  border: 1px solid var(--vr-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  background: var(--vr-surface);
}
.vr-fees-nft__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vr-text);
  margin: 0 0 0.5rem;
}
.vr-fees-nft__body {
  font-size: 0.875rem;
  color: var(--vr-text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA footer ── */
.vr-fees-cta-section {
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.vr-fees-cta__text {
  font-size: 1.1rem;
  color: var(--vr-text-muted);
  margin: 0 0 1.25rem;
}
.vr-fees-cta__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   LIGHT THEME overrides
   html[data-theme="light"] — handled mostly by tokens;
   these ensure party icons and pro badge stay readable.
   ============================================================ */
html[data-theme="light"] .vr-fees-party__icon--artist   { background: rgba(201,169,110,0.10); }
html[data-theme="light"] .vr-fees-party__icon--collector { background: rgba(108,99,255,0.08); }
html[data-theme="light"] .vr-fees-party__icon--verifier  { background: rgba(0,196,179,0.08); }
html[data-theme="light"] .vr-fees-party__icon--checkout  { background: rgba(91,141,239,0.08); }
html[data-theme="light"] .vr-fees-summary { box-shadow: var(--vr-shadow-xs); }
html[data-theme="light"] .vr-fees-party  { box-shadow: var(--vr-shadow-xs); }

/* ============================================================
   EDITORIAL THEME overrides
   html[data-theme="editorial"]
   ============================================================ */
html[data-theme="editorial"] .vr-fees-summary,
html[data-theme="editorial"] .vr-fees-party {
  border-radius: 4px;
  box-shadow: none;
  border-color: var(--vr-border-strong);
}
html[data-theme="editorial"] .vr-fees-party__icon {
  border-radius: 4px;
}
html[data-theme="editorial"] .vr-fees-pro__badge {
  border-radius: 2px;
}
html[data-theme="editorial"] .vr-fees-summary {
  border-radius: 4px;
}

/* ============================================================
   STUDIO THEME overrides
   html[data-theme="studio"]
   ============================================================ */
html[data-theme="studio"] .vr-fees-summary,
html[data-theme="studio"] .vr-fees-party {
  border-radius: 6px;
  border-color: var(--vr-border);
}
html[data-theme="studio"] .vr-fees-party__icon {
  border-radius: 6px;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .vr-fees-table td:first-child { width: 48%; }
  .vr-fees-summary__grid { grid-template-columns: 1fr 1fr; }
  .vr-fees-party__header { padding: 1.1rem 1.1rem 0.9rem; }
  .vr-fees-table td { padding-left: 1.1rem; padding-right: 1.1rem; }
  .vr-fees-pro__header { padding-left: 1.1rem; }
  .vr-fees-note { padding-left: 1.1rem; padding-right: 1.1rem; }
  .vr-fees-cta__actions { flex-direction: column; align-items: center; }
}
