/**
 * Cookie Consent Banner Styles
 * EG Event Planners - GTM Analytics Integration
 */

/* Banner Container */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: #ffffff;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  font-family: 'Lato', Arial, sans-serif;
  display: none;
}

.cookie-consent-banner.show {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Banner Content */
.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-consent-message {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  color: #ffffff;
}

.cookie-consent-message a {
  color: #3498db;
  text-decoration: underline;
}

.cookie-consent-message a:hover {
  color: #5dade2;
}

/* Buttons Container */
.cookie-consent-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button Styles */
.cookie-consent-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Lato', Arial, sans-serif;
  transition: all 0.2s ease;
  min-width: 100px;
  min-height: 44px; /* Touch-friendly */
  text-align: center;
}

.cookie-consent-button:focus {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

.cookie-consent-button:active {
  transform: scale(0.98);
}

/* Accept Button */
.cookie-consent-accept {
  background: #27ae60;
  color: #ffffff;
}

.cookie-consent-accept:hover {
  background: #2ecc71;
}

/* Reject Button */
.cookie-consent-reject {
  background: #95a5a6;
  color: #ffffff;
}

.cookie-consent-reject:hover {
  background: #7f8c8d;
}

/* Debug Badge */
#debug-badge {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: #333333;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Courier New', monospace;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

#debug-badge strong {
  color: #3498db;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 15px;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-message {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .cookie-consent-buttons {
    justify-content: stretch;
  }

  .cookie-consent-button {
    flex: 1;
    font-size: 13px;
    padding: 10px 20px;
  }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
  .cookie-consent-banner {
    padding: 12px;
  }

  .cookie-consent-message {
    font-size: 13px;
  }

  .cookie-consent-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-consent-button {
    width: 100%;
    min-width: auto;
  }

  #debug-badge {
    bottom: 5px;
    right: 5px;
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* Accessibility */
.cookie-consent-button:focus-visible {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .cookie-consent-banner,
  #debug-badge {
    display: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .cookie-consent-banner {
    border-top: 2px solid #ffffff;
  }

  .cookie-consent-button {
    border: 2px solid #ffffff;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner.show {
    animation: none;
  }

  .cookie-consent-button {
    transition: none;
  }
}
