﻿/* =============================================================================
   BitcoinCryptoBlog — Main Stylesheet
   Sections:
   1.  Base & Reset
   2.  Typography
   3.  Layout Utilities
   4.  Buttons
   5.  Forms
   6.  Price Ticker
   7.  Header & Navigation
   8.  Hero Section
   9.  Featured Posts Grid
   10. Category Cards
   11. Post Cards Grid
   12. Newsletter CTA Banner
   13. Single Post
   14. Author Bio
   15. Social Share
   16. Related Posts
   17. Comments
   18. Sidebar & Widgets
   19. Archive / Blog Index Hero
   20. Search & 404 Pages
   21. Static Pages
   22. Pagination
   23. Footer
   24. Back to Top
   25. Animations & Keyframes
   26. Responsive — Tablet (≤1200px)
   27. Responsive — Tablet (≤1024px)
   28. Responsive — Mobile (≤768px)
   29. Responsive — Small (≤480px)
   30. Utility Classes
   31. Print
============================================================================= */


/* ─────────────────────────────────────────────────────────────────────────────
   1. Base & Reset
───────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent scroll when mobile nav is open */
body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--orange); }
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4,h5,h6 { margin: 0; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
address { font-style: normal; }
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; border: none; background: transparent; padding: 0; }


/* ─────────────────────────────────────────────────────────────────────────────
   2. Typography
───────────────────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; font-family: var(--font-heading); font-weight: 800; color: var(--text-primary); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.2; font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.3; font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
h4 { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 600; }
h5 { font-size: 1rem;   font-family: var(--font-heading); font-weight: 600; }
h6 { font-size: 0.875rem; font-family: var(--font-heading); font-weight: 600; }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

strong, b { font-weight: 700; }
em, i { font-style: italic; }
small { font-size: 0.8em; }
mark {
  background: rgba(255, 193, 77, 0.2);
  color: var(--gold);
  border-radius: 3px;
  padding: 1px 4px;
}

/* In-content typography (entry-content, page-content) */
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; margin-bottom: 0.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin-bottom: 1.4em; list-style: revert; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--bg-card);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05em;
}
.entry-content blockquote cite {
  display: block; margin-top: 8px;
  font-size: 0.85em; color: var(--gold); font-style: normal;
}
.entry-content code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 5px;
  font-size: 0.88em; color: var(--cyan);
}
.entry-content pre {
  background: #050709;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--gold);
  line-height: 1.7;
  margin-bottom: 2em;
}
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 2em; font-size: 0.95em; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; }
.entry-content th { background: var(--bg-elevated); color: var(--gold); font-family: var(--font-heading); font-weight: 700; }
.entry-content img { border-radius: 10px; margin: 1.5em auto; }
.entry-content figcaption { color: var(--text-subtle); font-size: 0.85em; text-align: center; margin-top: -1em; margin-bottom: 1.5em; }


/* ─────────────────────────────────────────────────────────────────────────────
   3. Layout Utilities
───────────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.container--narrow { max-width: 860px; }
.container--wide   { max-width: 1600px; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 80px;
  align-items: start;
}

.blog-main { min-width: 0; }

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding-top: 40px;
  padding-bottom: 80px;
  align-items: start;
}
.page-content-wrap { min-width: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}

/* Reveal-on-scroll base state */
.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Lazy image shimmer */
.lazy-img { transition: opacity 0.3s ease; }
.lazy-img:not(.lazy-img--loaded) { opacity: 0.7; }
.lazy-img.lazy-img--loaded { opacity: 1; }


/* ─────────────────────────────────────────────────────────────────────────────
   4. Buttons
───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: linear-gradient(135deg, #FFC14D 0%, #FF6B1A 100%);
  color: #080912;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.3);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 26, 0.5);
  color: #080912;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 193, 77, 0.08);
}

.btn--ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border-color: transparent;
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.btn--sm   { padding: 8px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn--lg   { padding: 16px 40px; font-size: 1.1rem;  border-radius: 12px; }
.btn--block { width: 100%; }


/* ─────────────────────────────────────────────────────────────────────────────
   5. Forms
───────────────────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 77, 0.15);
}
input::placeholder, textarea::placeholder { color: var(--text-subtle); }
label { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; font-weight: 500; }

/* Search form */
.search-form__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 8px 6px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-form__inner:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 193, 77, 0.12);
}
.search-form__icon { color: var(--text-subtle); flex-shrink: 0; }
.search-form__field {
  flex: 1;
  background: transparent;
  border: none;
  padding: 8px 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.95rem;
}
.search-form__field:focus { box-shadow: none; border-color: transparent; }

