/**
 * 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 - ORANGE from Figma */
  --color-primary: #F56011;
  --color-primary-light: #FF8F4B;
  --color-primary-dark: #FF5C00;
  --color-primary-gradient: linear-gradient(180deg, #FF8F4B 0%, #FF5C00 100%);

  /* 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-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;

  /* Success/Error/Warning */
  --color-success: #00A86B;
  --color-error: #FF0000;
  --color-warning: #FFA500;

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

  /* Background Colors */
  --color-bg-brand: #FFE8DB; /* Hero section background - peachy beige from Figma */
  --color-bg-light: #F3F3F3; /* Light background */
  --color-bg-white: #FFFFFF; /* White background */

  /* Text Colors */
  --color-text-primary: #3D3D3D; /* Primary text color */
  --color-text-dark: #252525; /* Dark text color */
  --color-text-white: #FFFFFF; /* White text */

  /* Border Colors */
  --color-border-default: #E7E7E7; /* Default border color */
  --color-border-light: #F0F0F0; /* Light border */

  /* 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(245, 96, 17, 0.25); /* Orange shadow */
  --shadow-button-hover: 0px 6px 16px rgba(245, 96, 17, 0.35); /* Orange shadow hover */

  /* 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 - 3 Screen Sizes
   * =============================================
   *
   * Mobile:  < 768px   (max-width: 767px)
   * Tablet:  768px - 1439px (min-width: 768px) and (max-width: 1439px)
   * Desktop: >= 1440px (min-width: 1440px)
   *
   * Usage in CSS:
   * @media (max-width: 767px) { ... }        // Mobile
   * @media (max-width: 1439px) { ... }       // Tablet and below
   * @media (min-width: 768px) { ... }        // Tablet and above
   * @media (min-width: 1440px) { ... }       // Desktop only
   */

  /* Breakpoint values (for JS usage) */
  --breakpoint-mobile-max: 767px;
  --breakpoint-tablet-min: 768px;
  --breakpoint-tablet-max: 1439px;
  --breakpoint-desktop-min: 1440px;

  /* Legacy breakpoints */
  --breakpoint-mobile: 375px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1440px;
  --breakpoint-ultrawide: 1920px;

  /* =============================================
   * SHARED DESIGN CHARACTERISTICS
   * ============================================= */

  /* Hover States */
  --hover-opacity: 0.9;
  --hover-scale: 1.02;
  --hover-scale-small: 1.05;
  --active-scale: 0.98;

  /* Dropdown/Popover shared styles */
  --dropdown-bg: var(--color-white);
  --dropdown-border: 1px solid #E7E7E7;
  --dropdown-radius: 12px;
  --dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  --dropdown-padding: 8px;
  --dropdown-item-padding: 10px 12px;
  --dropdown-item-radius: 8px;
  --dropdown-item-hover-bg: #FFF5F0;
  --dropdown-item-hover-color: #F56011;
  --dropdown-item-active-bg: #FFF5F0;
  --dropdown-item-active-color: #F56011;

  /* Animation timing */
  --animation-fade-duration: 0.2s;
  --animation-slide-duration: 0.3s;
  --animation-transform-y: -8px;

  /* Common interactive states */
  --focus-outline: 2px solid var(--color-primary);
  --focus-outline-offset: 2px;
  --disabled-opacity: 0.3;

  /* =============================================
   * 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);
}
