/* ========================================
   🎨 EXACT COLOR MATCHING FOR ALL DEVICES
   Форсиране на ТОЧНО същите цветове навсякъде
   ======================================== */

/*
 * Форсираме sRGB color space за консистентност
 * Премахваме всички browser/device корекции
 */

/* Основна цветова схема - Жълто и Синьо */
:root {
  --yellow-bright: #F7E226;
  --yellow-dark: #FFC107;
  --yellow-light: #fef9c3;
  --blue-primary: #84c5ed;
  --blue-dark: #0369a1;
  --blue-light: #bae6fd;
  --gray-dark: #2c3e50;
  --gray-medium: #666;
  --gray-light: #95a5a6;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
}

/*FORCE sRGB color space globally — light mode only */
html {
  color-scheme: light;
  -webkit-color-scheme: light;
}

@media (color-gamut: srgb), (color-gamut: p3), (color-gamut: rec2020) {
  * {
    color-profile: sRGB;
    -webkit-color-profile: sRGB;
  }
}

/* ========================================
   DISABLE ALL AUTO-CORRECTIONS
   ======================================== */

/* Премахваме всички browser color adjustments */
* {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

/* Font rendering за по-добра консистентност */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Премахваме всички device-specific filter корекции */
.btn-primary,
.primary,
button.primary,
button[type="submit"],
[style*="linear-gradient"],
[style*="#F7E226"],
[style*="#FFC107"] {
  filter: none !important;
}

/* ========================================
   FORCE EXACT COLORS - NO FILTERS
   ======================================== */

/* Hover states - minimalni промени */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover,
  button.primary:hover {
    opacity: 0.95;
  }
}

/* Active states - използваме opacity вместо filter */
a:active,
button:active {
  opacity: 0.9;
}

/* ========================================
   FORCE EXACT COLOR RENDERING
   ======================================== */

/* Форсираме sRGB color interpolation */
* {
  color-interpolation: sRGB;
  color-rendering: optimizeQuality;
}

/* ========================================
   HARDWARE ACCELERATION
   ======================================== */

/* GPU acceleration за по-добро rendering */
/* NOTE: body is excluded — transform on body breaks position:fixed
   (modals, lightboxes become relative to body instead of viewport) */
.btn-primary,
button,
.card,
.section {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================
   ANDROID CHROME SPECIFIC
   ======================================== */

/* Премахване на автоматични корекции в Chrome Mobile */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  body {
    -webkit-tap-highlight-color: transparent;
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="date"]):not([type="time"]),
  textarea {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Disable Samsung Internet color adjustments */
@supports (-webkit-overflow-scrolling: touch) {
  * {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ========================================
   PREVENT BROWSER COLOR ENHANCEMENT
   ======================================== */

/* Изключване на всички browser "enhancement" функции */
img,
picture,
video,
canvas,
svg {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}


/* ========================================
   FINAL OVERRIDE - EXACT COLORS ONLY
   ======================================== */

/* Задържаме opacity ефектите */
.btn-primary:hover,
button.primary:hover,
a:active,
button:active {
  -webkit-filter: none !important;
  filter: none !important;
}
