/* GDPR Compliant Cookie Banner Styles */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

.cookie-content {
  padding: 1.5rem;
}

.cookie-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cookie-text h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.cookie-text p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* CRITICAL: Equal visual prominence for Accept/Reject (Dutch DPA requirement) */
.cookie-btn {
  padding: 12px 16px;
  border: 2px solid;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
}

/* BOTH buttons now have IDENTICAL visual prominence */
.cookie-btn-primary {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
  background: #5a6fd8;
  border-color: #5a6fd8;
  outline: 3px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

/* EQUAL visual weight - now also filled button */
.cookie-btn-secondary {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
  background: #5a6268;
  border-color: #5a6268;
  outline: 3px solid rgba(108, 117, 125, 0.3);
  outline-offset: 2px;
}

.cookie-btn-link {
  background: transparent;
  border-color: transparent;
  color: #667eea;
  text-decoration: underline;
  padding: 8px 16px;
}

.cookie-btn-link:hover,
.cookie-btn-link:focus {
  color: #5a6fd8;
  background: #f8f9ff;
  outline: 3px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.cookie-links {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.cookie-links a {
  color: #667eea;
  text-decoration: none;
}

.cookie-links a:hover,
.cookie-links a:focus {
  text-decoration: underline;
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cookie-modal.show {
  opacity: 1;
}

.cookie-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  margin: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-close:hover,
.cookie-close:focus {
  color: #333;
  outline: 2px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  background: #ccc;
  border-radius: 24px;
  margin-right: 12px;
  transition: background 0.3s ease;
}

.cookie-slider:before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider {
  background: #667eea;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-slider:before {
  transform: translateX(26px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-slider {
  background: #e0e0e0;
  cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:focus + .cookie-slider {
  outline: 3px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

.cookie-category-name {
  font-weight: 500;
  color: #333;
}

.cookie-category-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin: 0.5rem 0 0 62px;
}

.cookie-modal-footer {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.cookie-modal-footer .cookie-btn {
  flex: 1;
}

/* Cookie Preferences Button (always visible) */
.cookie-preferences-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #667eea;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: all 0.2s ease;
}

.cookie-preferences-btn:hover,
.cookie-preferences-btn:focus {
  background: #5a6fd8;
  transform: scale(1.05);
  outline: 3px solid rgba(102, 126, 234, 0.3);
  outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
  }
  
  .cookie-content {
    padding: 1.25rem;
  }
  
  .cookie-modal-content {
    margin: 10px;
    max-height: 90vh;
  }
  
  .cookie-modal-footer {
    flex-direction: column;
  }
  
  .cookie-preferences-btn {
    bottom: 10px;
    right: 10px;
    width: 45px;
    height: 45px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border: 3px solid #000;
  }
  
  .cookie-btn-primary {
    background: #000;
    border-color: #000;
    color: #fff;
  }
  
  .cookie-btn-secondary {
    background: #fff;
    border-color: #000;
    color: #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-modal,
  .cookie-btn,
  .cookie-slider,
  .cookie-preferences-btn {
    transition: none;
  }
  
  .cookie-banner.show {
    transform: none;
  }
}