/**
 * AI Automation Solutions - Base Styles
 * Contains: CSS Variables, Reset, Typography, Container
 */

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */

:root {
    /* Primary Colors */
    --primary: #1976d2;
    --primary-dark: #1565c0;
    --primary-light: #42a5f5;
    --secondary: #42a5f5;
    --accent: #64b5f6;
    --dark: #0d47a1;
    --dark-light: #1565c0;

    /* Neutral Colors */
    --gray: #546e7a;
    --gray-light: #90a4ae;
    --light: #e3f2fd;
    --white: #ffffff;

    /* Status Colors */
    --success: #2e7d32;
    --success-light: #4caf50;
    --warning: #ed6c02;
    --warning-light: #ff9800;
    --error: #d32f2f;
    --error-light: #f44336;
    --info: #0288d1;

    /* Gradients */
    --gradient: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --gradient-subtle: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);

    /* Semantic Background Colors */
    --bg-primary: #e3f2fd;
    --bg-secondary: #bbdefb;
    --bg-tertiary: #cce5f7;
    --bg-card: #f5faff;

    /* Semantic Text Colors */
    --text-primary: #0d47a1;
    --text-secondary: #546e7a;
    --text-muted: #6b7c88;

    /* Border Colors */
    --border-color: rgba(25, 118, 210, 0.12);
    --input-border: rgba(25, 118, 210, 0.15);

    /* Shadow Colors */
    --card-shadow: rgba(25, 118, 210, 0.1);

    /* Navigation */
    --nav-bg: rgba(227, 242, 253, 0.95);
    --nav-border: rgba(0, 0, 0, 0.05);

    /* Hero Section */
    --hero-gradient: linear-gradient(180deg, #e3f2fd 0%, #cce5f7 50%, #bbdefb 100%);
    --hero-glow-1: rgba(100, 181, 246, 0.15);
    --hero-glow-2: rgba(25, 118, 210, 0.1);
    --hero-glow-3: rgba(66, 165, 245, 0.08);
    --data-bit-color: rgba(25, 118, 210, 0.3);
}

/* Dark Theme */
[data-theme="dark"] {
    /* Semantic Background Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1a1f2b;
    --bg-card: #21262d;

    /* Semantic Text Colors */
    --text-primary: #e6edf3;
    --text-secondary: #a8b2c1;
    --text-muted: #7d8590;

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.15);

    /* Shadow Colors */
    --card-shadow: rgba(0, 0, 0, 0.3);

    /* Navigation */
    --nav-bg: rgba(13, 17, 23, 0.95);
    --nav-border: rgba(255, 255, 255, 0.08);

    /* Hero Section */
    --hero-gradient: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #1a1f2b 100%);
    --hero-glow-1: rgba(100, 181, 246, 0.1);
    --hero-glow-2: rgba(25, 118, 210, 0.08);
    --hero-glow-3: rgba(66, 165, 245, 0.05);
    --data-bit-color: rgba(100, 181, 246, 0.4);

    /* Override base colors for dark mode */
    --dark: #e6edf3;
    --gray: #a8b2c1;
    --gray-light: #7d8590;
    --light: #21262d;
    --white: #21262d;
    --gradient-subtle: linear-gradient(135deg, #1a1f2b 0%, #21262d 100%);
}

/* ==========================================================================
   CSS Reset
   ========================================================================== */

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

/* ==========================================================================
   Base HTML & Body Styles
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
    background-attachment: fixed;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
