﻿/* =========================================================
   Zcash.Care â€” Design System (Light Charity Theme)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8f9fa;
  --bg-tertiary:   #f0f1f3;
  --bg-elevated:   #ffffff;
  --border:        #e5e7eb;
  --border-bright: #d1d5db;

  --gold:          #F4B728;
  --gold-dark:     #c8961a;
  --gold-light:    #ffd54f;
  --gold-muted:    rgba(244,183,40,0.12);
  --gold-glow:     0 0 20px rgba(244,183,40,0.2);

  --accent:        #1a1a2e;
  --accent-light:  #2d2d4e;

  --text-primary:  #1a1a1a;
  --text-secondary:#4a5568;
  --text-muted:    #9ca3af;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-gold:   0 0 24px rgba(244,183,40,0.15);

  --transition:    all 0.25s ease;
  --transition-slow: all 0.4s ease;

  --font-heading:  'Space Grotesk', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --max-width:     1200px;
  --nav-height:    70px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
ins.adsbygoogle { max-width: 100% !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold); }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Nav --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: var(--nav-height); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text-primary); flex-shrink: 0; }
.nav-logo span { color: var(--gold); }
.logo-shimmer { border-radius: 50%; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); border-bottom-color: var(--gold); }
.nav-ticker { display: flex; align-items: center; gap: 8px; background: var(--bg-secondary); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); flex-shrink: 0; }
.ticker-price { font-weight: 600; color: var(--text-primary); }
.ticker-change.up { color: #16a34a; }
.ticker-change.down { color: #dc2626; }
.nav-mobile-btn { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-mobile-btn span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }

/* --- Mobile Nav --- */
.mobile-nav { display: none; position: fixed; inset: 0; background: var(--bg-primary); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 32px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--text-primary); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* --- Hero --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-height) + 64px) 0 64px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #fff8e1 0%, #ffffff 50%, #f0f4ff 100%); }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.15; color: var(--text-primary); margin-bottom: 24px; }
.hero-sub { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image { position: absolute; right: max(16px, calc((100% - 1200px) / 2 + 24px)); top: 50%; transform: translateY(-50%); width: 360px; opacity: 0.85; filter: drop-shadow(var(--shadow-gold)); }
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); background: var(--gold-muted); border: 1px solid rgba(244,183,40,0.3); padding: 6px 14px; border-radius: 100px; margin-bottom: 16px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-decoration: none; }
.btn-primary { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-bright); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-1px); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* --- Sections --- */
.section { padding: 96px 0; }
.section-sm { padding: 48px 0; }
.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; }
.section-header.center p { margin: 0 auto; }
.lead { font-size: 1.15rem; color: var(--text-secondary); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

/* --- Cards --- */
.card { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; transition: var(--transition); }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.card-badge { display: inline-block; background: var(--gold-muted); color: var(--gold-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; margin-bottom: 12px; }
.card-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--gold-dark); }
.card-excerpt { color: var(--text-secondary); font-size: 0.95rem; }
.card-meta { display: flex; gap: 16px; color: var(--text-muted); font-size: 0.8rem; margin-top: 12px; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border-radius: var(--radius-md); overflow: hidden; }
.stat-item { background: var(--bg-secondary); padding: 32px 24px; text-align: center; }
.stat-value { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--gold-dark); }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }

