/* ── Minimalist Black & White Style Override ─────────────────────────────
   Loaded after the compiled Tailwind stylesheet.
   Goal: strip all hue, add breathing room for mobile.
   ───────────────────────────────────────────────────────────────────── */

/* ── 1. White canvas ───────────────────────────────────────────────────── */
body {
  background-color: #fff !important;
}

/* ── 2. Neutralize light tinted backgrounds → near-white ──────────────── */
.bg-blue-50,
.bg-blue-100,
.bg-amber-50,
.bg-amber-100,
.bg-green-50,
.bg-indigo-100,
.bg-purple-100,
.bg-sky-100,
.bg-teal-100,
.bg-pink-100,
.bg-red-100 {
  background-color: #f4f4f4 !important;
}

/* ── 3. Convert saturated action buttons → black ─────────────────────── */
.bg-blue-600,
.bg-purple-600,
.bg-red-600,
.bg-yellow-500 {
  background-color: #111 !important;
  color: #fff !important;
}

/* Load-more / secondary bg */
.bg-\[\#e4e6eb\] {
  background-color: #f0f0f0 !important;
  color: #111 !important;
}

/* ── 4. Neutralize colored text → near-black ─────────────────────────── */
.text-blue-400,
.text-blue-500,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-purple-600,
.text-purple-700,
.text-indigo-700,
.text-sky-700,
.text-teal-700,
.text-pink-700,
.text-red-500,
.text-red-600,
.text-red-700,
.text-green-600,
.text-green-700,
.text-amber-700,
.text-amber-800,
.text-amber-900 {
  color: #333 !important;
}

/* ── 5. Neutralize colored borders → light gray ──────────────────────── */
.border-blue-100,
.border-blue-200,
.border-amber-200,
.border-green-200,
.border-yellow-400 {
  border-color: #e0e0e0 !important;
}

/* Featured card top accent bar → black */
.border-t-blue-600 {
  border-top-color: #111 !important;
}

/* ── 6. Hover / active states for buttons ────────────────────────────── */
.hover\:bg-blue-700:hover,
.active\:bg-blue-800:active,
.hover\:bg-purple-700:hover,
.active\:bg-purple-800:active,
.hover\:bg-red-700:hover {
  background-color: #333 !important;
}

/* Load-more hover */
.hover\:bg-\[\#d8dadf\]:hover {
  background-color: #e0e0e0 !important;
}

/* ── 7. Floating bell: no pulse, plain black ─────────────────────────── */
.animate-color-pulse {
  animation: none !important;
  background-color: #111 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

/* ── 8. Category tag pills in header → uniform light gray ────────────── */
header span[class*="bg-"] {
  background-color: #f0f0f0 !important;
  color: #444 !important;
  border: 1px solid #e0e0e0;
}

/* ── 9. Gate card (subscription modal) ───────────────────────────────── */
.gc-card {
  background: #fff !important;
  border-color: #e0e0e0 !important;
}
.gc-btn {
  background: #111 !important;
  color: #fff !important;
}
.gc-email-link {
  color: #555 !important;
}

/* ── 10. Skeleton loader → neutral gray ──────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    #ebebeb 25%,
    #d5d5d5 50%,
    #ebebeb 75%
  ) !important;
  background-size: 200% 100% !important;
}

/* ── 11. Whitespace — more breathing room on mobile ──────────────────── */

/* More gap between cards */
article.mb-3 {
  margin-bottom: 1.5rem !important;
}
article.mb-6 {
  margin-bottom: 2rem !important;
}

/* Feed top padding */
main.min-h-screen {
  padding-top: 1rem !important;
}

/* ── 13. Navigation: clean white ─────────────────────────────────────── */
nav {
  background: #fff !important;
  border-top-color: #e0e0e0 !important;
}

/* ── 14. Modal confirm/delete button → black ─────────────────────────── */
#modal-overlay .bg-red-600 {
  background-color: #111 !important;
}
#modal-overlay .hover\:bg-red-700:hover {
  background-color: #333 !important;
}

/* ── 15. Hyperlinks → dark, no color ─────────────────────────────────── */
a.text-blue-400,
.underline.text-blue-400 {
  color: #555 !important;
}

/* ── 16. Thumbnail — grayscale image, flat container ─────────────────── */
article img[alt="Resource Thumbnail"] {
  filter: grayscale(100%);
}

/* Faint border on the thumbnail box */
article .pb-\[56\.25\%\] {
  border: 1px solid #e0e0e0;
}

/* Icon button square: ensure no inherited border-radius */
article button.absolute > div {
  border-radius: 0 !important;
}
