/* =========================================================
   RigMood — Gaming Desk Setup & Workspace Inspiration
   Clean, fast, Pinterest-optimized editorial design system
   ========================================================= */

:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --bg-muted: #f2eee8;
  --bg-dark: #16181d;
  --text: #1c1e24;
  --text-muted: #5e626e;
  --text-light: #8d919e;
  --border: #e7e2da;
  --accent: #c8643c;       /* Warm terracotta-amber */
  --accent-hover: #a94f2b;
  --accent-soft: #fdf0ea;
  --teal: #1d6f72;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(22, 24, 29, 0.05);
  --shadow-md: 0 10px 30px rgba(22, 24, 29, 0.08);
  --max-width: 1180px;
  --article-width: 780px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.article-container {
  width: 100%;
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b1e26 0%, #2c3545 60%, var(--accent) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(200, 100, 60, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 56px 0 40px;
}

.hero-card {
  background: radial-gradient(circle at 88% 18%, rgba(200, 100, 60, 0.24) 0%, rgba(200, 100, 60, 0) 46%),
              radial-gradient(circle at 12% 90%, rgba(29, 111, 114, 0.22) 0%, rgba(29, 111, 114, 0) 48%),
              linear-gradient(135deg, #161922 0%, #212634 58%, #2b221e 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 54px 46px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f7c7b0;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 26px;
  font-size: 1.05rem;
  color: #cfd3df;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(20, 22, 28, 0.78);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  color: #eceef4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Filter Pills (8 Core Categories) ---------- */
.section {
  padding: 36px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-pill.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

/* ---------- Article Grid Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d9cfc2;
}

.post-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.post-card-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.post-card:hover .post-card-img-wrap img {
  transform: scale(1.03);
}

.post-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.post-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.read-more:hover {
  text-decoration: underline;
}

/* ---------- Style Directory (8 Boards Showcase) ---------- */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.board-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.board-tile:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.board-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.18s ease, color 0.18s ease;
}

.board-tile:hover .board-icon {
  background: var(--accent);
  color: #fff;
}

.board-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.board-tile h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  color: var(--text);
}

.board-tile p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Article Page Layout ---------- */
.article-hero {
  padding: 40px 0 24px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.disclosure-box {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 13px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: #5c3221;
  margin-bottom: 26px;
}

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-content {
  font-size: 1.04rem;
  line-height: 1.8;
  color: #272a32;
}

.article-content h2 {
  margin: 36px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-content h3 {
  margin: 26px 0 10px;
  font-size: 1.18rem;
  color: var(--text);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content ul {
  padding-left: 22px;
  margin: 0 0 22px;
}

.article-content li {
  margin-bottom: 8px;
}

.tip-callout {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 26px 0;
  font-size: 0.95rem;
}

.tip-callout strong {
  color: var(--teal);
}

/* ---------- Shop the Look (Amazon Affiliate Ready Cards) ---------- */
.shop-section {
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.shop-section-header {
  margin-bottom: 20px;
}

.shop-section-header h2 {
  margin: 0 0 6px !important;
  font-size: 1.35rem !important;
}

.shop-section-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
}

.product-badge {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal);
  margin-bottom: 4px;
}

.product-card h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.product-card p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.price-est {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.btn-amazon {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-amazon:hover {
  background: var(--accent);
}

/* ---------- Legal / Static Pages ---------- */
.page-shell {
  padding: 44px 0 64px;
}

.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}

.page-card h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

.page-updated {
  font-size: 0.86rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.page-card h2 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 56px;
  background: var(--bg-dark);
  color: #c5c9d6;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  color: #8f95a6;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .boards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }
  .card-grid,
  .boards-grid,
  .product-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-card {
    padding: 28px 22px;
  }
}
