/**
 * Cookie Consent Banner
 * GDPR/CCPA compliant cookie consent
 */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #000000;
  color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 2px solid #333333;
}

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

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-consent-content {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-consent-title i {
  color: #ffffff;
}

.cookie-consent-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #cccccc;
}

.cookie-consent-text a {
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s;
}

.cookie-consent-text a:hover {
  color: #e5e5e5;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-consent-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.cookie-consent-btn-accept {
  background: #ffffff;
  color: #000000;
}

.cookie-consent-btn-accept:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-settings {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.cookie-consent-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.cookie-consent-btn-decline {
  background: transparent;
  color: #999999;
  border: 1px solid #444444;
}

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

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10002;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.cookie-settings-modal.show {
  display: flex;
}

.cookie-settings-content {
  background: #ffffff;
  color: #000000;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
  border: 1px solid #e5e5e5;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.cookie-settings-header h3 {
  margin: 0;
  color: #000000;
  font-size: 1.5rem;
  font-weight: 600;
}

.cookie-settings-close {
  background: #f5f5f5;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cookie-settings-close:hover {
  background: #e5e5e5;
  color: #000000;
}

.cookie-settings-body {
  padding: 2rem;
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category-title {
  font-weight: 600;
  color: #000000;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-category-required {
  font-size: 0.75rem;
  color: #666666;
  background: #f5f5f5;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.cookie-category-description {
  color: #666666;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cccccc;
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: #000000;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-settings-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid #e5e5e5;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-container {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-btn {
    flex: 1;
    text-align: center;
  }

  .cookie-settings-content {
    margin: 0.5rem;
  }

  .cookie-settings-header,
  .cookie-settings-body {
    padding: 1.5rem;
  }

  .cookie-settings-footer {
    flex-direction: column;
  }

  .cookie-settings-footer .cookie-consent-btn {
    width: 100%;
  }
}
