/* ============================================================
   css/theme.css — Colors, fonts, CSS variables
   Change --accent here to retheme the entire site.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

:root {
  /* ── Palette ── */
  --ink        : #1a1a1a;
  --ink-soft   : #333333;
  --ink-muted  : #555555;
  --paper      : #f5f0e8;
  --paper-dark : #ede8dc;
  --paper-mid  : #e5dfd3;
  --accent     : #b22222;   /* ← Change to retheme */
  --accent-dk  : #8a1a1a;
  --accent-lt  : #d43a3a;
  --gold       : #8b6914;
  --rule       : #2c2c2c;
  --rule-light : #c8c0b0;
  --rule-faint : #ddd8cc;
  --white      : #ffffff;
  --muted      : #777777;
  --tag-bg     : #e8e2d6;

  /* ── Shadows ── */
  --shadow-sm  : 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md  : 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg  : 0 8px 24px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
  --shadow-xl  : 0 16px 40px rgba(0,0,0,0.14), 0 6px 16px rgba(0,0,0,0.08);

  /* ── Typography ── */
  --font-display : 'UnifrakturMaguntia', cursive;
  --font-head    : 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body    : 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-bengali : 'Noto Serif Bengali', 'Libre Baskerville', serif;

  /* ── Spacing ── */
  --gap   : 20px;
  --gap-sm: 12px;
  --gap-lg: 32px;

  /* ── Transitions ── */
  --ease      : 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out  : 0.25s cubic-bezier(0, 0, 0.2, 1);
  --ease-in   : 0.15s cubic-bezier(0.4, 0, 1, 1);
}

/* ── Dark mode variables ── */
:root.dark-mode {
  --ink        : #e8e0d0;
  --ink-soft   : #bbb0a0;
  --ink-muted  : #8a8070;
  --paper      : #1a1815;
  --paper-dark : #22201c;
  --paper-mid  : #2a2823;
  --accent     : #d43a3a;
  --accent-dk  : #b22a2a;
  --accent-lt  : #e05a5a;
  --gold       : #c99a2e;
  --rule       : #555;
  --rule-light : #443e36;
  --rule-faint : #332e28;
  --white      : #111;
  --muted      : #999;
  --tag-bg     : #2a2823;
  --shadow-sm  : 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md  : 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg  : 0 8px 24px rgba(0,0,0,0.4);
  --shadow-xl  : 0 16px 40px rgba(0,0,0,0.5);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(178, 34, 34, 0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tickerScroll {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-50%); }
}

@keyframes reactionPop {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── Utility animation classes ── */
.anim-fade-in    { animation: fadeIn 0.4s ease; }
.anim-fade-in-up { animation: fadeInUp 0.4s ease; }
.anim-scale-in   { animation: scaleIn 0.3s ease; }