/* Comment form fields */
.comment-form-field { margin-bottom: 20px; }
.comment-form-field input,
.comment-form-field textarea { background: var(--bg-elevated); }
.comment-form #submit { display: inline-block; }


/* ─────────────────────────────────────────────────────────────────────────────
   6. Price Ticker
───────────────────────────────────────────────────────────────────────────── */
.price-ticker-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  height: 40px;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.price-ticker-bar::before,
.price-ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.price-ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}
.price-ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.price-ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}

.price-ticker-bar:hover .price-ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}
.ticker-item__glyph { color: var(--gold); font-size: 0.85rem; }
.ticker-item__symbol { color: var(--text-primary); font-weight: 600; letter-spacing: 0.05em; }
.ticker-item__price { color: var(--text-primary); }
.ticker-item__change--up   { color: var(--success); }
.ticker-item__change--down { color: var(--error); }


/* ─────────────────────────────────────────────────────────────────────────────
   7. Header & Navigation
───────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-sticky {
  background: rgba(8, 9, 18, 0.92);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.site-header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

/* Site Logo */
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo__img { width: 36px; height: 36px; filter: drop-shadow(0 0 8px rgba(255, 193, 77, 0.5)); }
.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  display: flex; flex-direction: column;
}
.site-logo__text span { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; color: var(--gold); text-transform: uppercase; }

