/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:         #0d0f12;
  --bg2:        #13161b;
  --bg3:        #1a1e26;
  --border:     #242830;
  --border2:    #2e3340;
  --text:       #e8eaf0;
  --muted:      #7a8194;
  --muted2:     #4f5566;
  --accent:     #00e5a0;
  --accent-dim: #00b87c;
  --accent-bg:  rgba(0, 229, 160, 0.07);
  --warn:       #f5a623;
  --danger:     #e85c5c;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --font-mono:  'Space Mono', monospace;
  --font-sans:  'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dim); }

img { max-width: 100%; display: block; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo-icon { color: var(--accent); font-size: 1.2rem; }
.logo-text strong { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--bg3);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, black 30%, transparent 100%);
}

.hero-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-dim);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 520px;
}

/* ── Section Titles ────────────────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Providers Grid ────────────────────────────────────────────────────────── */
.providers-section { padding: 4rem 0; }

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.provider-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: all 0.2s;
}
.provider-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.provider-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.provider-info {
  flex: 1;
  min-width: 0;
}
.provider-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.provider-count {
  font-size: 0.78rem;
  color: var(--muted);
}

.provider-arrow {
  color: var(--muted2);
  font-size: 1rem;
  transition: transform 0.15s;
}
.provider-card:hover .provider-arrow {
  transform: translateX(3px);
  color: var(--accent);
}

/* ── Posts Grid ────────────────────────────────────────────────────────────── */
.recent-section { padding: 0 0 4rem; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: all 0.2s;
}
.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.post-card-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.post-card-img--placeholder {
  background: var(--bg3);
  background-image: repeating-linear-gradient(
    45deg,
    var(--border) 0,
    var(--border) 1px,
    transparent 0,
    transparent 50%
  );
  background-size: 12px 12px;
}

.post-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card-provider {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.post-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

/* ── Provider Hero ─────────────────────────────────────────────────────────── */
.provider-hero {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.provider-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.provider-hero-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-top: 0.25rem;
}

.provider-hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.provider-hero-desc {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

/* ── Posts List ────────────────────────────────────────────────────────────── */
.posts-section { padding: 3rem 0; }

.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-list-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg2);
  color: var(--text);
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}
.post-list-item:last-child { border-bottom: none; }
.post-list-item:hover {
  background: var(--bg3);
  color: var(--text);
}

.post-list-img {
  width: 72px;
  height: 54px;
  border-radius: var(--radius);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.post-list-img--placeholder {
  background: var(--bg3);
  background-image: repeating-linear-gradient(
    45deg, var(--border) 0, var(--border) 1px, transparent 0, transparent 50%
  );
  background-size: 8px 8px;
}

.post-list-body { flex: 1; min-width: 0; }
.post-list-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-list-meta { display: flex; align-items: center; gap: 0.75rem; }
.post-list-date { font-size: 0.78rem; color: var(--muted2); }
.post-list-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.post-list-arrow { color: var(--muted2); transition: all 0.15s; }
.post-list-item:hover .post-list-arrow { color: var(--accent); transform: translateX(3px); }

/* ── Post Layout ───────────────────────────────────────────────────────────── */
.post-layout { padding: 2.5rem 0 4rem; }

.post-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

.post-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}
.post-hero-img img { width: 100%; max-height: 400px; object-fit: cover; }

.post-header { margin-bottom: 2rem; }
.post-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.post-provider-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(0,229,160,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.post-date { font-size: 0.82rem; color: var(--muted); }

.post-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* ── Coupons Block ─────────────────────────────────────────────────────────── */
.coupons-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.coupons-block-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.coupon-card:last-child { margin-bottom: 0; }
.coupon-card--expired { opacity: 0.5; }

.coupon-left { display: flex; flex-direction: column; gap: 0.2rem; }

.coupon-discount {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.coupon-desc { font-size: 0.875rem; color: var(--muted); }
.coupon-expiry { font-size: 0.75rem; color: var(--muted2); font-family: var(--font-mono); }

.coupon-right { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.coupon-hidden-preview {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted2);
  letter-spacing: 0.2em;
  background: var(--bg2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border2);
  filter: blur(3px);
  user-select: none;
}

.coupon-code-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: fadeIn 0.3s ease;
}

.coupon-code {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px dashed var(--accent-dim);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  letter-spacing: 0.1em;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Prose ─────────────────────────────────────────────────────────────────── */
.prose {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}
.prose h2 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}
.prose p { margin-bottom: 1.25rem; color: var(--muted); }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--muted); font-style: italic; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(0,229,160,0.3); }
.prose a:hover { border-color: var(--accent); }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
}
.prose li { margin-bottom: 0.4rem; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}
.prose pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.prose pre code { background: none; border: none; padding: 0; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--muted);
  margin: 1.5rem 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.prose th, .prose td {
  padding: 0.6rem 1rem;
  text-align: left;
  border: 1px solid var(--border);
}
.prose th {
  background: var(--bg3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.prose td { color: var(--muted); }
.prose tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* ── Affiliate CTA ─────────────────────────────────────────────────────────── */
.affiliate-cta {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.affiliate-cta p:first-child { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.affiliate-disclaimer { font-size: 0.75rem; color: var(--muted2); margin-top: 0.75rem; margin-bottom: 0; }

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
  margin-bottom: 0.75rem;
}

.sidebar-widget-text { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.6; }

.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-links a {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.sidebar-links a::before { content: '→'; color: var(--accent); font-size: 0.75rem; }
.sidebar-links a:hover { color: var(--text); }

/* ── Breadcrumb ────────────────────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted2);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted2); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: #0d0f12;
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent-dim); color: #0d0f12; }
.btn--lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn--outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn--reveal {
  background: var(--accent);
  color: #0d0f12;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
}
.btn--reveal:hover { background: var(--accent-dim); }
.btn--copy {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}
.btn--copy:hover { border-color: var(--accent); color: var(--accent); }
.btn--copy.copied { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

/* ── Ad Zones ──────────────────────────────────────────────────────────────── */
.ad-zone {
  position: relative;
  background: var(--bg2);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.ad-label { opacity: 0.5; }
.ad-zone--banner  { height: 90px;  margin: 1.5rem 0; }
.ad-zone--leaderboard { height: 90px; margin: 1.5rem 0; }
.ad-zone--inline  { height: 90px;  margin: 2rem 0; }
.ad-zone--sidebar { height: 250px; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted2);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer li a { font-size: 0.875rem; color: var(--muted); }
.site-footer li a:hover { color: var(--accent); }

.footer-legal {
  font-size: 0.75rem;
  color: var(--muted2);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ── Misc ──────────────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
