/*
Theme Name: Moto Portal China
Theme URI: https://autoinchina.pl
Author: Auto In China Team
Author URI: https://autoinchina.pl
Description: Portal importu samochodów z Chin do Polski – niebiesko-żółty design inspirowany Copart.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moto-portal-china
Tags: automotive, dark, premium, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   DESIGN TOKENS – COPART BLUE & YELLOW
   ============================================ */
:root {
  /* Colors – Primary (Copart blue) */
  --mp-primary: #003B71;
  --mp-primary-hover: #002B54;
  --mp-primary-glow: rgba(0, 59, 113, 0.20);
  --mp-primary-light: rgba(0, 59, 113, 0.08);

  /* Colors – Secondary (Copart yellow/gold) */
  --mp-secondary: #F7B500;
  --mp-secondary-hover: #D49A00;

  /* Colors – Accent (yellow for prices & highlights) */
  --mp-accent: #F7B500;
  --mp-accent-hover: #D49A00;
  --mp-accent-glow: rgba(247, 181, 0, 0.15);

  /* Colors – Backgrounds (light like Copart) */
  --mp-bg-body: #F5F7FA;
  --mp-bg-header: #003B71;
  --mp-bg-card: #FFFFFF;
  --mp-bg-card-hover: #F0F4F8;
  --mp-bg-input: #F0F4F8;
  --mp-bg-modal: rgba(0, 59, 113, 0.5);
  --mp-bg-hero-overlay: linear-gradient(135deg, rgba(0,59,113,0.92) 0%, rgba(0,43,84,0.85) 100%);

  /* Colors – Borders */
  --mp-border: #E2E8F0;
  --mp-border-hover: #CBD5E1;
  --mp-border-focus: var(--mp-secondary);

  /* Colors – Text */
  --mp-text: #1A2B3C;
  --mp-text-secondary: #5A6E87;
  --mp-text-muted: #94A3B8;
  --mp-text-inverse: #FFFFFF;

  /* Colors – Semantic */
  --mp-success: #22C55E;
  --mp-success-bg: rgba(34, 197, 94, 0.12);
  --mp-warning: #F7B500;
  --mp-warning-bg: rgba(247, 181, 0, 0.12);
  --mp-error: #EF4444;
  --mp-error-bg: rgba(239, 68, 68, 0.10);
  --mp-info: #3B82F6;
  --mp-info-bg: rgba(59, 130, 246, 0.10);

  /* Typography */
  --mp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mp-font-heading: 'Outfit', var(--mp-font-body);
  --mp-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --mp-text-xs: 0.75rem;
  --mp-text-sm: 0.875rem;
  --mp-text-base: 1rem;
  --mp-text-lg: 1.125rem;
  --mp-text-xl: 1.25rem;
  --mp-text-2xl: 1.5rem;
  --mp-text-3xl: 1.875rem;
  --mp-text-4xl: 2.25rem;
  --mp-text-5xl: 3rem;

  /* Spacing */
  --mp-space-1: 0.25rem;
  --mp-space-2: 0.5rem;
  --mp-space-3: 0.75rem;
  --mp-space-4: 1rem;
  --mp-space-5: 1.25rem;
  --mp-space-6: 1.5rem;
  --mp-space-8: 2rem;
  --mp-space-10: 2.5rem;
  --mp-space-12: 3rem;
  --mp-space-16: 4rem;
  --mp-space-20: 5rem;

  /* Border Radius */
  --mp-radius-sm: 8px;
  --mp-radius-md: 12px;
  --mp-radius-lg: 16px;
  --mp-radius-xl: 24px;
  --mp-radius-full: 9999px;

  /* Shadows – deep, dramatic for dark theme */
  --mp-shadow-sm: 0 1px 3px rgba(0,0,0,0.20), 0 1px 2px rgba(0,0,0,0.15);
  --mp-shadow-md: 0 4px 16px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
  --mp-shadow-lg: 0 8px 30px rgba(0,0,0,0.30), 0 2px 8px rgba(0,0,0,0.15);
  --mp-shadow-xl: 0 20px 50px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.20);
  --mp-shadow-glow: 0 4px 20px var(--mp-accent-glow);

  /* Transitions */
  --mp-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --mp-duration-fast: 150ms;
  --mp-duration: 250ms;
  --mp-duration-slow: 400ms;

  /* Layout */
  --mp-container: 1280px;
  --mp-container-wide: 1440px;
  --mp-header-height: 72px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--mp-font-body);
  font-size: var(--mp-text-base);
  line-height: 1.6;
  color: var(--mp-text);
  background-color: var(--mp-bg-body);
  overflow-x: hidden;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--mp-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mp-text);
}

h1 { font-size: var(--mp-text-5xl); }
h2 { font-size: var(--mp-text-4xl); }
h3 { font-size: var(--mp-text-3xl); }
h4 { font-size: var(--mp-text-2xl); }
h5 { font-size: var(--mp-text-xl); }
h6 { font-size: var(--mp-text-lg); }

p {
  color: var(--mp-text-secondary);
  margin-bottom: var(--mp-space-4);
}

::selection {
  background: var(--mp-primary);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--mp-bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--mp-border-hover);
  border-radius: var(--mp-radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mp-text-muted);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mp-container {
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0 var(--mp-space-6);
}

.mp-container-wide {
  max-width: var(--mp-container-wide);
  margin: 0 auto;
  padding: 0 var(--mp-space-6);
}

.mp-section {
  padding: var(--mp-space-20) 0;
}

.mp-section-title {
  text-align: center;
  margin-bottom: var(--mp-space-12);
}

.mp-section-title h2 {
  margin-bottom: var(--mp-space-4);
}

.mp-section-title p {
  font-size: var(--mp-text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.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;
}

/* Fade in on scroll animation */
.mp-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--mp-duration-slow) var(--mp-ease),
              transform var(--mp-duration-slow) var(--mp-ease);
}

.mp-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
