/* Additional Styles for PWA Features, Widgets, and Accessibility */

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
  width: 35px;
  height: 35px;
}

/* GPS Directions Float Button */
.gps-float {
  position: fixed;
  bottom: 150px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}
.gps-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 30px rgba(212, 175, 55, 0.6);
}
.gps-float svg {
  width: 30px;
  height: 30px;
}

/* PWA Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  max-width: 500px;
  width: 90%;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { transform: translateX(-50%) translateY(100px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pwa-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
}
.pwa-text {
  flex: 1;
  color: #fff;
}
.pwa-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.pwa-text p {
  font-size: 0.85rem;
  color: #b8b8b8;
  margin: 0;
}
.btn-install {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-install:hover {
  transform: translateY(-2px);
}
.btn-close {
  background: transparent;
  border: none;
  color: #888;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  border-top: 2px solid #d4af37;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  z-index: 10001;
  animation: slideUp 0.4s ease;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}
.cookie-content p {
  margin: 0 0 15px 0;
  color: #d1d5db;
}
.cookie-content strong {
  color: #d4af37;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-accept {
  background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.btn-decline {
  background: transparent;
  color: #888;
  border: 1px solid #555;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.btn-learn {
  color: #d4af37;
  text-decoration: underline;
  padding: 10px;
  font-weight: 600;
}

/* Keyboard Focus Indicators - Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
}

/* Skip to Content Link - Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #d4af37;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
  z-index: 100;
  transition: top 0.2s;
}
.skip-to-content:focus {
  top: 0;
}

/* Lazy Loading Placeholder */
.lazy-placeholder {
  background: linear-gradient(90deg, #1a1d29 25%, #2a2d35 50%, #1a1d29 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .whatsapp-float, .gps-float {
    width: 50px;
    height: 50px;
    right: 15px;
  }
  .whatsapp-float {
    bottom: 70px;
  }
  .gps-float {
    bottom: 130px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .gps-float svg {
    width: 24px;
    height: 24px;
  }
  .pwa-install-banner {
    width: 95%;
    padding: 12px 15px;
  }
  .pwa-install-content {
    flex-wrap: wrap;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions button, .cookie-actions a {
    width: 100%;
    text-align: center;
  }
}

/* High Contrast Mode - Accessibility (prefers-contrast) */
@media (prefers-contrast: high) {
  :root {
    --accent1: #ff0000;
    --accent2: #ffff00;
    --ink: #ffffff;
    --dark: #000000;
  }
  body {
    background: #000;
    color: #fff;
  }
  .card {
    border: 2px solid #fff;
  }
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print Styles */
@media print {
  .whatsapp-float,
  .gps-float,
  .nom-float-badge,
  .pwa-install-banner,
  .cookie-consent,
  header nav,
  .collapsible-trigger {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
