/* ==========================================================================
   GREEN LEGACY — CSS DESIGN SYSTEM & TOKENS
   Tagline: EARN. RECYCLE. REWARD.
   ========================================================================== */

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

:root {
  /* Primary Brand Colors */
  --color-primary-dark: #14532D;     /* CleanCred forest */
  --color-primary: #16A34A;          /* Emerald Green */
  --color-primary-light: #86EFAC;    /* restrained green highlight */
  --color-primary-subtle: #DCFCE7;   /* Mint Tint */
  --color-primary-glow: rgba(22, 163, 74, 0.25);

  /* Dark Navy & Neutrals */
  --color-navy: #17211B;             /* Primary text */
  --color-navy-light: #1E3A5F;
  --color-navy-dark: #0A1929;
  --color-bg: #F7F9F7;               /* Clean civic canvas */
  --color-surface: #FFFFFF;          /* Pure Card White */
  --color-surface-translucent: rgba(255, 255, 255, 0.88);
  --color-border: #DCE5DD;
  --color-border-hover: #B9CBBB;

  /* Typography Colors */
  --text-main: #17211B;
  --text-muted: #52605A;
  --text-light: #718078;
  --text-inverse: #FFFFFF;

  /* Waste Category Specific Colors */
  --waste-wet: #16A34A;              /* Green (10 Points) */
  --waste-wet-bg: #ECFDF5;
  --waste-wet-border: #A7F3D0;
  
  --waste-dry: #2563EB;              /* Blue (7 Points) */
  --waste-dry-bg: #EFF6FF;
  --waste-dry-border: #BFDBFE;

  --waste-harmful: #EF4444;          /* Red / Amber (5 Points) */
  --waste-harmful-bg: #FEF2F2;
  --waste-harmful-border: #FECACA;

  /* Status Colors */
  --status-pending: #F59E0B;
  --status-pending-bg: #FEF3C7;
  --status-verified: #10B981;
  --status-verified-bg: #D1FAE5;
  --status-rejected: #EF4444;
  --status-rejected-bg: #FEE2E2;
  --status-info: #3B82F6;
  --status-info-bg: #DBEAFE;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(16, 42, 67, 0.05);
  --shadow-sm: 0 1px 3px rgba(23, 33, 27, 0.06);
  --shadow-md: 0 3px 10px rgba(23, 33, 27, 0.08);
  --shadow-lg: 0 8px 20px rgba(23, 33, 27, 0.1);
  --shadow-glow: none;

  /* Radius Tokens */
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Layout */
  --nav-height: 72px;
  --mobile-nav-height: 64px;
  --container-max: 1280px;

  /* Font Families */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: var(--font-sans);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--color-bg);
  background-image: none;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.8rem, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 1.8vw + 0.6rem, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.975rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

/* Layout Utilities */
.app-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.main-content {
  flex: 1;
  padding-top: calc(var(--nav-height) + 1.5rem);
  padding-bottom: 3rem;
  width: 100%;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-green {
  background: var(--color-primary-subtle);
  color: var(--color-primary-dark);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.badge-navy {
  background: rgba(16, 42, 67, 0.08);
  color: var(--color-navy);
}

.badge-points {
  background: var(--color-primary-dark);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: none;
}

.badge-streak {
  background: #B45309;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* View Sections */
.view-section {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-section.active {
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}
