/* ============================================================
   TECHBLOG — Dark Cyberpunk Theme
   ============================================================ */

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

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --bg-void:      #04070f;
  --bg-deep:      #070c1a;
  --bg-base:      #0a1225;
  --bg-card:      #0d1830;
  --bg-card-h:    #111f3c;
  --bg-glass:     rgba(10, 18, 37, 0.85);
  --bg-input:     #080f22;

  --cyan:         #00e5ff;
  --cyan-dim:     rgba(0, 229, 255, 0.08);
  --cyan-mid:     rgba(0, 229, 255, 0.25);
  --cyan-bright:  rgba(0, 229, 255, 0.6);
  --purple:       #9b72f8;
  --purple-dim:   rgba(155, 114, 248, 0.12);
  --green:        #10d47e;
  --orange:       #ff7a35;
  --red:          #ff4f6a;

  --text:         #ddeeff;
  --text-dim:     #7a9abd;
  --text-muted:   #3d5570;

  --border:       rgba(0, 229, 255, 0.1);
  --border-h:     rgba(0, 229, 255, 0.45);
  --border-card:  rgba(0, 229, 255, 0.12);

  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:         'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --header-h:     120px;
  --mascot-w:     340px;
  --radius:       12px;
  --radius-sm:    8px;

  --shadow:       0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 40px rgba(0, 229, 255, 0.08);
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-card);
  --glow-cyan:    0 0 20px rgba(0, 229, 255, 0.3);
  --glow-purple:  0 0 20px rgba(155, 114, 248, 0.3);

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.22s;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-void);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ─── Background Grid ────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ─── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);  font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-dim); }

.accent  { color: var(--cyan); }
.accent2 { color: var(--purple); }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.content-area {
  flex: 1;
  padding-right: var(--mascot-w);
  transition: padding-right var(--dur) var(--ease);
}

/* ─── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(4, 7, 15, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color var(--dur);
}
.logo:hover { color: var(--cyan); }

.logo-mark {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Only show the gradient box when it's the default emoji, not a custom logo image */
.logo-mark:not(:has(img)) {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 8px;
  box-shadow: var(--glow-cyan);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: all var(--dur);
}
.nav-link:hover { color: var(--cyan); background: var(--cyan-dim); }

.btn-admin {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid var(--border-h);
  background: var(--cyan-dim);
  transition: all var(--dur);
}
.btn-admin:hover {
  background: var(--cyan-mid);
  box-shadow: var(--glow-cyan);
}

/* ─── Mascot ─────────────────────────────────────────────────── */
.mascot-wrap {
  position: fixed;
  right: 0;
  bottom: 0;
  width: var(--mascot-w);
  z-index: 50;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.mascot-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 400px;
  background: radial-gradient(ellipse at center bottom,
    rgba(155, 114, 248, 0.18) 0%,
    rgba(0, 229, 255, 0.08) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.mascot-img {
  height: 78vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 30px rgba(155, 114, 248, 0.25))
          drop-shadow(0 0 60px rgba(0, 229, 255, 0.1));
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 100%);
}

/* When image fails to load, show a glowing silhouette */
.mascot-wrap.no-img .mascot-img { display: none; }

.mascot-wrap.no-img::after {
  content: '';
  display: block;
  width: 260px;
  height: 75vh;
  background:
    radial-gradient(ellipse 180px 240px at 50% 30%, rgba(155,114,248,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 120px 60px at 50% 8%, rgba(0,229,255,0.05) 0%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(155,114,248,0.04) 40%, rgba(0,229,255,0.05) 100%);
  border-radius: 60% 60% 20% 20%;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-h);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: var(--cyan-dim);
}

.hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--cyan); }
  50%       { opacity: 0.4; box-shadow: none; }
}

.hero h1 {
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--cyan); line-height: 1; }
.stat-lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ─── Section Header ─────────────────────────────────────────── */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-hdr h2 {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.section-hdr h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  border-radius: 2px;
}

