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

:root {
  /* HSL tailored color palette - Premium Slate Light */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* App Backgrounds */
  --bg-app: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  
  /* Borders */
  --border-subtle: rgba(15, 23, 42, 0.06);
  --border-strong: rgba(15, 23, 42, 0.12);
  
  /* Text colors */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  /* Accent Red/Crimson */
  --accent-color: #ef4444; /* Red 500 */
  --accent-hover: #dc2626; /* Red 600 */
  --accent-rgb: 239, 68, 68;
  --accent-glow: rgba(239, 68, 68, 0.12);
  
  /* Category Specific Colors */
  --color-tag-car-care: #2563eb;    /* Royal Blue */
  --color-tag-new-car: #7c3aed;     /* Electric Purple */
  --color-tag-driving-tip: #db2777; /* Hot Pink */
  --color-tag-eco-ev: #059669;      /* Emerald Green */

  /* Glassmorphic values */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 10px 25px -5px rgba(239, 68, 68, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-elastic: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

[data-theme="dark"] {
  /* Premium Obsidian / Carbon Dark Theme */
  --bg-app: #090d16;
  --bg-surface: #111827;
  --bg-surface-hover: #1f2937;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  
  --text-primary: #f3f4f6; /* Gray 100 */
  --text-secondary: #9ca3af; /* Gray 400 */
  --text-muted: #4b5563; /* Gray 600 */
  
  --accent-color: #f43f5e; /* Rose 500 */
  --accent-hover: #fb7185; /* Rose 400 */
  --accent-rgb: 244, 63, 94;
  --accent-glow: rgba(244, 63, 94, 0.25);
  
  /* Category Colors (Slightly lighter for dark mode) */
  --color-tag-car-care: #60a5fa;    
  --color-tag-new-car: #a78bfa;     
  --color-tag-driving-tip: #f472b6; 
  --color-tag-eco-ev: #34d399;      

  --glass-bg: rgba(17, 24, 39, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 25px -5px rgba(244, 63, 94, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.625;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-app);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Global utility classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Adsense Banner Styles */
.adsense-placeholder {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-secondary);
  text-align: center;
  padding: 1.5rem;
  margin: 2.5rem auto;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.adsense-placeholder:hover {
  opacity: 1;
  border-color: var(--accent-color);
}
