/*
Theme Name: FitnessTrainingsplan
Theme URI: https://fitness-trainingsplan.com
Author: fitness-trainingsplan.com
Description: Custom dark fitness theme with lime accent – built for affiliate content.
Version: 1.0
*/

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

:root {
  --black:      #0D0D0D;
  --charcoal:   #161616;
  --mid:        #1E1E1E;
  --border:     #2A2A2A;
  --lime:       #C8F135;
  --lime-dark:  #A8D020;
  --white:      #F5F5F0;
  --muted:      #888888;
  --text:       #CCCCCC;
  --card:       #141414;
  --radius:     10px;
  --max:        1160px;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lime); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-head); letter-spacing: 1px; color: var(--white); line-height: 1; }
h1 { font-size: clamp(48px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4, h5, h6 { font-family: var(--font-body); font-weight: 700; color: var(--white); }
p { margin-bottom: 1.2em; color: var(--text); }
strong { color: var(--white); font-weight: 600; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* ── SECTION UTILITIES ── */
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--lime); margin-bottom: 10px; display: block;
}
.section-title { margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 500px; }

.site-section { padding: 80px 0; }
.site-section.dark { background: var(--charcoal); }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 14px 32px; border-radius: 6px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.5px; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-dark); color: var(--black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,241,53,0.25); }
.btn-outline { background: transparent; color: var(--lime); border: 1px solid rgba(200,241,53,0.4); }
.btn-outline:hover { background: rgba(200,241,53,0.08); color: var(--lime); }

/* ── AFFILIATE DISCLOSURE ── */
.affiliate-note {
  background: rgba(200,241,53,0.07);
  border: 1px solid rgba(200,241,53,0.2);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 13px; color: var(--muted);
  margin-bottom: 32px;
}
.affiliate-note strong { color: var(--lime); }

/* ────────────────────────────────
   HEADER / NAV
──────────────────────────────── */
#site-header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.5); }

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 20px; letter-spacing: 3px;
  color: var(--white); text-decoration: none;
}
.site-logo span { color: var(--lime); }

.main-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.main-nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  text-decoration: none; transition: all 0.2s;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.main-nav .active a { color: var(--white); }

.header-cta {
  background: var(--lime); color: var(--black) !important;
  padding: 10px 20px; border-radius: 6px;
  font-weight: 700 !important; font-size: 13px !important;
  letter-spacing: 0.5px;
}
.header-cta:hover { background: var(--lime-dark) !important; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); transition: all 0.3s;
}

