/**
 * Cookie Consent Banner Styles for MerchandisePROS
 * GDPR-Compliant Cookie Consent Banner
 * Version: 1.0
 * Last Updated: 2025-02-13
 */

/* Banner Container */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  font-family: 'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-consent-banner.show {
  transform: translateY(0);
}

/* Container */
.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;
}

@media (max-width: 768px) {
  .cookie-consent-container {
    padding: 15px 20px;
  }
}

/* Content Layout */
.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* Message Text */
.cookie-consent-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e0e0e0;
  flex: 1;
}

@media (max-width: 768px) {
  .cookie-consent-message {
    font-size: 13px;
  }
}

/* Privacy Link */
.cookie-consent-privacy-link {
  color: #4fc3f7;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.cookie-consent-privacy-link:hover {
  color: #81d4fa;
  text-decoration: underline;
}

/* Buttons Container */
.cookie-consent-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
}

/* Button Base Styles */
.cookie-btn {
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cabin', sans-serif;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* Accept Button */
.cookie-btn-accept {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
  transform: translateY(-2px);
}

.cookie-btn-accept:active {
  transform: translateY(0);
}

/* Decline Button */
.cookie-btn-decline {
  background: transparent;
  color: #b0b0b0;
  border: 2px solid #424242;
}

.cookie-btn-decline:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border-color: #616161;
}

.cookie-btn-decline:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Accessibility */
.cookie-btn:focus {
  outline: 3px solid #4fc3f7;
  outline-offset: 2px;
}

/* Print - Hide banner */
@media print {
  .cookie-consent-banner {
    display: none !important;
  }
}

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

  .cookie-consent-message {
    color: #ffffff;
  }

  .cookie-btn-accept {
    background: #00ff00;
    color: #000000;
  }

  .cookie-btn-decline {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
  }
}

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

  .cookie-btn {
    transition: none;
  }
}
