/* ============================================================
   DigiTech Lifestyle — theme.css
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bg: #04060f;
  --surface: #080d1c;
  --text: #fff;
  --panel: rgba(255,255,255,.06);
  --line: rgba(255,255,255,.10);
  --muted: #8896b0;
  --blue: #0b5cff;
  --cyan: #23d7ff;
  --pink: #e100ff;
  --green: #39e58c;
  --orange: #ff8a00;
  --red: #ef4444;
  --purple: #8257ff;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --transition: .3s ease;
  --grad: linear-gradient(135deg,var(--blue),var(--cyan));
}

html[data-theme="light"] {
  --bg: #f5f7fb;
  --text: #0d1220;
  --panel: rgba(255,255,255,.82);
  --line: rgba(10,20,40,.14);
  --muted: #526071;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Ambient glow layers */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(11,92,255,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -3;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(35,215,255,.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -3;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* --- Skip Link (Accessibility) ---------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* --- Animated Background ---------------------------------- */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -5;
  background: var(--bg);
  overflow: hidden;
}
.animated-bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .35;
  mix-blend-mode: screen;
  animation: orb 24s linear infinite;
}
.animated-bg span:nth-child(1) { width: 170px; height: 170px; background: var(--blue);   left: 5%;  top: 18%; }
.animated-bg span:nth-child(2) { width: 220px; height: 220px; background: var(--cyan);   left: 74%; top: 12%; animation-delay: -9s; }
.animated-bg span:nth-child(3) { width: 150px; height: 150px; background: var(--pink);   left: 44%; top: 72%; animation-delay: -14s; }
.animated-bg span:nth-child(4) { width: 125px; height: 125px; background: var(--green);  left: 12%; top: 80%; animation-delay: -20s; }
.animated-bg span:nth-child(5) { width: 190px; height: 190px; background: var(--orange); left: 84%; top: 66%; animation-delay: -5s; }

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: .09;
  background:
    linear-gradient(90deg, transparent 97%, var(--cyan) 98%, transparent 99%) 0 0 / 80px 80px,
    linear-gradient(0deg,  transparent 97%, var(--cyan) 98%, transparent 99%) 0 0 / 80px 80px;
  animation: grid 22s linear infinite;
}

@keyframes orb {
  0%   { transform: translate3d(0,0,0) scale(1); }
  25%  { transform: translate3d(85px,-50px,0) scale(1.15); }
  50%  { transform: translate3d(20px,80px,0) scale(.92); }
  75%  { transform: translate3d(-70px,22px,0) scale(1.08); }
  100% { transform: translate3d(0,0,0) scale(1); }
}
@keyframes grid { to { background-position: 160px 80px; } }

@media (prefers-reduced-motion: reduce) {
  .animated-bg span, .grid-bg { animation: none; }
}

/* --- Layout helpers --------------------------------------- */
.wrap { max-width: 1180px; margin: auto; padding: 0 22px; }

/* --- Crypto Price Ticker Bar ------------------------------ */
.crypto-ticker-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 32px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  gap: 0;
}
.crypto-ticker-bar .ticker-track {
  display: flex;
  gap: 28px;
  padding: 0 20px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}
.crypto-ticker-bar:hover .ticker-track { animation-play-state: paused; }
.ticker-coin { display: flex; align-items: center; gap: 6px; }
.ticker-coin .sym { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ticker-coin .price { color: var(--text); }
.ticker-coin .chg-up   { color: var(--green); }
.ticker-coin .chg-down { color: var(--red); }

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Top Bar ---------------------------------------------- */
.top-bar {
  height: 34px;
  background: #050505;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: #fff;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.top-bar a { font-weight: 800; margin-right: 18px; }
.top-bar a:hover { color: var(--cyan); }

/* --- Social Icons ----------------------------------------- */
.social { display: flex; gap: 9px; }
.social a {
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.social a:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- Header ---------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  height: 78px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}
html[data-theme="light"] .site-header { background: rgba(255,255,255,.76); }

.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; gap: 16px; }

.site-branding {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
  font-size: 22px;
  white-space: nowrap;
}
.site-branding img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(35,215,255,.35);
}
.site-branding .tagline {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 400;
}

.main-nav { display: flex; gap: 22px; }
.main-nav a {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--cyan); text-shadow: 0 0 14px rgba(35,215,255,.45); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.btn-round {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: border-color var(--transition);
}
.btn-round:hover { border-color: var(--cyan); }

/* --- Ticker ----------------------------------------------- */
.breaking-ticker {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  font-size: 13px;
}
.ticker-label {
  background: var(--blue);
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 900;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
}

