/**
 * Cookie Consent Banner Styles
 * Integrates with Bootstrap and site theme
 */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  color: #333;
  border-top: 1px solid #e0e0e0;
  padding: 1rem 0;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1050; /* Above Bootstrap's default modal z-index */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideUp 0.3s ease-out;
}

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

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: #495057;
  line-height: 1.5;
}

.cookie-banner a {
  color: #83b735; /* Brand green color */
  text-decoration: underline;
}

.cookie-banner a:hover {
  color: #6b8f2a;
  text-decoration: underline;
}

.cookie-banner .btn-link {
  color: #6c757d;
  text-decoration: underline;
  padding: 0.375rem 0.5rem;
  border: none;
  background: none;
}

.cookie-banner .btn-link:hover {
  color: #495057;
  text-decoration: underline;
}

.cookie-banner .btn-outline-secondary {
  border-color: #d6d6d6;
  color: #6c757d;
  background: transparent;
}

.cookie-banner .btn-outline-secondary:hover {
  background-color: #f8f9fa;
  border-color: #d6d6d6;
  color: #495057;
}

.cookie-banner .btn-success {
  background-color: #83b735;
  border-color: #83b735;
  color: #fff;
}

.cookie-banner .btn-success:hover {
  background-color: #6b8f2a;
  border-color: #6b8f2a;
}

/* Modal customizations */
#cookie-modal .modal-content {
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#cookie-modal .modal-header {
  border-bottom: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 0.5rem 0.5rem 0 0;
}

#cookie-modal .modal-title {
  color: #212529;
  font-weight: 600;
}

#cookie-modal .form-check-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
}

#cookie-modal .form-check-input:checked {
  background-color: #83b735;
  border-color: #83b735;
}

#cookie-modal .form-check-input:focus {
  border-color: #83b735;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(131, 183, 53, 0.25);
}

#cookie-modal .form-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

#cookie-modal .modal-footer {
  border-top: 1px solid #e9ecef;
  background-color: #f8f9fa;
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 0.75rem 0;
  }
  
  .cookie-banner .row > div:first-child {
    margin-bottom: 1rem;
  }
  
  .cookie-banner .text-end {
    text-align: center !important;
  }
  
  .cookie-banner .btn {
    margin: 0.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 576px) {
  .cookie-banner .btn {
    display: block;
    width: 100%;
    margin: 0.25rem 0;
  }
  
  .cookie-banner .me-2 {
    margin-right: 0 !important;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .cookie-banner {
    background: rgba(33, 37, 41, 0.98);
    color: #f8f9fa;
    border-top-color: #495057;
  }
  
  .cookie-banner p {
    color: #e9ecef;
  }
  
  .cookie-banner a {
    color: #83b735;
  }
  
  .cookie-banner .btn-outline-secondary {
    border-color: #6c757d;
    color: #e9ecef;
  }
  
  .cookie-banner .btn-outline-secondary:hover {
    background-color: #495057;
    border-color: #6c757d;
    color: #f8f9fa;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    background: #ffffff;
    color: #000000;
    border-top: 2px solid #000000;
  }
  
  .cookie-banner .btn-outline-secondary {
    border: 2px solid #000000;
    color: #000000;
  }
  
  .cookie-banner .btn-success {
    background-color: #000000;
    border: 2px solid #000000;
    color: #ffffff;
  }
}

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