/* ─── Post Cards ─────────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.post-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.post-card:hover::before { transform: scaleX(1); }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-date { display: flex; align-items: center; gap: 5px; }

.card-readtime {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--purple-dim);
  border-radius: 100px;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 500;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  transition: color var(--dur);
}
.post-card:hover .card-title { color: var(--cyan); }

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  transition: gap var(--dur);
}
.post-card:hover .read-more { gap: 10px; }

/* ─── Tag ────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border);
}

/* ─── Loading ────────────────────────────────────────────────── */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text-dim); margin-bottom: 8px; }

/* ─── Post Content Page ──────────────────────────────────────── */
.post-page {
  max-width: 740px;
  padding: 48px 0 100px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 36px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--dur);
}
.post-back:hover { color: var(--cyan); border-color: var(--border-h); background: var(--cyan-dim); }

.post-header { margin-bottom: 48px; }

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-header-meta .dot { opacity: 0.4; }

.post-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, rgba(221, 238, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.post-header-excerpt {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 16px;
  border-left: 3px solid var(--cyan);
}

.post-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border-h), transparent);
  margin-bottom: 48px;
}

/* ─── Post Components ────────────────────────────────────────── */
.post-components { display: flex; flex-direction: column; gap: 32px; }

.comp-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.comp-heading::before {
  content: '##';
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--cyan);
  opacity: 0.7;
}

.comp-paragraph {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.comp-code {
  position: relative;
  background: #020509;
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 229, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

.code-lang-badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--mono);
  cursor: pointer;
  transition: all var(--dur);
}
.code-copy-btn:hover { color: var(--cyan); border-color: var(--border-h); }
.code-copy-btn.copied { color: var(--green); border-color: var(--green); }

.code-body {
  padding: 20px;
  overflow-x: auto;
}

.code-body pre {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #7ee787;
  white-space: pre;
  tab-size: 2;
}

.comp-list { padding: 0; }

.comp-list ol,
.comp-list ul {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-list li {
  color: var(--text-dim);
  line-height: 1.7;
  padding-left: 8px;
}

.comp-list li::marker {
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--mono);
}

/* ─── Inline highlight (backtick syntax) ────────────────────── */
.inline-hl {
  background: rgba(0, 210, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.875em;
  font-style: normal;
  white-space: nowrap;
}

/* ─── Image ──────────────────────────────────────────────────── */
.comp-image {
  margin: 1rem 0;
  text-align: center;
}

.comp-image img {
  max-width: 100%;
  border-radius: var(--radius);
}

.comp-image-caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.comp-faq {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-label {
  padding: 12px 20px 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--dur);
}
.faq-question:hover { background: var(--cyan-dim); }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answers {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-answers { max-height: 1000px; }

.faq-answer {
  padding: 0 20px 18px 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 0;
}
.faq-item.open .faq-answer:first-child { border-top-color: var(--border); }

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dim);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099cc);
  color: var(--bg-void);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid var(--border-h);
}
.btn-secondary:hover { background: var(--cyan-mid); box-shadow: var(--glow-cyan); }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); background: rgba(255,255,255,0.04); }

.btn-danger {
  background: rgba(255, 79, 106, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 79, 106, 0.25);
}
.btn-danger:hover { background: rgba(255, 79, 106, 0.22); box-shadow: 0 0 16px rgba(255,79,106,0.2); }

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-textarea,
.form-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--dur), box-shadow var(--dur);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-textarea.mono {
  font-family: var(--mono);
  font-size: 0.875rem;
  min-height: 200px;
  color: #7ee787;
  background: #020509;
}

.form-select option { background: var(--bg-card); }

/* ─── Toggle ─────────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle input { display: none; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.25s;
}

.toggle input:checked + .toggle-slider {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

/* ─── Toast ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  animation: toast-in 0.3s var(--ease);
  max-width: 360px;
}

.toast-success { background: rgba(16, 212, 126, 0.15); border: 1px solid rgba(16,212,126,0.4); color: var(--green); }
.toast-error   { background: rgba(255, 79, 106, 0.15); border: 1px solid rgba(255,79,106,0.4); color: var(--red); }
.toast-info    { background: rgba(0, 229, 255, 0.1);   border: 1px solid var(--border-h); color: var(--cyan); }

@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --mascot-w: 0px; }
  .mascot-wrap { display: none; }
  .content-area { padding-right: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .posts-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 36px; }
  .hero-stats { gap: 20px; }
  .post-page { padding: 32px 0 60px; }
}