/* Primary Navigation */
.primary-navigation { flex: 1; display: flex; justify-content: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.is-active { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.nav-chevron { transition: transform 0.2s ease; }
.nav-item:hover > .nav-link .nav-chevron,
.nav-item.is-dropdown-open > .nav-link .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-item:hover > .nav-menu__dropdown,
.nav-item:focus-within > .nav-menu__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu__dropdown .nav-link { padding: 10px 14px; font-size: 0.88rem; border-radius: 8px; width: 100%; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 20px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-visible { opacity: 1; }


/* ─────────────────────────────────────────────────────────────────────────────
   8. Hero Section
───────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 100px 0 80px;
}

/* Grid pattern background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 193, 77, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 193, 77, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Radial glow from bottom left */
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Text side */
.hero-content { max-width: 600px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 193, 77, 0.1);
  border: 1px solid rgba(255, 193, 77, 0.25);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
.hero-title { margin-bottom: 24px; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.hero-stat__label {
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Graphic side */
.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

/* Background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
}
.hero-orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,193,77,0.3), transparent 70%);
  top: 10%; left: 10%;
  animation: orb-drift 8s ease-in-out infinite;
}
.hero-orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,201,255,0.25), transparent 70%);
  bottom: 15%; right: 10%;
  animation: orb-drift 12s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,107,26,0.2), transparent 70%);
  top: 50%; right: 25%;
  animation: orb-drift 9s ease-in-out infinite 2s;
}

/* The coin */
.hero-coin-wrap {
  position: relative;
  z-index: 2;
  animation: float-coin 6s ease-in-out infinite;
}
.hero-coin-img { width: 160px; height: 160px; filter: drop-shadow(0 0 40px rgba(255,193,77,0.6)); }

/* Orbital rings */
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring--1 {
  width: 260px; height: 260px;
  border-color: rgba(255, 193, 77, 0.3);
  animation: orbit-spin 15s linear infinite;
}
.orbit-ring--2 {
  width: 360px; height: 360px;
  border-color: rgba(0, 201, 255, 0.2);
  animation: orbit-spin 25s linear infinite reverse;
}
.orbit-ring--3 {
  width: 460px; height: 460px;
  border-color: rgba(255, 107, 26, 0.15);
  animation: orbit-spin 35s linear infinite;
}

/* Satellite dots on ring 1 */
.orbit-ring--1::before,
.orbit-ring--1::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}
.orbit-ring--1::before { top: -5px; left: 50%; transform: translateX(-50%); }
.orbit-ring--1::after  { bottom: -5px; left: 50%; transform: translateX(-50%); }


/* ─────────────────────────────────────────────────────────────────────────────
   9. Featured Posts Grid
───────────────────────────────────────────────────────────────────────────── */
.featured-section {
  padding: 80px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}
.section-header__left {}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}
.section-link { color: var(--gold); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }
.section-link:hover { color: var(--orange); }

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

/* Hero card */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  border-color: rgba(255, 193, 77, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card--hero { grid-row: span 2; }

.feature-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
}
.feature-card--hero .feature-card__thumb { aspect-ratio: 16/10; }

.feature-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card__img { transform: scale(1.06); }

.feature-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.2s;
}
.feature-card--hero .feature-card__title { font-size: 1.6rem; }
.feature-card:hover .feature-card__title { color: var(--gold); }
.feature-card__excerpt { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }


/* ─────────────────────────────────────────────────────────────────────────────
   10. Category Cards
───────────────────────────────────────────────────────────────────────────── */
.categories-section { padding: 80px 0; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.category-card:hover { border-color: var(--border-light); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.category-card:hover::before { transform: scaleX(1); }

.category-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.category-card__name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.category-card__count { font-size: 0.8rem; color: var(--text-subtle); }


/* ─────────────────────────────────────────────────────────────────────────────
   11. Post Cards Grid
───────────────────────────────────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.post-card:hover {
  border-color: rgba(255, 193, 77, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.post-card__thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.post-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card__img { transform: scale(1.06); }

.post-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Category badges */
.post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 193, 77, 0.1);
  border: 1px solid rgba(255, 193, 77, 0.2);
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.post-cat:hover { background: rgba(255, 193, 77, 0.2); color: var(--gold); }

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.post-card:hover .post-card__title { color: var(--gold); }

.post-card__excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Post meta */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.post-meta__author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.post-meta__author:hover { color: var(--gold); }
.post-meta__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.post-meta__sep { color: var(--text-subtle); font-size: 0.7rem; }
.post-meta__readtime::after { content: ' read'; }

/* Read more link */
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.post-card__link:hover { color: var(--orange); gap: 10px; }


/* ─────────────────────────────────────────────────────────────────────────────
   12. Newsletter CTA Banner
───────────────────────────────────────────────────────────────────────────── */
.newsletter-cta {
  margin: 80px 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #131627 0%, #0f1829 100%);
  border: 1px solid var(--border-light);
  padding: 64px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter-cta::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,193,77,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-cta__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.newsletter-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}
.newsletter-cta__sub { color: var(--text-muted); font-size: 0.95rem; }
.newsletter-cta__form {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  min-width: 360px;
}
.newsletter-cta__input { flex: 1; min-width: 220px; }


/* ─────────────────────────────────────────────────────────────────────────────
   13. Single Post
───────────────────────────────────────────────────────────────────────────── */
.single-layout { padding-top: 40px; padding-bottom: 80px; }

/* Article header */
.post-header { margin-bottom: 40px; }
.post-header__top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.breadcrumb a { color: var(--text-subtle); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb__sep { color: var(--border-light); }
.breadcrumb__current { color: var(--text-muted); }

.post-header__title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; margin-bottom: 24px; }

/* Meta bar */
.post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
  font-size: 0.88rem;
}
.post-meta-bar .post-meta { border: none; padding: 0; }

/* Featured image */
.post-featured-image {
  margin-bottom: 48px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.post-featured-image img { width: 100%; max-height: 540px; object-fit: cover; display: block; }

/* Article content */
.single-post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 760px;
}
.single-post-content h2 { font-size: 1.7rem; margin-top: 2.2em; }
.single-post-content h3 { font-size: 1.35rem; margin-top: 1.8em; }
.single-post-content > p:first-child { font-size: 1.15rem; color: var(--text-primary); font-weight: 400; }

/* Tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.post-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.post-tag:hover { color: var(--gold); border-color: var(--gold); }

/* Post navigation (prev/next) */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 60px 0;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}
.nav-post {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.nav-post:hover { border-color: var(--border-light); transform: translateY(-2px); }
.nav-post--next { text-align: right; }
.nav-post__dir { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); }
.nav-post__title { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }


/* ─────────────────────────────────────────────────────────────────────────────
   14. Author Bio
───────────────────────────────────────────────────────────────────────────── */
.author-bio {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin: 48px 0;
}
.author-bio__avatar { width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0; object-fit: cover; border: 2px solid var(--border-light); }
.author-bio__avatar-link { display: block; flex-shrink: 0; }
.author-bio__by { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); margin-bottom: 4px; }
.author-bio__name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: block; text-decoration: none; margin-bottom: 8px; }
.author-bio__name:hover { color: var(--gold); }
.author-bio__text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.author-bio__link { font-size: 0.85rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.author-bio__link:hover { color: var(--orange); }


/* ─────────────────────────────────────────────────────────────────────────────
   15. Social Share
───────────────────────────────────────────────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 36px 0;
}
.social-share__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); }
.social-share__buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elevated);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--border-light); color: var(--text-primary); transform: translateY(-1px); }
.share-btn--twitter:hover { color: #1DA1F2; border-color: rgba(29, 161, 242, 0.3); background: rgba(29, 161, 242, 0.08); }
.share-btn--reddit:hover  { color: #FF4500; border-color: rgba(255,69,0,.3); background: rgba(255,69,0,.08); }
.share-btn--telegram:hover{ color: #2AABEE; border-color: rgba(42,171,238,.3); background: rgba(42,171,238,.08); }
.share-btn--copy.is-copied { color: var(--success); border-color: rgba(52,211,153,0.3); background: rgba(52,211,153,0.08); }


/* ─────────────────────────────────────────────────────────────────────────────
   16. Related Posts
───────────────────────────────────────────────────────────────────────────── */
.related-posts { margin: 60px 0; }
.related-posts__title { font-size: 1.4rem; font-family: var(--font-heading); font-weight: 700; margin-bottom: 28px; color: var(--text-primary); }
.related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s;
}
.related-card:hover { border-color: rgba(255,193,77,0.3); transform: translateY(-3px); }
.related-card__thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-elevated); }
.related-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-card__img { transform: scale(1.05); }
.related-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.related-card__title { font-family: var(--font-heading); font-size: 0.93rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; }
.related-card:hover .related-card__title { color: var(--gold); }
.related-card__meta { font-size: 0.78rem; color: var(--text-subtle); }


