/*
Theme Name: Moto Portal
Theme URI: https://example.com/moto-portal
Author: Moto Portal Team
Author URI: https://example.com
Description: Profesjonalny portal ogłoszeń motoryzacyjnych – import aut z Chin. Jasny, premium design inspirowany estetyką Polestar/Rivian.
Version: 2.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
Tags: automotive, light, premium, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================
   DESIGN TOKENS – LIGHT PREMIUM
   ============================================ */
:root {
  /* Colors – Primary (red accent) */
  --mp-primary: #E53935;
  --mp-primary-hover: #C62828;
  --mp-primary-glow: rgba(229, 57, 53, 0.15);
  --mp-primary-light: rgba(229, 57, 53, 0.08);

  /* Colors – Secondary (navy) */
  --mp-secondary: #1B2838;
  --mp-secondary-hover: #0F1923;

  /* Colors – Accent (navy for prices) */
  --mp-accent: #1B2838;
  --mp-accent-hover: #0F1923;
  --mp-accent-glow: rgba(27, 40, 56, 0.1);

  /* Colors – Backgrounds */
  --mp-bg-body: #F7F8FA;
  --mp-bg-header: rgba(255, 255, 255, 0.92);
  --mp-bg-card: #FFFFFF;
  --mp-bg-card-hover: #F0F2F5;
  --mp-bg-input: #F0F2F5;
  --mp-bg-modal: rgba(27, 40, 56, 0.5);
  --mp-bg-hero-overlay: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(247,248,250,0.80) 100%);

  /* Colors – Borders */
  --mp-border: #E5E7EB;
  --mp-border-hover: #D1D5DB;
  --mp-border-focus: var(--mp-primary);

  /* Colors – Text */
  --mp-text: #1B2838;
  --mp-text-secondary: #6B7280;
  --mp-text-muted: #9CA3AF;
  --mp-text-inverse: #FFFFFF;

  /* Colors – Semantic */
  --mp-success: #16A34A;
  --mp-success-bg: rgba(22, 163, 74, 0.08);
  --mp-warning: #CA8A04;
  --mp-warning-bg: rgba(202, 138, 4, 0.08);
  --mp-error: #DC2626;
  --mp-error-bg: rgba(220, 38, 38, 0.06);
  --mp-info: #2563EB;
  --mp-info-bg: rgba(37, 99, 235, 0.06);

  /* 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 – soft, premium light */
  --mp-shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --mp-shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --mp-shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --mp-shadow-xl: 0 20px 50px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --mp-shadow-glow: 0 4px 20px var(--mp-primary-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);
}
