/* Cookie Banner Styles - GDPR Compliant */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

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

.cookie-banner-text {
  flex: 1;
  color: white;
  max-width: 600px;
}

.cookie-banner-text h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.cookie-banner-text p {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-banner-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: underline;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cookie-banner-link:hover {
  color: white;
}

/* Cookie Customization Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.cookie-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  margin-bottom: 24px;
}

.cookie-modal-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 8px 0;
}

.cookie-modal-header p {
  font-size: 16px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

.cookie-category {
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.cookie-category:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.cookie-category-title {
  font-size: 18px;
  font-weight: 600;
  color: #0F172A;
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.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: #CBD5E1;
  transition: 0.3s;
  border-radius: 24px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

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

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

.cookie-category-description {
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E2E8F0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0 20px;
  }
  
  .cookie-banner-text {
    text-align: left;
    max-width: none;
  }
  
  .cookie-banner-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  
  .cookie-banner-actions .btn {
    width: 100%;
  }
  
  .cookie-modal-content {
    padding: 24px;
    margin: 10px;
  }
  
  .cookie-modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .cookie-banner {
    padding: 20px 0;
  }
  
  .cookie-banner-content {
    padding: 0 16px;
    gap: 16px;
  }
  
  .cookie-banner-actions {
    gap: 8px;
  }
  
  .cookie-modal-content {
    padding: 20px;
  }
  
  .cookie-category {
    padding: 16px;
  }
}