/* ═══════════════════════════════════════════════════════════════════════
   STUFF CURIOUS — EDITS PATCH v3
   Append to style.css or load as assets/css/edits-v3.css
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── EDIT: Brighter body copy ───────────────────────────────────────────
   Old --text-secondary was #a89ec4 (too dim).
   New value #ccc7e8 lifts it noticeably without hitting full white.       */
:root {
  --text-secondary: #ccc7e8;
}

/* Also brighten paragraph text inside post content specifically */
.post-content p,
.post-content li,
.post-card-excerpt,
.hero-excerpt,
.recipe-steps__content p,
.recipe-steps__content li {
  color: #ccc7e8;
}

/* ─── NEWSLETTER MODAL ───────────────────────────────────────────────────── */
#sc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;

  /* start invisible — JS adds .sc-modal-visible */
  opacity: 0;
  transition: opacity 0.25s ease;
}
#sc-modal-overlay.sc-modal-visible {
  opacity: 1;
}
#sc-modal-overlay.sc-modal-visible .sc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.sc-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 93, 246, 0.2);

  /* start offset — transitions in with overlay */
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease;
}

.sc-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.sc-modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
}

.sc-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.25rem;
  font-weight: 700;
}
.sc-modal-icon--success {
  background: rgba(59, 180, 100, 0.12);
  color: #3ecf5e;
  border: 1px solid rgba(59, 180, 100, 0.25);
}
.sc-modal-icon--info {
  background: rgba(139, 93, 246, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 93, 246, 0.25);
}
.sc-modal-icon--error {
  background: rgba(220, 53, 69, 0.1);
  color: #f77;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.sc-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.sc-modal-body {
  font-size: 0.9rem;
  color: #ccc7e8;
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.sc-modal-btn {
  background: var(--accent-purple);
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 93, 246, 0.4);
  transition: background 0.15s, transform 0.15s;
}
.sc-modal-btn:hover {
  background: var(--accent-purple-dark);
  transform: translateY(-1px);
}

/* ─── EDIT: Clickable category on single posts ───────────────────────────
   The post-cat is now an <a> tag in single.php — these styles ensure
   it looks the same as the old <span> but is visibly interactive.        */
a.post-cat {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s;
}
a.post-cat:hover {
  opacity: 0.8;
  box-shadow: 0 1px 0 currentColor;
}
