/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

.cookie-banner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.cookie-banner-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
  letter-spacing: -0.02em;
}

.cookie-banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.cookie-banner-text a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}

.cookie-banner-text a:hover {
  opacity: 0.7;
}

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

.cookie-banner-button {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner-button-primary {
  background: #000;
  color: #fff;
}

.cookie-banner-button-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.cookie-banner-button-secondary {
  background: transparent;
  color: #000;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.cookie-banner-button-secondary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cookie-banner-button-settings {
  background: transparent;
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
}

.cookie-banner-button-settings:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #000;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cookie-settings-modal.show {
  opacity: 1;
  pointer-events: all;
}

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

.cookie-settings-modal.show .cookie-settings-content {
  transform: scale(1);
}

.cookie-settings-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-settings-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cookie-settings-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

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

.cookie-category {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.cookie-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-category-required {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-category-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 8px;
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

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

.cookie-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 28px;
  transition: background 0.3s ease;
}

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

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
  background: #e0e0e0;
  cursor: not-allowed;
}

.cookie-settings-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cookie-banner-container {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
  }

  .cookie-banner-actions {
    flex-direction: column;
  }

  .cookie-banner-button {
    width: 100%;
    text-align: center;
  }

  .cookie-settings-content {
    margin: 0 16px;
  }

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

  .cookie-settings-header h2 {
    font-size: 20px;
  }

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

/* Smooth scrollbar for modal */
.cookie-settings-content::-webkit-scrollbar {
  width: 8px;
}

.cookie-settings-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.cookie-settings-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 8px;
}

.cookie-settings-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}
