/* Cookie Consent Banner - GDPR 2025 Compliant */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 3px solid var(--brand-600, #ec4899);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99999; /* Higher than modals (1000) but lower than toast (10000) */
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: auto; /* Ensure it's clickable */
}

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

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

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

.cookie-consent-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink-900, #0f172a);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-description {
  font-size: 0.9rem;
  color: var(--ink-600, #475569);
  margin: 0;
  line-height: 1.6;
}

.cookie-consent-description a {
  color: var(--brand-600, #ec4899);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.cookie-consent-btn-accept {
  background: linear-gradient(135deg, var(--brand-600, #ec4899), var(--brand-700-one, #db2777));
  color: white;
}

.cookie-consent-btn-accept:hover {
  background: linear-gradient(135deg, var(--brand-700, #db2777), var(--brand-800, #be185d));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.cookie-consent-btn-reject {
  background: var(--ink-100, #f1f5f9);
  color: var(--ink-700, #334155);
  border: 2px solid var(--ink-200, #e2e8f0);
}

.cookie-consent-btn-reject:hover {
  background: var(--ink-200, #e2e8f0);
  border-color: var(--ink-300, #cbd5e1);
}

.cookie-consent-btn-settings {
  background: transparent;
  color: var(--ink-700, #334155);
  border: 2px solid var(--ink-300, #cbd5e1);
}

.cookie-consent-btn-settings:hover {
  background: var(--ink-50, #f8fafc);
  border-color: var(--ink-400, #94a3b8);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

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

.cookie-settings-content {
  background: white;
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  animation: slideUp 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.cookie-settings-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink-900, #0f172a);
  margin: 0;
}

.cookie-settings-close {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-600, #475569);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.cookie-settings-close:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink-900, #0f172a);
}

.cookie-settings-description {
  font-size: 0.9rem;
  color: var(--ink-600, #475569);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.cookie-category {
  padding: 20px;
  border: 2px solid var(--ink-200, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 16px;
}

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

.cookie-category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-900, #0f172a);
  margin: 0;
}

.cookie-category-description {
  font-size: 0.85rem;
  color: var(--ink-600, #475569);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.cookie-category.required {
  border-color: var(--brand-200, #fbcfe8);
  background: var(--brand-50, #fdf2f8);
}

.cookie-category.required .cookie-category-title::after {
  content: " (Nevyhnutné)";
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-500, #64748b);
}

.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--ink-300, #cbd5e1);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle.active {
  background: var(--brand-600, #ec4899);
}

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

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle.active .cookie-toggle-slider {
  transform: translateX(24px);
}

.cookie-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid var(--ink-200, #e2e8f0);
}

.cookie-settings-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-settings-btn-accept-all {
  background: linear-gradient(135deg, var(--brand-600, #ec4899), var(--brand-700, #db2777));
  color: white;
}

.cookie-settings-btn-accept-all:hover {
  background: linear-gradient(135deg, var(--brand-700, #db2777), var(--brand-800, #be185d));
  transform: translateY(-2px);
}

.cookie-settings-btn-save {
  background: var(--ink-900, #0f172a);
  color: white;
}

.cookie-settings-btn-save:hover {
  background: var(--ink-800, #1e293b);
  transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

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

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

  .cookie-settings-content {
    padding: 24px 20px;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

