@import "tailwindcss";

:root {
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --fg: #f5f5f5;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --border: #2a2a2a;
}

html {
  background: var(--bg);
  font-size: 130%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Admin panel day theme ----------
   The admin panel was built entirely with dark-mode Tailwind utility
   classes (bg-neutral-900, text-white, etc.) rather than semantic tokens,
   so retrofitting a light theme per-component would mean touching dozens
   of files. Instead, this scopes an override block under a data attribute
   set on the admin layout's root element — because Tailwind classes are
   just CSS classes, a more specific selector can safely repaint them
   without editing every page. This is a broad-coverage first pass over
   the most common patterns; anything unusually styled may need a
   follow-up touch-up. */
[data-admin-theme="day"] {
  --bg: #f7f7f8;
  --bg-elevated: #ffffff;
  --fg: #18181b;
  --border: #e4e4e7;
}
[data-admin-theme="day"] .bg-\[\#0a0a0a\],
[data-admin-theme="day"] .bg-\[\#0f0f0f\],
[data-admin-theme="day"] .bg-neutral-950,
[data-admin-theme="day"] .bg-neutral-900 { background-color: #ffffff !important; }
[data-admin-theme="day"] .bg-neutral-800 { background-color: #f1f1f3 !important; }
[data-admin-theme="day"] .bg-neutral-700 { background-color: #e4e4e7 !important; }
[data-admin-theme="day"] .hover\:bg-neutral-800:hover,
[data-admin-theme="day"] .hover\:bg-neutral-700:hover { background-color: #eeeef0 !important; }
[data-admin-theme="day"] .text-white { color: #18181b !important; }
[data-admin-theme="day"] .text-neutral-100,
[data-admin-theme="day"] .text-neutral-200,
[data-admin-theme="day"] .text-neutral-300 { color: #3f3f46 !important; }
[data-admin-theme="day"] .text-neutral-400 { color: #52525b !important; }
[data-admin-theme="day"] .text-neutral-500 { color: #71717a !important; }
[data-admin-theme="day"] .text-neutral-600 { color: #a1a1aa !important; }
[data-admin-theme="day"] .hover\:text-white:hover { color: #18181b !important; }
[data-admin-theme="day"] .border-neutral-700,
[data-admin-theme="day"] .border-neutral-800,
[data-admin-theme="day"] .border-neutral-900 { border-color: #e4e4e7 !important; }
[data-admin-theme="day"] input,
[data-admin-theme="day"] select,
[data-admin-theme="day"] textarea { color: #18181b; }
[data-admin-theme="day"] .btn-secondary { color: #18181b; }
/* The dashboard's stat cards use dark, low-opacity gradient washes
   (e.g. from-emerald-950/60) designed to sit under white text on a dark
   card. Flipping text to dark while leaving those gradients in place made
   several cards unreadable — dark text on a background that was still
   effectively dark. Dropping the gradient image entirely leaves the
   plain white .card background underneath, which reads fine. */
[data-admin-theme="day"] [class*="bg-gradient-to-br"] { background-image: none !important; }

a {
  color: inherit;
  text-decoration: none;
}

.badge-free { background: #404040; color: white; }
.badge-starter { background: #1d4ed8; color: white; }
.badge-plus { background: #6d28d9; color: white; }
.badge-premium { background: #be185d; color: white; }
.badge-ppv { background: #d97706; color: white; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.15s;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: #f5f5f5;
  border-radius: 0.5rem;
  display: inline-block;
}
.btn-secondary:hover { background: var(--bg-elevated); }

/* Thin, subtle scrollbars used on the sidebar and drawer */
.thin-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.thin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.thin-scrollbar::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 999px;
}
.thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}
.thin-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}

/* Global thin scrollbar for the whole site */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f0f;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #333 #0f0f0f;
}

/* Hides the scrollbar visually while keeping horizontal swipe/scroll on mobile
   (used for the category pill row) */
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes cross-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}
