/**
 * Cookie Consent Component Styles
 * Extracted from base.html inline styles for better performance and maintainability
 */

.cookie-consent {
  position: fixed;
  z-index: 1080;
  left: 0;
  right: 0;
  bottom: 0;
  background: #212529;
  color: #f8f9fa;
  padding: 0.75rem 1rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out;
}

.cookie-consent__content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: 0;
  color: #adb5bd;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cookie-consent__close:hover {
  color: #f8f9fa;
  background: rgba(255, 255, 255, 0.1);
}

.cookie-consent__close:focus {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Cookie consent text styling */
.cookie-consent__text {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.4;
}

.cookie-consent__text a {
  color: #0dcaf0;
  text-decoration: none;
}

.cookie-consent__text a:hover {
  color: #6edff6;
  text-decoration: underline;
}

/* Cookie consent buttons */
.cookie-consent__buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-consent__btn {
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cookie-consent__btn--accept {
  background: #198754;
  color: #fff;
  border-color: #198754;
}

.cookie-consent__btn--accept:hover {
  background: #157347;
  border-color: #146c43;
  color: #fff;
}

.cookie-consent__btn--decline {
  background: transparent;
  color: #adb5bd;
  border-color: #495057;
}

.cookie-consent__btn--decline:hover {
  background: #495057;
  color: #f8f9fa;
  border-color: #6c757d;
}

.cookie-consent__btn--settings {
  background: transparent;
  color: #0dcaf0;
  border-color: #0dcaf0;
}

.cookie-consent__btn--settings:hover {
  background: #0dcaf0;
  color: #000;
  border-color: #0dcaf0;
}

/* Animation states */
.cookie-consent.show {
  transform: translateY(0);
}

.cookie-consent.hide {
  transform: translateY(100%);
}

/* Dark theme support */
.dark-theme .cookie-consent {
  background: #1a1a1a;
  color: #e9ecef;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

.dark-theme .cookie-consent__close {
  color: #6c757d;
}

.dark-theme .cookie-consent__close:hover {
  color: #e9ecef;
  background: rgba(255, 255, 255, 0.05);
}

.dark-theme .cookie-consent__text a {
  color: #6edff6;
}

.dark-theme .cookie-consent__text a:hover {
  color: #9fecff;
}

.dark-theme .cookie-consent__btn--decline {
  color: #6c757d;
  border-color: #343a40;
}

.dark-theme .cookie-consent__btn--decline:hover {
  background: #343a40;
  color: #e9ecef;
  border-color: #495057;
}

/* Responsive design */
@media (max-width: 576px) {
  .cookie-consent {
    padding: 1rem;
  }

  .cookie-consent__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cookie-consent__close {
    top: 0.75rem;
    right: 1rem;
  }

  .cookie-consent__buttons {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-consent__btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .cookie-consent__buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-consent {
    background: #000;
    color: #fff;
    border-top: 2px solid #fff;
  }

  .cookie-consent__btn {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__close,
  .cookie-consent__btn {
    transition: none;
  }
}

/* Print styles */
@media print {
  .cookie-consent {
    display: none;
  }
}
