/**
 * Cookie Banner Styles
 * GDPR/DSGVO compliant cookie consent banner
 */

/* Cookie Banner Container */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-family: Arial, Helvetica, sans-serif;
}

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

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Cookie Content */
.cookie-content {
  flex: 1;
}

.cookie-content h3 {
  color: var(--brand-blue, #002d53);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cookie-content p {
  color: var(--text, #102132);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.cookie-content a {
  color: var(--brand-blue, #002d53);
  text-decoration: underline;
}

.cookie-content a:hover {
  color: var(--brand-yellow, #fdc300);
}

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

.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--brand-yellow, #fdc300);
  color: var(--brand-blue, #002d53);
}

.cookie-btn-accept:hover {
  background: #e5b000;
  transform: translateY(-2px);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--brand-blue, #002d53);
  border: 2px solid var(--brand-blue, #002d53);
}

.cookie-btn-settings:hover {
  background: var(--brand-blue, #002d53);
  color: #fff;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--muted, #5c6b7a);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.cookie-btn-reject:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.2);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-settings-content {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings-header h3 {
  color: var(--brand-blue, #002d53);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--muted, #5c6b7a);
  transition: color 0.3s;
}

.cookie-settings-close:hover {
  color: var(--brand-blue, #002d53);
}

.cookie-settings-body {
  padding: 24px;
}

.cookie-settings-body p {
  color: var(--text, #102132);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Cookie Category */
.cookie-category {
  background: var(--surface, #f6f8fb);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

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

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

.cookie-category-info h4 {
  color: var(--brand-blue, #002d53);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.cookie-category-info p {
  color: var(--muted, #5c6b7a);
  font-size: 13px;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--brand-yellow, #fdc300);
}

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

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

/* Cookie Settings Footer */
.cookie-settings-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    text-align: center;
  }

  .cookie-content h3 {
    font-size: 16px;
  }

  .cookie-content p {
    font-size: 13px;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    padding: 14px 20px;
  }

  .cookie-settings-content {
    max-height: 90vh;
    border-radius: 12px;
  }

  .cookie-settings-header,
  .cookie-settings-body,
  .cookie-settings-footer {
    padding: 16px;
  }

  .cookie-category {
    padding: 14px 16px;
  }

  .cookie-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

@media (max-width: 480px) {
  .cookie-banner-inner {
    padding: 16px;
  }

  .cookie-content h3 {
    font-size: 15px;
  }

  .cookie-content p {
    font-size: 12px;
  }

  .cookie-btn {
    font-size: 13px;
    padding: 12px 16px;
  }
}
