/* =============================================
   RARE HUNTER TCG — Main Stylesheet
   Theme: Modern / Sleek / Dark Minimal
   ============================================= */

:root {
  --accent:      #e8ff47;
  --accent-dim:  rgba(232,255,71,0.10);
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #181818;
  --surface:     #141414;
  --border:      rgba(255,255,255,0.07);
  --border-mid:  rgba(255,255,255,0.13);
  --text:        #f0f0f0;
  --text-dim:    #5a5a5a;
  --text-mid:    #9a9a9a;
  --mono:        'DM Mono', monospace;
  --sans:        'DM Sans', system-ui, sans-serif;
  --transition:  0.2s ease;
  --radius:      4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { line-height: 1.1; font-weight: 600; }

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ===== LAYOUT ===== */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}
.btn-primary:hover { background: #fff; border-color: #fff; color: #0a0a0a; }
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border-mid);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); color: var(--text); }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 2rem;
}
.nav-logo {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-ebay {
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.78rem;
}
.nav-links .nav-ebay:hover { background: #fff; color: #0a0a0a; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-mid);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 30%, transparent 100%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 700px; height: 280px;
  background: rgba(232,255,71,0.055);
  top: 30%; left: 50%;
  transform: translateX(-50%);
  animation: hero-glow 8s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  background: rgba(255,255,255,0.012);
  bottom: -80px; right: -80px;
}
.orb-3 { display: none; }

@keyframes hero-glow {
  0%,100% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scaleX(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

/* Pill tag above title */
.hero-emblem {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(232,255,71,0.25);
  padding: 0.28rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--accent-dim);
}
.hero-emblem svg { display: none; }
.hero-emblem::after { content: "Vintage TCG · Premium Singles"; }

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--text);
}
.hero-tagline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  margin-top: 1.2rem;
}
.hero-rule {
  width: 32px;
  height: 2px;
  background: var(--accent);
  margin: 2.2rem auto;
  border-radius: 1px;
}
.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  font-weight: 300;
  max-width: 520px;
  margin: 0 auto;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-arrow {
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--text-dim);
  border-bottom: 1.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: rotate(45deg) translateY(0); opacity: 0.35; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.8; }
}

/* ===== LISTINGS ===== */
.listings-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nudge-wrapper { margin-top: 0; }
#auction-nudge-items, .auction-nudge {
  font-family: var(--sans) !important;
}
.auction-nudge-items {
  background: transparent !important;
  color: var(--text) !important;
}
#auction-nudge-items input[type="text"],
#auction-nudge-items input[type="search"] {
  background: var(--surface) !important;
  border: 1px solid var(--border-mid) !important;
  color: var(--text) !important;
  padding: 0.5rem 1rem !important;
  font-family: var(--sans) !important;
  border-radius: var(--radius) !important;
}
#auction-nudge-items a { color: var(--accent) !important; }

/* ===== DIVIDER ===== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-gem {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== ABOUT ===== */
.about-section { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.about-actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  align-self: center;
}
.about-card {
  background: var(--surface);
  padding: 1.75rem;
  transition: background var(--transition);
}
.about-card:hover { background: var(--bg3); }
.about-card-icon {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: block;
  letter-spacing: 0.05em;
}
.about-card h3 {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.about-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ===== SOCIAL STRIP ===== */
.social-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.social-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--border-mid);
  color: var(--text);
  background: var(--surface);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2.5rem 2rem;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-logo {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.footer-copy { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.3rem; }
.footer-sub { font-size: 0.7rem; color: #2e2e2e; }
.footer-sub a { color: var(--text-dim); text-decoration: none; }
.footer-sub a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.2rem;
  }
  .nav-toggle { display: flex; }
  .about-cards { grid-template-columns: 1fr; }
  .section-wrap { padding: 4rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .orb-1 { width: 320px; height: 180px; }
}

/* ===== FADE IN ===== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ===== BLOG SECTION (homepage preview) ===== */
.blog-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--surface);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.blog-card:hover { background: var(--bg3); }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.blog-date {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.blog-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232,255,71,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.blog-card-excerpt {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}
.blog-read-more {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}
.blog-footer {
  margin-top: 2rem;
  text-align: center;
}

/* ===== BLOG LIST PAGE ===== */
.blog-list-wrap {}
.blog-list-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  border-bottom: 1px solid var(--border);
}
.blog-grid-full {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
}

/* ===== BLOG SINGLE POST ===== */
.post-wrap {}
.post-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.post-header .section-wrap { padding-bottom: 2rem; }
.post-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.post-back:hover { color: var(--text); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.post-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.post-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  max-width: 800px;
}
.post-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  margin-top: 1rem;
  max-width: 640px;
  line-height: 1.7;
}
.post-rule {
  height: 1px;
  background: var(--border);
  margin-top: 2rem;
}

/* Post body markdown styles */
.post-body {
  max-width: 720px;
}
.post-body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 0.6rem;
}
.post-body p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
}
.post-body ul, .post-body ol {
  margin: 0 0 1.2rem 1.5rem;
}
.post-body li {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.post-body strong { color: var(--text); font-weight: 500; }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post-body a:hover { color: #fff; }
.post-body blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-mid);
  font-style: italic;
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  color: var(--accent);
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-footer { border-top: 1px solid var(--border); padding-top: 2rem; }
.post-footer-inner {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid-full { grid-template-columns: 1fr; }
  .blog-list-header { padding: 3rem 1.25rem 2rem; }
}
