/*
Theme Name: SuppStacker v4
Template: twentytwentyfive
Version: 4.0
Text Domain: suppstacker
*/

/* ===== PALETTE VARIABLES ===== */
:root {
  --notion-blue:   #0075de;
  --notion-lavender:#6b78af;
  --ink:           rgba(0,0,0,0.95);
  --ink-secondary: #615d59;
  --surface:       #f9f8f6;
  --surface-nav:   #ffffff;
  --surface-card:  #ffffff;
  --surface-dark:  #0f172a;
  --border:        rgba(0,0,0,0.06);
  --shadow:        0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-hover:  0 6px 24px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
}

/* ===== BASE ===== */
body {
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== NAV ===== */
.ss-nav-wrapper {
  background: var(--surface-nav);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ss-nav-wrapper a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .15s ease;
}

.ss-nav-wrapper a:hover {
  color: var(--notion-blue);
  background: rgba(0,117,222,.06);
}

.nav-cta-button a,
.ss-nav-wrapper .nav-cta-button a {
  background: var(--notion-blue);
  color: #fff !important;
  font-weight: 600;
  padding: 7px 16px;
  font-size: 13px;
  border-radius: 6px;
}

.nav-cta-button a:hover {
  background: #005bb5;
}

/* ===== HERO HOMEPAGE ===== */
.ss-hero {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #1a1f2e 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.ss-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/wp-content/themes/suppstacker/assets/hero-homepage.jpg') center/cover;
  opacity: 0.12;
  mix-blend-mode: luminosity;
}

.ss-hero > * {
  position: relative;
  z-index: 2;
}

.ss-hero h1 {
  color: #fff !important;
}

.ss-hero p.wp-block-post-excerpt {
  color: rgba(255,255,255,0.7) !important;
}

/* ===== CATEGORY HERO ===== */
.ss-cat-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 60px;
}

.ss-cat-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.25;
  mix-blend-mode: luminosity;
}

.ss-cat-hero > * {
  position: relative;
  z-index: 2;
}

/* Category-specific backgrounds */
.category-build-muscle .ss-cat-hero::before {
  background-image: url('/wp-content/themes/suppstacker/assets/build-muscle.jpg');
}

.category-lose-weight .ss-cat-hero::before {
  background-image: url('/wp-content/themes/suppstacker/assets/lose-weight.jpg');
}

.category-energy .ss-cat-hero::before {
  background-image: url('/wp-content/themes/suppstacker/assets/energy.jpg');
}

.category-sleep .ss-cat-hero::before {
  background-image: url('/wp-content/themes/suppstacker/assets/sleep.jpg');
}

.ss-cat-hero h1 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ss-cat-hero .term-desc {
  color: rgba(255,255,255,0.8) !important;
}

/* ===== ARTICLE CARD ===== */
.article-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: box-shadow .18s ease, transform .18s ease;
  overflow: hidden;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.article-card .wp-block-post-featured-image img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.article-tag a {
  display: inline-block;
  background: rgba(9,127,232,0.08);
  color: var(--notion-blue) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 8px;
}

.article-card h3 a {
  color: var(--ink) !important;
  text-decoration: none;
  font-weight: 600;
}

.article-card h3 a:hover {
  color: var(--notion-blue) !important;
}

/* ===== FEATURED CARD (Hero) ===== */
.featured-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  transition: transform .2s ease;
}

.featured-card:hover {
  transform: translateY(-3px);
}

/* ===== BUTTONS ===== */
.wp-block-button__link.wp-element-button {
  border-radius: 6px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid var(--notion-blue) !important;
  color: var(--notion-blue) !important;
}

/* ===== GRADE BADGE ===== */
.grade-badge { display:none; }
.grade-A  { color:#22c55e; }
.grade-B  { color:#84cc16; }
.grade-C  { color:#eab308; }
.grade-D  { color:#f97316; }
.grade-F  { color:#ef4444; }

/* ===== FOOTER ===== */
.footer-inner {
  background: var(--surface-dark);
  color: #8b95a8;
  padding: 48px 0;
}

.footer-inner a { color: #8b95a8; text-decoration: none; }
.footer-inner a:hover { color: #fff; }

.footer-bottom a { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); }

/* ===== RESPONSIVE ===== */
@media (max-width: 782px) {
  .ss-nav-wrapper { padding: 10px 0; }
  .ss-hero { padding: 60px 0 40px !important; }
  .ss-hero h1 { font-size: 32px !important; }
  .ss-cat-hero { padding: 80px 0 40px; }
  .article-card .wp-block-post-featured-image img { height: 140px; }
}