/* ─────────────────────────────────────────────────────────────────────────────
   17. Comments
───────────────────────────────────────────────────────────────────────────── */
.comments-area { margin: 60px 0 40px; }
.comments-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.comments-count { color: var(--gold); }

.comments-list { display: flex; flex-direction: column; gap: 0; }
.comments-list li,
.comments-list ol { list-style: none; }
.comment-body {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
}
.comment-meta { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.comment-author-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); }
.comment-author-info { flex: 1; }
.comment-author-info .fn { font-weight: 700; color: var(--text-primary); font-size: 0.95rem; }
.comment-author-info .fn a { color: var(--text-primary); text-decoration: none; }
.comment-author-info .fn a:hover { color: var(--gold); }
.comment-time { font-size: 0.78rem; color: var(--text-subtle); }
.comment-time a { color: var(--text-subtle); }
.comment-content { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.7; }
.comment-awaiting-moderation { display: block; font-size: 0.8em; color: var(--orange); margin-top: 6px; }
.reply { margin-top: 14px; }
.comment-reply-link {
  font-size: 0.82rem; font-weight: 600; color: var(--gold);
  background: rgba(255,193,77,0.08); border: 1px solid rgba(255,193,77,0.2);
  padding: 5px 14px; border-radius: 100px; text-decoration: none;
  transition: background 0.2s;
}
.comment-reply-link:hover { background: rgba(255,193,77,0.15); color: var(--gold); }

/* Nested comments */
.comments-list ol { padding-left: 32px; margin-top: 16px; }

/* Comment form */
.comment-form-heading { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--text-primary); display: block; margin-bottom: 8px; }
.comment-notes { font-size: 0.85rem; color: var(--text-subtle); margin-bottom: 20px; }
.comment-form { display: flex; flex-direction: column; gap: 4px; }
.comment-form .btn.btn--gold { margin-top: 8px; align-self: flex-start; }
.comment-form .required { color: var(--error); }
.comments-closed { color: var(--text-subtle); font-size: 0.9rem; font-style: italic; margin-top: 20px; }