/* --- Steps --- */
.step-list { display: flex; flex-direction: column; gap: 24px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-number { width: 40px; height: 40px; background: var(--gold); color: #1a1a1a; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.step-content h4 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 4px; color: var(--text-primary); }

/* --- Highlight Box --- */
.highlight-box { background: var(--gold-muted); border: 1px solid rgba(244,183,40,0.3); border-radius: var(--radius-md); padding: 20px 24px; }

/* --- Coming Soon Banner --- */
.coming-soon { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); border-radius: var(--radius-xl); padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.coming-soon h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.coming-soon p { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 1.1rem; }
.coming-soon-badge { display: inline-block; background: var(--gold); color: #1a1a1a; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 20px; }

/* --- Notify Form --- */
.notify-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.notify-form input[type="email"] { flex: 1; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-md); background: rgba(255,255,255,0.1); color: #fff; font-size: 0.95rem; outline: none; }
.notify-form input[type="email"]::placeholder { color: rgba(255,255,255,0.5); }
.notify-form input[type="email"]:focus { border-color: var(--gold); }

/* --- AdSense --- */
.ad-section { padding: 12px 0; }
.ad-center { text-align: center; }
.ad-slot { display: inline-block; background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: var(--radius-md); padding: 8px; position: relative; }
.ad-label { display: block; font-size: 0.65rem; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question { width: 100%; background: var(--bg-secondary); border: none; padding: 20px 24px; text-align: left; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; color: var(--text-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question::after { content: '+'; font-size: 1.4rem; color: var(--gold-dark); }
.faq-item.open .faq-question { background: var(--gold-muted); color: var(--gold-dark); }
.faq-item.open .faq-question::after { content: 'âˆ’'; }
.faq-answer { display: none; padding: 20px 24px; color: var(--text-secondary); background: var(--bg-primary); border-top: 1px solid var(--border); }
.faq-item.open .faq-answer { display: block; }

/* --- Footer --- */
.footer { background: var(--accent); color: rgba(255,255,255,0.9); padding: 48px 0 24px; margin-top: 80px; }
.footer-network { margin-bottom: 32px; }
.footer-network h5 { font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.network-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.network-links a { font-size: 0.8rem; color: rgba(255,255,255,0.6); border-bottom: 1px solid transparent; }
.network-links a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 12px; }
.footer-bottom p, .footer-bottom a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-top: 16px; line-height: 1.5; }

/* --- Blog / Article --- */
.page-header { background: linear-gradient(135deg, #fff8e1, #f0f4ff); padding: calc(var(--nav-height) + 48px) 0 48px; border-bottom: 1px solid var(--border); }
.page-header-content h1 { font-family: var(--font-heading); font-size: clamp(1.8rem,4vw,3rem); font-weight: 700; color: var(--text-primary); margin-top: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb-sep { color: var(--border-bright); }
.article-badge { display: inline-block; background: var(--gold-muted); color: var(--gold-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-top: 12px; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-body h2 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 40px 0 16px; }
.article-body h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin: 28px 0 12px; }
.article-body p { margin-bottom: 16px; color: var(--text-secondary); }
.article-body ul, .article-body ol { margin: 0 0 16px 24px; color: var(--text-secondary); }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }
.article-body code { font-family: var(--font-mono); background: var(--bg-tertiary); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--gold-dark); }
.article-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.sidebar-widget { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.sidebar-widget h4 { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.sidebar-links a::before { content: 'â†’'; color: var(--gold-dark); }
.sidebar-links a:hover { color: var(--gold-dark); }
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.data-table th { background: var(--bg-tertiary); padding: 12px 16px; text-align: left; font-weight: 600; color: var(--text-primary); border-bottom: 2px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.negative { color: #dc2626; }

/* --- Ext Links --- */
.ext-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.85rem; color: var(--text-secondary); background: var(--bg-secondary); }
.ext-link:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-muted); }

/* --- Cookie Banner --- */
.cookie-banner { position: fixed; bottom: 24px; left: 24px; right: 24px; max-width: 600px; background: var(--accent); border-radius: var(--radius-lg); padding: 20px 24px; display: flex; align-items: center; gap: 20px; box-shadow: var(--shadow-lg); z-index: 9999; transform: translateY(200px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-text { font-size: 0.9rem; color: rgba(255,255,255,0.8); flex: 1; }
.cookie-text a { color: var(--gold); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* --- Divider --- */
.divider { height: 1px; background: var(--border); margin: 0; }

/* --- Animations --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }


/* =========================================================
   CARD GRID — blog index layout
   ========================================================= */
.card { display: flex; flex-direction: column; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: var(--gold-muted);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  width: fit-content;
}
.card-title { font-size: 1.05rem; line-height: 1.4; margin-bottom: 10px; color: var(--text-primary); }
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--gold); }
.card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; flex: 1; margin-bottom: 0; }

/* =========================================================
   AD COMPLIANCE — sticky sidebar, in-content spacing
   ========================================================= */
.article-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.ad-sticky { position: sticky; top: calc(var(--nav-height) + 24px); }
.ad-in-content { margin: 40px 0; text-align: center; }
.ad-in-content ins { display: inline-block; }

/* =========================================================
   NAV LOGO — ensure left-aligned on all viewports
   ========================================================= */
.nav-inner { gap: 8px; }
.nav-logo { flex-shrink: 0; }
.nav-links { flex: 1; justify-content: center; }
/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .hero-image { display: none; }
}
@media (max-width: 768px) {
  .card-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  .card-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }

  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .coming-soon { padding: 40px 24px; }
  .notify-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
}