/* --- Category Tags ---------------------------------------- */
.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  border-radius: 3px;
  padding: 6px 9px;
  letter-spacing: .04em;
}
.tag-crypto      { background: var(--blue); }
.tag-defi        { background: var(--pink); }
.tag-stablecoins { background: var(--green); color: #001; }
.tag-exchanges   { background: var(--red); }
.tag-wallets     { background: #00a6ff; }
.tag-cbdc        { background: var(--orange); }
.tag-blockchains { background: var(--purple); }
.tag-ai          { background: var(--cyan); color: #001; }
.tag-web3        { background: var(--purple); }
.tag-news        { background: var(--red); }
.tag-reviews     { background: var(--orange); }
.tag-tools       { background: var(--green); color: #001; }

/* --- Hero Grid -------------------------------------------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .8fr;
  gap: 20px;
}
.hero-featured {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: var(--shadow);
}
.hero-featured img,
.tile img,
.post-card img,
.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transition: transform .65s ease, opacity .65s ease;
}
.hero-featured:hover img,
.tile:hover img,
.post-card:hover img,
.video-card:hover img { transform: scale(1.06); opacity: .85; }

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.86));
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.hero-featured h1 { font-size: 34px; line-height: 1.08; margin: 12px 0 8px; }
.post-meta { color: #cfd8ea; font-size: 12px; font-weight: 700; }

.side-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tile {
  height: 172px;
  background: #101018;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.tile .overlay-gradient { padding: 14px; }
.tile h3 { font-size: 14px; line-height: 1.22; margin: 8px 0 0; }

/* --- Ad Slots --------------------------------------------- */
.ad-slot {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
}
.ad-slot-leaderboard { min-height: 90px; margin: 28px 0; }
.ad-slot-sidebar     { min-height: 250px; width: 300px; margin: 0 auto 22px; }
.ad-slot-in-content  { min-height: 280px; margin: 32px 0; }

/* --- Main Content Grid ------------------------------------ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  margin-top: 48px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--grad);
  flex-shrink: 0;
}

/* --- Post Card Grid --------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.post-card {
  background: linear-gradient(135deg, var(--panel), rgba(255,255,255,.025));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35,215,255,.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}
.post-card:hover {
  border-color: rgba(35,215,255,.4);
  box-shadow: 0 18px 45px rgba(35,215,255,.12), 0 0 0 1px rgba(35,215,255,.15);
  transform: translateY(-3px);
}
.post-card:hover::before { opacity: 1; }
.post-card .thumbnail { height: 160px; overflow: hidden; }
.post-card .card-body { padding: 16px; }
.post-card h3 { font-size: 17px; line-height: 1.25; margin: 9px 0; }
.post-card .excerpt { font-size: 13px; color: var(--muted); line-height: 1.55; }
.read-more { font-size: 12px; font-weight: 900; color: var(--cyan); margin-top: 10px; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* --- Sidebar --------------------------------------------- */
.widget {
  background: linear-gradient(135deg, var(--panel), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 22px;
  backdrop-filter: blur(16px);
  transition: border-color var(--transition);
}
.widget:hover { border-color: var(--cyan); }

.editor-pick-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.editor-pick-row:last-child { border-bottom: none; }
.editor-pick-row img { width: 78px; height: 66px; object-fit: cover; border-radius: 12px; }
.editor-pick-row strong { display: block; font-size: 13px; line-height: 1.35; }

.follow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.follow-row:last-child { border-bottom: none; }
.follow-btn {
  background: var(--blue);
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.follow-btn:hover { background: var(--cyan); color: #001; }

/* --- Video Section ---------------------------------------- */
.video-section { margin: 48px 0; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.video-card {
  height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #111;
  border: 1px solid var(--line);
  transition: border-color var(--transition);
}
.video-card:hover { border-color: var(--cyan); }
.video-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.82));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.video-info b { display: block; margin-top: 6px; font-size: 14px; line-height: 1.25; }
.play-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 0 25px rgba(11,92,255,.65);
  font-size: 18px;
  transition: background var(--transition), transform var(--transition);
}
.video-card:hover .play-btn { background: var(--cyan); color: #001; transform: scale(1.1); }

/* --- Categories ------------------------------------------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }

.cat-card {
  background: linear-gradient(135deg, var(--panel), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 12px 32px rgba(35,215,255,.12); }
.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 22px;
}
.cat-card b { display: block; font-size: 15px; font-weight: 900; }
.cat-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; }

/* --- Trust Strip ------------------------------------------ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 24px 0 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.trust-item .t-icon { font-size: 16px; }
.trust-item .t-highlight { color: var(--cyan); font-weight: 900; }

/* --- Newsletter ------------------------------------------- */
.newsletter {
  background: linear-gradient(135deg, rgba(11,92,255,.12), rgba(35,215,255,.06));
  border: 1px solid rgba(35,215,255,.18);
  border-radius: var(--radius);
  padding: 48px 36px;
  margin: 48px 0;
  backdrop-filter: blur(16px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(35,215,255,.07) 0%, transparent 65%);
  pointer-events: none;
}
.newsletter h2 { font-size: 22px; margin-bottom: 8px; }
.newsletter p  { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  background: rgba(0,0,0,.3);
  color: var(--text);
  font-size: 14px;
}
html[data-theme="light"] .newsletter-form input { background: #fff; }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button {
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 14px 24px;
  font-weight: 900;
  font-size: 14px;
  transition: background var(--transition);
  white-space: nowrap;
}
.newsletter-form button:hover { background: var(--cyan); color: #001; }

/* --- Single Post / Article -------------------------------- */
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 40px; line-height: 1.12; margin: 16px 0; }
.article-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.article-meta .author-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.article-featured-img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 36px;
}

.article-content {
  max-width: 720px;
  line-height: 1.8;
  font-size: 17px;
}
.article-content h2 { font-size: 26px; margin: 36px 0 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.article-content h3 { font-size: 20px; margin: 28px 0 12px; }
.article-content p  { margin-bottom: 20px; }
.article-content a  { color: var(--cyan); text-decoration: underline; }
.article-content ul,
.article-content ol { padding-left: 24px; margin-bottom: 20px; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--cyan);
  padding: 16px 20px;
  background: var(--panel);
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: var(--muted);
}
.article-content code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: 'Fira Code', monospace;
}
.article-content pre {
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.article-content th,
.article-content td { border: 1px solid var(--line); padding: 10px 14px; }
.article-content th { background: var(--panel); font-weight: 900; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 24px; }
.article-tags a {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color var(--transition), color var(--transition);
}
.article-tags a:hover { border-color: var(--cyan); color: var(--cyan); }

/* Affiliate disclosure */
.affiliate-notice {
  background: rgba(11,92,255,.08);
  border: 1px solid rgba(11,92,255,.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}
.affiliate-notice strong { color: var(--text); }

/* --- Related Posts ---------------------------------------- */
.related-posts { margin: 48px 0 0; }
.related-posts .post-grid { grid-template-columns: repeat(3, 1fr); }

/* --- Comments -------------------------------------------- */
.comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.comment-list { margin: 24px 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.comment-author img { width: 40px; height: 40px; border-radius: 50%; }
.comment-meta { font-size: 12px; color: var(--muted); }
.comment-form { margin-top: 32px; }
.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--panel);
  color: var(--text);
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 14px;
}
.comment-form button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 900;
  font-size: 14px;
  transition: background var(--transition);
}
.comment-form button:hover { background: var(--cyan); color: #001; }

/* --- Pagination ------------------------------------------ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 48px 0;
}
.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition);
}
.pagination .current,
.pagination a:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- 404 Page -------------------------------------------- */
.not-found-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.not-found-wrap .big-number { font-size: 120px; font-weight: 900; color: var(--blue); line-height: 1; }
.not-found-wrap h1 { font-size: 28px; margin: 16px 0; }
.not-found-wrap p  { color: var(--muted); max-width: 400px; }

/* --- Search Form ----------------------------------------- */
.search-form { display: flex; gap: 10px; }
.search-form input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}
.search-form button {
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 12px 20px;
  font-weight: 900;
}

/* --- Footer ---------------------------------------------- */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 60px;
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { }
.footer-brand .f-logo {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}
.footer-disclaimer { font-size: 11px; color: var(--muted); margin-top: 8px; opacity: .7; }

/* --- WordPress Core Alignment Classes -------------------- */
.alignfull  { margin-left: calc(-1 * var(--wrap-padding, 22px)); margin-right: calc(-1 * var(--wrap-padding, 22px)); max-width: calc(100% + 2 * var(--wrap-padding, 22px)); }
.alignwide  { margin-left: -5%; margin-right: -5%; max-width: 110%; }
.alignleft  { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: center; }

/* --- Responsive ------------------------------------------ */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid,
  .content-grid { grid-template-columns: 1fr; }
  .post-grid,
  .video-grid,
  .category-grid { grid-template-columns: 1fr 1fr; }
  .ad-slot-sidebar { width: 100%; max-width: 468px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-strip { gap: 16px 28px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 15px; }
  .top-bar { display: none; }
  .crypto-ticker-bar { display: none; }
  .hero-featured { min-height: 430px; }
  .hero-featured h1 { font-size: 28px; }
  .side-tile-grid,
  .post-grid,
  .video-grid,
  .category-grid { grid-template-columns: 1fr; }
  .content-grid { margin-top: 34px; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; }
  .article-featured-img { height: 220px; }
  .article-content { font-size: 16px; }
  .article-header h1 { font-size: 28px; }
  .related-posts .post-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 14px 20px; }
}

/* --- Mobile Nav Menu -------------------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 18px;
}
@media (max-width: 980px) {
  .mobile-menu-toggle { display: flex; }
  .main-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0; background: rgba(5,5,5,.97); border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 16px; }
}

/* --- Print ------------------------------------------------ */
@media print {
  .animated-bg, .grid-bg, .site-header, .site-footer .social,
  .ad-slot, .newsletter, .video-section { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