/* ─────────────────────────────────────────────────────────────────────────────
   18. Sidebar & Widgets
───────────────────────────────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget,
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.sidebar-widget__title,
.widget-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-widget__title::before,
.widget-title::before {
  content: '';
  width: 3px; height: 14px;
  background: var(--gradient-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Crypto price widget */
.crypto-price-list { display: flex; flex-direction: column; gap: 4px; }
.crypto-price-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-elevated);
  font-size: 0.85rem;
  transition: background 0.2s;
}
.crypto-price-item:hover { background: var(--bg-secondary); }
.cpi__icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,193,77,0.1);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
}
.cpi__name { color: var(--text-muted); font-weight: 600; min-width: 35px; }
.cpi__price { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); flex: 1; }
.cpi__change { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; margin-left: auto; }
.change--up   { color: var(--success); }
.change--down { color: var(--error); }

.prices-footer { margin-top: 12px; font-size: 0.72rem; color: var(--text-subtle); text-align: right; }

/* Newsletter sidebar */
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form__input {}
.newsletter-widget__text { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }

/* Popular posts widget */
.popular-posts-list { display: flex; flex-direction: column; gap: 14px; }
.popular-post-item { display: flex; gap: 12px; text-decoration: none; align-items: center; }
.popular-post-item:hover .popular-post-item__title { color: var(--gold); }
.popular-post-item__num {
  width: 28px; min-width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.popular-post-item__title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); line-height: 1.35; transition: color 0.2s; }
.popular-post-item__date { font-size: 0.75rem; color: var(--text-subtle); display: block; margin-top: 3px; }

/* Category list widget */
.widget_categories .widget-inner ul { display: flex; flex-direction: column; gap: 4px; }
.widget_categories .widget-inner li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg-elevated);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.widget_categories .widget-inner li a:hover { color: var(--gold); background: rgba(255,193,77,0.08); }

/* Tags widget */
.widget_tag_cloud .widget-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-link, .widget_tag_cloud .widget-inner a {
  font-size: 0.78rem !important;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.tag-cloud-link:hover, .widget_tag_cloud .widget-inner a:hover { color: var(--gold); border-color: var(--gold); }


/* ─────────────────────────────────────────────────────────────────────────────
   19. Archive / Blog Index Hero
───────────────────────────────────────────────────────────────────────────── */
.archive-hero {
  padding: 80px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.archive-hero .container { max-width: 800px; }
.archive-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.archive-hero__title { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 14px; }
.archive-hero__title .the-category-title,
.archive-hero__title span { color: var(--text-primary); }
.archive-hero__description { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }
.archive-hero__sub { color: var(--text-muted); font-size: 1rem; }

/* Author specific */
.archive-author-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}
.archive-author-avatar { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--border-light); }
.archive-author-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); display: block; }
.archive-author-posts { font-size: 0.85rem; color: var(--text-subtle); }

/* Latest posts section header on index */
.blog-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.blog-section-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }

/* Archive search refine form */
.archive-hero__search-form { max-width: 500px; margin: 24px auto 0; }


/* ─────────────────────────────────────────────────────────────────────────────
   20. Search & 404 Pages
───────────────────────────────────────────────────────────────────────────── */
/* 404 */
.error-main { padding: 80px 0; }
.error-page {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.error-page__gfx { position: relative; text-align: center; flex-shrink: 0; }
.error-page__num {
  font-family: var(--font-heading);
  font-size: 9rem;
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: block;
  opacity: 0.6;
}
.error-page__coin { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.error-page__coin img { filter: drop-shadow(0 0 30px rgba(255,193,77,0.6)); animation: float-coin 5s ease-in-out infinite; }
.error-page__eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); display: block; margin-bottom: 12px; }
.error-page__title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 16px; }
.error-page__text { color: var(--text-muted); margin-bottom: 28px; }
.error-page__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.error-page__recent-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-subtle); margin-bottom: 12px; }
.error-page__recent-list { display: flex; flex-direction: column; gap: 8px; }
.error-page__recent-list li a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.error-page__recent-list li a:hover { color: var(--gold); }

/* Search no results */
.search-no-results { padding: 60px 0; text-align: center; }
.search-no-results__text { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }


/* ─────────────────────────────────────────────────────────────────────────────
   21. Static Pages
───────────────────────────────────────────────────────────────────────────── */
.page-main { padding: 0; }
.page-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-title { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0; }
.page-featured-image { margin-bottom: 0; background: var(--bg-secondary); }
.page-featured-image__img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 0; }
.page-content { padding-top: 40px; }