/* ────────────────────────────────
   HERO (HOMEPAGE)
──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 68px;
  position: relative; overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,241,53,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,241,53,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,241,53,0.1);
  border: 1px solid rgba(200,241,53,0.3);
  padding: 6px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 700; color: var(--lime);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: "●"; font-size: 8px; animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.hero-title { margin-bottom: 24px; }
.hero-title .line-accent { color: var(--lime); display: block; }
.hero-title .line-outline {
  display: block;
  -webkit-text-stroke: 1px rgba(245,245,240,0.25);
  color: transparent;
}
.hero-desc {
  font-size: 18px; color: #aaa; font-weight: 300;
  max-width: 540px; margin-bottom: 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-scroll {
  color: var(--muted); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.hero-scroll:hover { color: var(--white); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 60px;
  padding-top: 40px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-head);
  font-size: 48px; color: var(--lime); line-height: 1;
}
.hero-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ────────────────────────────────
   CATEGORY CARDS
──────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 48px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  text-decoration: none; color: var(--text);
  transition: all 0.25s; position: relative; overflow: hidden;
  display: block;
}
.cat-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--lime);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.cat-card:hover { border-color: rgba(200,241,53,0.3); transform: translateY(-4px); background: #1A1A1A; opacity: 1; }
.cat-card:hover::after { transform: scaleX(1); }
.cat-icon { font-size: 32px; margin-bottom: 14px; display: block; }
.cat-name { font-family: var(--font-head); font-size: 26px; color: var(--white); margin-bottom: 8px; letter-spacing: 1px; }
.cat-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.cat-link { font-size: 12px; color: var(--lime); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ────────────────────────────────
   POST CARDS (BLOG LOOP)
──────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.posts-grid.featured-first .post-card:first-child {
  grid-column: span 2;
}
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  transition: all 0.25s; display: flex; flex-direction: column;
}
.post-card:hover { border-color: rgba(200,241,53,0.3); transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16/9; overflow: hidden;
  background: var(--mid); position: relative;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; background: linear-gradient(135deg, #1a2a0a, #2a3a12);
}
.post-level-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.15);
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700; color: var(--white); letter-spacing: 1px; text-transform: uppercase;
}
.post-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  font-size: 11px; color: var(--lime); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 8px; text-decoration: none;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 19px; color: var(--white); line-height: 1.35;
  margin-bottom: 10px; text-decoration: none; display: block;
}
.post-card.featured .post-title { font-size: 24px; }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.post-meta {
  display: flex; gap: 16px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.post-meta-item { display: flex; align-items: center; gap: 5px; }

/* ────────────────────────────────
   SINGLE ARTICLE
──────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px; align-items: start;
  padding-top: 100px; padding-bottom: 80px;
}
.article-header { margin-bottom: 40px; }
.article-category {
  font-size: 12px; color: var(--lime); font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 16px; display: block; text-decoration: none;
}
.article-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; letter-spacing: 1px; color: var(--white);
  margin-bottom: 20px;
}
.article-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.article-featured-img {
  width: 100%; border-radius: 14px; overflow: hidden;
  margin-bottom: 40px; aspect-ratio: 16/9;
  background: var(--mid);
}
.article-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* Article Content Typography */
.article-content h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white); margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(200,241,53,0.2);
}
.article-content h3 {
  font-family: var(--font-body);
  font-size: 20px; font-weight: 700;
  color: var(--white); margin: 28px 0 12px;
}
.article-content p { font-size: 17px; color: var(--text); line-height: 1.8; margin-bottom: 1.4em; }
.article-content ul, .article-content ol {
  padding-left: 24px; margin-bottom: 1.4em;
}
.article-content li { font-size: 17px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }
.article-content li::marker { color: var(--lime); }
.article-content strong { color: var(--white); font-weight: 700; }
.article-content a { color: var(--lime); text-decoration: underline; text-decoration-color: rgba(200,241,53,0.3); }
.article-content a:hover { text-decoration-color: var(--lime); }

/* Info Box inside articles */
.article-content .info-box {
  background: rgba(200,241,53,0.06);
  border: 1px solid rgba(200,241,53,0.2);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius); padding: 20px 24px;
  margin: 28px 0; font-size: 15px;
}
.article-content .info-box strong { color: var(--lime); }

/* Comparison Table */
.article-content table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 15px;
  border-radius: var(--radius); overflow: hidden;
}
.article-content table thead tr { background: var(--mid); }
.article-content table th {
  padding: 12px 16px; text-align: left;
  color: var(--white); font-weight: 700; font-size: 13px;
  letter-spacing: 0.5px; border-bottom: 2px solid var(--lime);
}
.article-content table td {
  padding: 11px 16px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.article-content table tr:last-child td { border-bottom: none; }
.article-content table tr:hover td { background: rgba(255,255,255,0.02); }

/* Affiliate CTA Box */
.affiliate-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  display: flex; align-items: center; gap: 20px;
  margin: 32px 0;
}
.affiliate-box-img { font-size: 48px; flex-shrink: 0; }
.affiliate-box-info { flex: 1; }
.affiliate-box-name { font-weight: 700; color: var(--white); font-size: 17px; margin-bottom: 4px; }
.affiliate-box-desc { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.affiliate-box-price { font-family: var(--font-head); font-size: 28px; color: var(--lime); flex-shrink: 0; }
.affiliate-box .btn { flex-shrink: 0; }

/* Sidebar */
.article-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px; margin-bottom: 24px;
}
.sidebar-widget-title {
  font-family: var(--font-head); font-size: 22px;
  color: var(--white); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 8px; }
.toc-list a { color: var(--muted); font-size: 14px; text-decoration: none; display: flex; gap: 8px; align-items: flex-start; transition: color 0.2s; }
.toc-list a::before { content: "→"; color: var(--lime); flex-shrink: 0; }
.toc-list a:hover { color: var(--white); opacity: 1; }

