/**
 * Design Tokens - CSS Custom Properties
 * FPT Telecom Design System
 * Based on: @new-docs/analysis/06-design-tokens.md
 *
 * Mobile-first approach with progressive enhancement
 */

:root {
  /* =============================================
   * COLOR PALETTE
   * ============================================= */

  /* Primary Colors - Signature Theme Blue */
  --color-primary: #F56011;
  --color-primary-light: #5A7BFF;
  --color-primary-dark: #3651D9;
  --color-primary-gradient: linear-gradient(to right, #4564ED, #5A7BFF);
  --color-primary-10: rgba(251, 214, 194, 0.1);
  /* Primary 10% opacity */
  --color-primary-20: rgba(251, 214, 194, 0.2);
  /* Primary 20% opacity */
  --color-primary-30: rgba(69, 100, 237, 0.3);
  /* Primary 30% opacity */

  /* Package Card Gradients */
  --color-blue-gradient: linear-gradient(135deg, #0077B6 0%, #0096D9 100%);
  --color-purple-gradient: linear-gradient(135deg, #6B00FF 0%, #8C00FF 100%);
  --color-navy-gradient: linear-gradient(135deg, #00235F 0%, #003A8C 100%);

  /* Secondary Colors */
  --color-secondary: #0077B6;
  --color-secondary-light: #0096D9;
  --color-secondary-dark: #005A8F;

  /* Navy Colors */
  --color-navy-dark: #00235F;
  --color-navy-medium: #002391;
  /* Package card header */
  --color-navy-light: #0077B6;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-gray-50: #FAFAFA;
  --color-gray-100: #F5F5F5;
  --color-gray-200: #E0E0E0;
  --color-gray-300: #CCCCCC;
  --color-gray-400: #999999;
  --color-gray-500: #666666;
  --color-gray-600: #3D3D3D;
  /* Updated from #333333 to match Figma nav color */
  --color-gray-700: #252525;
  /* Updated from #1A1A1A, used for logo text */
  --color-gray-800: #1A1A1A;

  /* Status Colors */
  --color-error: #FF0000;
  --color-warning: #FFA500;

  /* Accent Colors */
  --color-yellow: #FFE635;
  /* Banner price highlight */
  --color-yellow-dark: #FFD700;

  /* Background Colors */
  --color-background-light: #E8F6ED;
  /* Light green background for footer */
  --color-background-gray: #F5F5F5;
  /* Light gray background */

  /* Text Colors */
  --color-text-dark: #252525;
  /* Primary text color */
  --color-text-light: #666666;
  /* Secondary text color */
  --color-text-muted: #888888;
  /* Muted text color */

  /* Success Colors & Gradients */
  --color-success: #40C706;
  /* Primary green */
  --color-success-dark: #34AD00;
  /* Darker green for hover */
  --color-success-gradient: linear-gradient(135deg, #40C706 0%, #34AD00 100%);
  --color-success-gradient-hover: linear-gradient(135deg, #34AD00 0%, #2d9600 100%);

  /* Opacity Variants */
  --color-white-80: rgba(255, 255, 255, 0.8);
  --color-white-60: rgba(255, 255, 255, 0.6);
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-20: rgba(255, 255, 255, 0.2);
  --color-white-10: rgba(255, 255, 255, 0.1);

  --color-black-80: rgba(0, 0, 0, 0.8);
  --color-black-50: rgba(0, 0, 0, 0.5);
  --color-black-20: rgba(0, 0, 0, 0.2);
  --color-black-10: rgba(0, 0, 0, 0.1);
  --color-black-05: rgba(0, 0, 0, 0.05);

  /* =============================================
   * TYPOGRAPHY
   * ============================================= */

  /* Font Families */
  --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* For banner/headings */
  --font-fallback: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Font Sizes */
  --font-size-10: 10px;
  --font-size-11: 11px;
  --font-size-12: 12px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-22: 22px;
  --font-size-23: 23px;
  --font-size-24: 24px;
  --font-size-32: 32px;
  --font-size-36: 36px;
  --font-size-40: 40px;
  --font-size-48: 48px;
  --font-size-56: 56px;
  --font-size-72: 72px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  /* For banner headlines */

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: -0.01em;
  --letter-spacing-wide: 0.01em;

  /* =============================================
   * SPACING SCALE (8px base system)
   * ============================================= */

  --spacing-0: 0px;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-7: 28px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-20: 80px;
  --spacing-24: 96px;

  /* Container spacing */
  --container-padding-mobile: 16px;
  --container-padding-tablet: 40px;
  --container-padding-desktop: 240px;

  /* Section spacing */
  --section-padding-vertical: 80px;
  --section-padding-packages: 40px;
  /* Packages section uses 40px, not 80px */
  --section-gap: 40px;

  /* =============================================
   * BORDER RADIUS
   * ============================================= */

  --radius-none: 0px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 24px;
  --radius-full: 9999px;

  /* Component-specific */
  --radius-card: 12px;
  /* Updated from 8px to match Figma */
  --radius-button: 24px;
  --radius-button-cta: 8px;
  /* Package CTA buttons use 8px, not pill */
  --radius-input: 8px;
  --radius-modal: 16px;

  /* =============================================
   * SHADOWS
   * ============================================= */

  /* Elevation shadows */
  --shadow-none: none;
  --shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0px 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0px 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0px 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0px 16px 32px rgba(0, 0, 0, 0.2);

  /* Component-specific shadows */
  --shadow-header: 0px 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-header-scrolled: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-card: 0px 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0px 8px 16px rgba(0, 0, 0, 0.12);
  --shadow-button: 0px 4px 12px rgba(69, 100, 237, 0.25);
  /* Updated to blue */
  --shadow-button-hover: 0px 6px 16px rgba(69, 100, 237, 0.35);
  /* Updated to blue */

  /* Text shadows */
  --text-shadow-sm: 0px 1px 2px rgba(0, 0, 0, 0.1);
  --text-shadow-md: 0px 2px 4px rgba(0, 0, 0, 0.15);
  --text-shadow-lg: 0px 4px 8px rgba(0, 0, 0, 0.2);

  /* =============================================
   * TRANSITIONS
   * ============================================= */

  /* Duration */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;

  /* Easing */
  --ease-linear: linear;
  --ease-in: ease-in;
  --ease-out: ease-out;
  --ease-in-out: ease-in-out;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Common transitions */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;

  /* =============================================
   * LAYOUT
   * ============================================= */

  /* Container widths */
  --container-max-width: 1440px;
  --container-full-width: 1920px;

  /* Z-index scale */
  --z-index-dropdown: 100;
  --z-index-sticky: 200;
  --z-index-fixed: 300;
  --z-index-modal-backdrop: 900;
  --z-index-modal: 1000;
  --z-index-popover: 1100;
  --z-index-tooltip: 1200;

  /* Header - Updated from Figma (Node 101:69934) */
  --header-topbar-height: 0px;
  /* Removed in new design */
  --header-nav-height: 68px;
  /* Updated from 70px */
  --header-height: 68px;
  /* Updated from 106px - unified height for all breakpoints */
  --header-height-tablet: 68px;
  /* Updated from 80px */
  --header-height-mobile: 68px;
  /* Updated from 60px */
  --header-padding-vertical: 10px;
  /* New - vertical padding */
  --header-z-index: 1000;

  /* Header Navigation - New tokens from Figma */
  --nav-gap: 23px;
  /* Gap between nav items */
  --nav-active-bg: #F3F3F3;
  /* Background for active nav item */
  --nav-item-padding: 4px 12px;
  /* Padding for nav items */
  --nav-item-radius: 6px;
  /* Border radius for active state */

  /* Header Logo - New tokens from Figma */
  --logo-icon-width: 78px;
  --logo-icon-height: 30px;
  --logo-text-size: 16px;
  --logo-text-color: #252525;
  --logo-gap: 4px;
  /* Gap between icon and text */

  /* Banner */
  --banner-height: 350px;
  --banner-height-tablet: 300px;
  --banner-height-mobile: 400px;

  /* Footer */
  --footer-height: 642px;

  /* =============================================
   * BREAKPOINTS (for JS usage)
   * ============================================= */

  --breakpoint-mobile: 375px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
  --breakpoint-ultrawide: 1920px;

  /* =============================================
   * COMPONENT TOKENS
   * ============================================= */

  /* Buttons - Updated from Figma */
  --btn-height: 48px;
  --btn-padding: 13px 24px;
  /* Updated from 11px 28px */
  --btn-radius: 12px;
  /* Updated from 24px - less rounded */
  --btn-font-size: 16px;
  --btn-font-weight: 700;
  /* Updated from 600 to Bold */

  --btn-primary-bg: var(--color-primary-gradient);
  --btn-primary-color: var(--color-white);
  --btn-primary-shadow: var(--shadow-button);
  --btn-primary-shadow-hover: var(--shadow-button-hover);

  --btn-secondary-bg: var(--color-white);
  --btn-secondary-color: var(--color-secondary);
  --btn-secondary-border: 1px solid var(--color-secondary);

  /* Cards */
  --card-radius: 8px;
  --card-padding: 20px;
  --card-bg: var(--color-white);
  --card-shadow: var(--shadow-card);
  --card-shadow-hover: var(--shadow-card-hover);

  --card-package-width: 342px;
  --card-package-height: 637px;
  --card-service-width: 342px;
  --card-service-height: 284px;
  --card-product-width: 220px;
  --card-product-height: 304px;
  --card-news-width: 342px;
  --card-news-height: 298px;
  --card-selection-width: 281px;
  --card-selection-height: 281px;

  /* Forms */
  --input-height: 48px;
  --input-padding: 12px 16px;
  --input-radius: 8px;
  --input-border: 1px solid var(--color-gray-200);
  --input-border-focus: var(--color-secondary);
  --input-shadow-focus: 0px 0px 0px 3px rgba(0, 119, 182, 0.1);

  --checkbox-size: 24px;
  --checkbox-border: 2px solid var(--color-gray-200);
  --checkbox-checked-bg: var(--color-primary);
}

/* =============================================
 * RESPONSIVE UTILITY CLASSES
 * Reusable spacing, typography, and layout utilities
 * ============================================= */

/* Padding utilities */
.p-0 {
  padding: 0 !important;
}

.p-2 {
  padding: var(--spacing-2) !important;
}

.p-3 {
  padding: var(--spacing-3) !important;
}

.p-4 {
  padding: var(--spacing-4) !important;
}

.p-6 {
  padding: var(--spacing-6) !important;
}

.px-4 {
  padding-left: var(--spacing-4) !important;
  padding-right: var(--spacing-4) !important;
}

.px-5 {
  padding-left: var(--spacing-5) !important;
  padding-right: var(--spacing-5) !important;
}

.px-6 {
  padding-left: var(--spacing-6) !important;
  padding-right: var(--spacing-6) !important;
}

.px-8 {
  padding-left: var(--spacing-8) !important;
  padding-right: var(--spacing-8) !important;
}

.py-4 {
  padding-top: var(--spacing-4) !important;
  padding-bottom: var(--spacing-4) !important;
}

.py-5 {
  padding-top: var(--spacing-5) !important;
  padding-bottom: var(--spacing-5) !important;
}

.py-6 {
  padding-top: var(--spacing-6) !important;
  padding-bottom: var(--spacing-6) !important;
}

.py-10 {
  padding-top: var(--spacing-10) !important;
  padding-bottom: var(--spacing-10) !important;
}

/* Margin utilities */
.m-0 {
  margin: 0 !important;
}

.m-auto {
  margin: 0 auto !important;
}

.mt-2 {
  margin-top: var(--spacing-2) !important;
}

.mt-4 {
  margin-top: var(--spacing-4) !important;
}

.mt-6 {
  margin-top: var(--spacing-6) !important;
}

.mb-2 {
  margin-bottom: var(--spacing-2) !important;
}

.mb-4 {
  margin-bottom: var(--spacing-4) !important;
}

.mb-6 {
  margin-bottom: var(--spacing-6) !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Gap utilities */
.gap-2 {
  gap: var(--spacing-2) !important;
}

.gap-3 {
  gap: var(--spacing-3) !important;
}

.gap-4 {
  gap: var(--spacing-4) !important;
}

.gap-6 {
  gap: var(--spacing-6) !important;
}

/* Typography utilities */
.text-12 {
  font-size: var(--font-size-12) !important;
}

.text-14 {
  font-size: var(--font-size-14) !important;
}

.text-16 {
  font-size: var(--font-size-16) !important;
}

.text-18 {
  font-size: var(--font-size-18) !important;
}

.text-24 {
  font-size: var(--font-size-24) !important;
}

.font-regular {
  font-weight: var(--font-weight-regular) !important;
}

.font-medium {
  font-weight: var(--font-weight-medium) !important;
}

.font-bold {
  font-weight: var(--font-weight-bold) !important;
}

/* Border radius utilities */
.rounded-sm {
  border-radius: var(--radius-sm) !important;
}

.rounded-md {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

/* Display utilities */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

/* Responsive display utilities */
@media (min-width: 768px) {
  .d-tablet-block {
    display: block !important;
  }

  .d-tablet-none {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .d-desktop-block {
    display: block !important;
  }

  .d-desktop-none {
    display: none !important;
  }
}
