/* main.css — BestAIToolsDaily Global Styles & Design System */

:root {
  /* Primary Brand */
  --color-primary:       #2563EB;   /* Blue 600 */
  --color-primary-dark:  #1D4ED8;   /* Blue 700 */
  --color-primary-light: #DBEAFE;   /* Blue 100 */

  /* Accent */
  --color-accent:        #7C3AED;   /* Violet 600 */
  --color-accent-light:  #EDE9FE;   /* Violet 100 */

  /* Gradient */
  --gradient-hero: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-card: linear-gradient(135deg, #EFF6FF 0%, #F5F3FF 100%);

  /* Neutrals */
  --color-text-primary:   #0F172A;  /* Slate 900 */
  --color-text-secondary: #475569;  /* Slate 600 */
  --color-text-muted:     #94A3B8;  /* Slate 400 */
  --color-bg:             #FFFFFF;
  --color-bg-soft:        #F8FAFC;  /* Slate 50 */
  --color-border:         #E2E8F0;  /* Slate 200 */

  /* Semantic */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error:   #EF4444;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(37,99,235,0.10);
  --shadow-lg:  0 10px 40px rgba(37,99,235,0.15);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06), 0 0 1px rgba(0,0,0,0.04);

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

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing Scale */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Typography Classes */
.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.text-h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
}

.text-body-lg {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.text-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-sm {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* Common Layout Components */
main {
  flex-grow: 1;
}

section {
  padding: var(--space-2xl) 0;
}

@media (max-width: 768px) {
  section {
    padding: var(--space-xl) 0;
  }
}

/* Text Gradient */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Base Image and Icon settings */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2px;
  vertical-align: middle;
}
