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

:root {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-white: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  --brand-primary: #0284c7;
  --brand-success: #059669;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background-color: #f8fafc;
}

body {
  margin: 0;
  padding: 0;
  background-color: #f8fafc !important;
  color: #334155 !important;
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Light Typography */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a !important;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
}

a {
  color: #0284c7;
  text-decoration: none;
  transition: opacity 0.15s ease, color 0.15s ease;
}
a:hover {
  color: #0369a1;
  opacity: 0.9;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Forum Cards */
.jurux-glass-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.jurux-glass-card:hover {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Badges */
.badge-minimal {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Status Indicator */
.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Primary Button */
.btn-jurux-primary {
  background-color: #0f172a;
  color: #ffffff !important;
  border: 1px solid #0f172a;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-jurux-primary:hover {
  background-color: #1e293b;
  border-color: #1e293b;
  opacity: 1;
}

/* Secondary Button */
.btn-jurux-secondary {
  background-color: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-jurux-secondary:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

/* Header */
.jurux-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Form Inputs */
.jurux-input {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.jurux-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Rating Pill */
.rating-pill-jurux {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Modal */
dialog.jurux-modal {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px;
  padding: 1.5rem;
  max-width: 540px;
  width: 90%;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
dialog.jurux-modal::backdrop {
  background-color: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

/* Global Dark Utility Overrides to Light Theme */
.text-white {
  color: #0f172a !important;
}
.text-zinc-200, .text-zinc-300, .text-slate-200, .text-slate-300 {
  color: #334155 !important;
}
.text-zinc-400, .text-slate-400 {
  color: #64748b !important;
}
.text-zinc-500, .text-slate-500 {
  color: #64748b !important;
}
.bg-zinc-950, .bg-slate-950, .bg-slate-900, .bg-zinc-900 {
  background-color: #ffffff !important;
}
.bg-zinc-800, .bg-slate-800 {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}
.border-zinc-800, .border-slate-800, .border-zinc-700, .border-slate-700 {
  border-color: #e2e8f0 !important;
}
.border-zinc-800\/60, .border-zinc-800\/80 {
  border-color: #e2e8f0 !important;
}

/* Forum Specific Elements */
.forum-thread-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: all 0.15s ease;
}
.forum-thread-item:hover {
  border-color: #cbd5e1;
  background-color: #fafbfc;
}
.forum-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.forum-upvote {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.forum-upvote:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