/* ────────────────────────────────
   PRODUCT COMPARISON SECTION
──────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px; margin-top: 48px;
}
.prod-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: all 0.25s; position: relative;
  display: flex; flex-direction: column;
}
.prod-card.top-pick { border-color: rgba(200,241,53,0.45); }
.prod-winner-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--lime); color: var(--black);
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  white-space: nowrap;
}
.prod-card:hover { transform: translateY(-4px); border-color: rgba(200,241,53,0.4); }
.prod-icon { font-size: 40px; text-align: center; margin-bottom: 14px; }
.prod-name { font-weight: 700; font-size: 16px; color: var(--white); text-align: center; margin-bottom: 4px; }
.prod-brand { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 12px; }
.prod-stars { text-align: center; color: var(--lime); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.prod-price { font-family: var(--font-head); font-size: 34px; color: var(--white); text-align: center; line-height: 1; margin-bottom: 16px; }
.prod-price span { font-size: 14px; font-family: var(--font-body); color: var(--muted); }
.prod-features { list-style: none; margin-bottom: 20px; flex: 1; }
.prod-features li { font-size: 13px; color: #aaa; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); display: flex; align-items: center; gap: 8px; }
.prod-features li::before { content: "✓"; color: var(--lime); font-weight: 700; flex-shrink: 0; }
.prod-btn {
  display: block; width: 100%; text-align: center;
  background: rgba(200,241,53,0.1);
  border: 1px solid rgba(200,241,53,0.3);
  color: var(--lime); padding: 12px;
  border-radius: 8px; font-size: 13px; font-weight: 700;
  transition: all 0.2s; letter-spacing: 0.5px;
  text-decoration: none;
}
.prod-card.top-pick .prod-btn { background: var(--lime); color: var(--black); }
.prod-btn:hover { opacity: 0.85; }

/* ────────────────────────────────
   NEWSLETTER
──────────────────────────────── */
.newsletter-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
}
.nl-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.nl-title { font-size: clamp(40px, 4vw, 60px); margin-bottom: 12px; }
.nl-title em { font-style: normal; color: var(--lime); }
.nl-sub { font-size: 16px; color: var(--muted); font-weight: 300; }
.nl-form { display: flex; flex-direction: column; gap: 14px; }
.nl-input {
  background: var(--mid); border: 1px solid var(--border);
  color: var(--white); padding: 15px 18px;
  border-radius: 8px; font-family: var(--font-body); font-size: 15px;
  outline: none; transition: border-color 0.2s;
}
.nl-input:focus { border-color: rgba(200,241,53,0.4); }
.nl-input::placeholder { color: var(--muted); }
.nl-note { font-size: 12px; color: #555; }

/* ────────────────────────────────
   FOOTER
──────────────────────────────── */
#site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .site-logo { font-size: 22px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-links-list { list-style: none; }
.footer-links-list li { margin-bottom: 8px; }
.footer-links-list a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links-list a:hover { color: var(--white); opacity: 1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 28px; border-top: 1px solid var(--border);
  gap: 24px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: #444; }
.footer-disclaimer { font-size: 11px; color: #3a3a3a; max-width: 600px; line-height: 1.6; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: #555; text-decoration: none; }
.footer-legal a:hover { color: var(--white); }

/* ────────────────────────────────
   ARCHIVE PAGE
──────────────────────────────── */
.archive-header {
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.archive-title-row { display: flex; align-items: flex-end; justify-content: space-between; }
.archive-count { font-size: 14px; color: var(--muted); }

/* ────────────────────────────────
   PAGINATION
──────────────────────────────── */
.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 64px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  transition: all 0.2s;
}
.pagination a:hover { border-color: rgba(200,241,53,0.4); color: var(--lime); background: rgba(200,241,53,0.08); opacity: 1; }
.pagination .current { background: var(--lime); color: var(--black); border-color: var(--lime); }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid.featured-first .post-card:first-child { grid-column: span 2; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .cat-grid, .posts-grid { grid-template-columns: 1fr; }
  .posts-grid.featured-first .post-card:first-child { grid-column: span 1; }
  .prod-grid { grid-template-columns: 1fr; }
  .nl-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--black); padding: 20px;
    border-bottom: 1px solid var(--border); z-index: 999;
  }
  .nav-toggle { display: flex; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .article-layout { padding-top: 88px; }
  .archive-header { padding: 100px 0 32px; }
  .affiliate-box { flex-direction: column; text-align: center; }
}