/* ─────────────────────────────────────────────────────────────────────────────
   22. Pagination
───────────────────────────────────────────────────────────────────────────── */
.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.page-numbers,
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s ease;
}
.page-numbers:hover { color: var(--gold); border-color: var(--gold); background: rgba(255,193,77,0.08); }
.page-numbers.current { background: linear-gradient(135deg, #FFC14D, #FF6B1A); color: #080912; border-color: transparent; }
.page-numbers.dots { background: transparent; border-color: transparent; color: var(--text-subtle); }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 16px; gap: 8px; }


/* ─────────────────────────────────────────────────────────────────────────────
   23. Footer
───────────────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: 0; }

.footer-wave { display: block; width: 100%; overflow: hidden; line-height: 0; }
.footer-wave svg { display: block; }

.footer-main { padding: 64px 0 48px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 48px;
}

/* Brand column */
.footer-brand__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-brand__logo-img { width: 32px; height: 32px; }
.footer-brand__logo-text { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: var(--text-primary); }
.footer-brand__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-subtle);
  line-height: 1.5;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
}

/* Footer social links */
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.footer-social-link:hover { color: var(--gold); border-color: var(--gold); background: rgba(255,193,77,.08); }
.footer-social-link svg { width: 16px; height: 16px; }

/* Footer widget columns */
.footer-widget__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }

/* Footer bar */
.footer-bar {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-subtle);
}
.footer-bar a { color: var(--text-subtle); }
.footer-bar a:hover { color: var(--gold); }
.footer-bar-links { display: flex; gap: 20px; }


/* ─────────────────────────────────────────────────────────────────────────────
   24. Back to Top
───────────────────────────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #FFC14D, #FF6B1A);
  color: #080912;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(255,107,26,0.4);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(255,107,26,0.6); }


/* ─────────────────────────────────────────────────────────────────────────────
   25. Animations & Keyframes
───────────────────────────────────────────────────────────────────────────── */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes float-coin {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-16px) rotate(1deg); }
}

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(15px, -20px); }
  50%       { transform: translate(-10px, 15px); }
  75%       { transform: translate(20px, 10px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255,193,77,0.3); }
  50%       { box-shadow: 0 0 40px rgba(255,193,77,0.6); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hero animation classes */
.animate-fade-in-up { animation: fade-in-up 0.7s ease both; }
.animate-fade-in-up--1 { animation-delay: 0.1s; }
.animate-fade-in-up--2 { animation-delay: 0.2s; }
.animate-fade-in-up--3 { animation-delay: 0.35s; }
.animate-fade-in-up--4 { animation-delay: 0.5s; }


/* ─────────────────────────────────────────────────────────────────────────────
   26. Responsive — Wide (≤1200px)
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .feature-card--hero { grid-column: span 2; grid-row: auto; }

  .categories-grid { grid-template-columns: repeat(3, 1fr); }

  .newsletter-cta {
    grid-template-columns: 1fr;
    padding: 40px 48px;
    text-align: center;
  }
  .newsletter-cta__form { justify-content: center; min-width: auto; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   27. Responsive — Tablet (≤1024px)
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Nav */
  .nav-toggle { display: flex; }
  .primary-navigation {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 85vw);
    height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 0 40px;
    overflow-y: auto;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .primary-navigation.is-open { transform: translateX(0); }
  .nav-overlay { display: block; }

  .nav-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px; }
  .nav-link { padding: 14px 16px; border-radius: 10px; font-size: 1rem; }
  .nav-menu__dropdown {
    position: static;
    opacity: 1;
    visibility: hidden;
    transform: none;
    background: var(--bg-elevated);
    border: none;
    border-radius: 10px;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, visibility 0.3s;
    padding: 0 8px;
  }
  .nav-item.is-dropdown-open > .nav-menu__dropdown {
    visibility: visible;
    height: auto;
    padding: 8px;
  }

  /* Layouts */
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
  .blog-layout .sidebar { order: -1; }

  .page-layout { grid-template-columns: 1fr; }
  .page-layout .sidebar { order: -1; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-subtitle { margin-inline: auto; }
  .hero-graphic { height: 320px; }
  .orbit-ring--3 { display: none; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* Posts grid */
  .posts-grid { grid-template-columns: 1fr; }

  /* Related */
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }

  /* Error page */
  .error-page { grid-template-columns: 1fr; text-align: center; max-width: 500px; }
  .error-page__gfx { display: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   28. Responsive — Mobile (≤768px)
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Featured grid */
  .featured-grid { grid-template-columns: 1fr; }
  .feature-card--hero { grid-column: auto; grid-row: auto; }

  /* Categories */
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter */
  .newsletter-cta { padding: 32px 24px; }
  .newsletter-cta__form { flex-direction: column; }

  /* Single post breadcrumb */
  .breadcrumb { font-size: 0.75rem; }

  /* Post nav */
  .post-navigation { grid-template-columns: 1fr; }

  /* Related posts */
  .related-posts__grid { grid-template-columns: 1fr; }

  /* Author bio */
  .author-bio { flex-direction: column; align-items: center; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bar-inner { flex-direction: column; gap: 10px; text-align: center; }

  /* Comments nested */
  .comments-list ol { padding-left: 16px; }

  /* Error page */
  .error-page__actions { flex-direction: column; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   29. Responsive — Small Mobile (≤480px)
───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero { padding: 80px 0 60px; }
  .hero-coin-img { width: 110px; height: 110px; }
  .hero-graphic { height: 260px; }
  .orbit-ring--2, .orbit-ring--3 { display: none; }

  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card { padding: 20px 16px; }
  .category-card__icon { width: 40px; height: 40px; }

  .btn--lg { padding: 13px 28px; font-size: 1rem; }

  .newsletter-cta { padding: 28px 20px; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   30. Utility Classes
───────────────────────────────────────────────────────────────────────────── */
.text-gold   { color: var(--gold)   !important; }
.text-cyan   { color: var(--cyan)   !important; }
.text-orange { color: var(--orange) !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.d-flex   { display: flex; }
.gap-md   { gap: 20px; }
.mt-auto  { margin-top: auto; }
.w-full   { width: 100%; }


/* ─────────────────────────────────────────────────────────────────────────────
   31. Print
───────────────────────────────────────────────────────────────────────────── */


/* -----------------------------------------------------------------------------
   32. Page Preloader
----------------------------------------------------------------------------- */
#btcblog-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--bg-dark, #080912);
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#btcblog-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.btcblog-preloader__text {
    font-family: var(--font-heading, 'Exo 2', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold, #FFC14D);
    opacity: 0.75;
}


/* -----------------------------------------------------------------------------
   33. AdSense / Ad-Slot Containers
----------------------------------------------------------------------------- */

/* Wrapper â€” never overflow:hidden (breaks ad rendering) */
.ad-slot-wrapper {
    display: block;
    width: 100%;
    margin: 28px 0;
    text-align: center;
    overflow: visible;
}

/* "Advertisement" label required by Google policy */
.ad-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7280);
    margin-bottom: 6px;
}

/* Sidebar 300x250 â€” reserve space to prevent CLS */
.ad-slot-wrapper--sidebar {
    min-height: 260px;
}

/* Below-post leaderboard / responsive unit */
.ad-slot-wrapper--below-post {
    padding: 12px 0;
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.07));
    border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.07));
    min-height: 100px;
}

/* In-content ad â€” centred, capped width, reserved height */
.ad-slot-wrapper--in-content {
    margin: 32px auto;
    max-width: 728px;
    min-height: 90px;
}

/* Make AdSense ins elements responsive */
.adsbygoogle {
    display: block;
    max-width: 100%;
}

/* Never let ads fight sticky header (z-index:900) or preloader (99999) */
.adsbygoogle,
ins.adsbygoogle {
    position: relative;
    z-index: auto;
}

/* Hide ad containers in print */
@media print {
    .ad-slot-wrapper,
    .adsbygoogle { display: none !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .price-ticker-bar, .sidebar, .newsletter-cta,
  .footer-main, .footer-bar, .back-to-top, .social-share, .related-posts,
  #comments, .post-navigation { display: none !important; }
  a { color: #000; text-decoration: underline; }
  .entry-content img { max-width: 400pt; }
  .single-post-content { max-width: 100%; }
  .hero { min-height: auto; padding: 20pt 0; }
}
