/* Cookie consent banner – enterprise SaaS style */
/* Unified Noto Sans – all scripts in one stack (no dynamic per-lang loading) */
body {
  font-family: "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans Thai",
    "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Kannada",
    "Noto Sans Malayalam", system-ui, sans-serif;
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px;
}

#cookie-banner.hidden {
  display: none !important;
}

#cookie-banner:not(.hidden) {
  animation: cookie-banner-in 300ms ease forwards;
}

@keyframes cookie-banner-in {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 28px;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #1c1a25;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .cookie-banner-inner {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.cookie-banner-content {
  flex: 1;
  min-width: 0;
}

.cookie-banner-content h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.95);
}

html[data-theme="light"] .cookie-banner-content h2 {
  color: #111827;
}

.cookie-banner-content p {
  font-size: 0.9rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

html[data-theme="light"] .cookie-banner-content p {
  color: #4b5563;
}

.cookie-banner-content a {
  color: #6c2bd9;
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner-content a:hover {
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cookie-btn-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cookie-btn-reject:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

html[data-theme="light"] .cookie-btn-reject {
  border: 1px solid #d1d5db;
  color: #374151;
}

html[data-theme="light"] .cookie-btn-reject:hover {
  background: #f9fafb;
}

.cookie-btn-manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(108, 43, 217, 0.3);
  color: #6c2bd9;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.cookie-btn-manage:hover {
  border-color: rgba(108, 43, 217, 0.5);
  background: rgba(108, 43, 217, 0.06);
}

.cookie-btn-manage:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.cookie-btn-accept {
  background: #6c2bd9;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(108, 43, 217, 0.35);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.cookie-btn-accept:hover {
  background: #5b22b5;
}

.cookie-btn-accept:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  #cookie-banner {
    padding: 12px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
    gap: 16px;
  }

  .cookie-banner-buttons {
    flex-direction: row;
    justify-content: stretch;
  }

  .cookie-banner-buttons button,
  .cookie-banner-buttons a {
    flex: 1;
    min-width: 0;
  }
}

/* Footer theme toggle – glassmorphism */
.footer-theme-toggle {
  background: rgba(108, 43, 217, 0.06) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 280ms ease, border-color 280ms ease, background 280ms ease;
}

.footer-theme-toggle:hover {
  border-color: rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 4px 12px rgba(108, 43, 217, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .footer-theme-toggle {
  background: rgba(108, 43, 217, 0.04) !important;
  border-color: rgba(108, 43, 217, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .footer-theme-toggle:hover {
  border-color: rgba(108, 43, 217, 0.2) !important;
  box-shadow: 0 4px 12px rgba(108, 43, 217, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.footer-theme-btn {
  color: var(--text-muted);
  opacity: 0.75;
  transition: opacity 200ms ease, transform 200ms ease, background 280ms ease, box-shadow 280ms ease, color 200ms ease;
}

.footer-theme-btn:hover {
  opacity: 1;
  color: var(--text-main);
  transform: scale(1.08);
}

.footer-theme-btn:active {
  transform: scale(0.96);
}

.footer-theme-btn.active {
  background: rgba(108, 43, 217, 0.22);
  color: #e9d5ff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(108, 43, 217, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  transform: scale(1);
}

html[data-theme="light"] .footer-theme-btn.active {
  background: rgba(108, 43, 217, 0.14);
  color: #6c2bd9;
  box-shadow: 0 2px 8px rgba(108, 43, 217, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(108, 43, 217, 0.2);
}

.footer-lang {
  background: rgba(108, 43, 217, 0.06) !important;
  border: 1px solid rgba(167, 139, 250, 0.15) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.footer-lang:hover {
  border-color: rgba(167, 139, 250, 0.25) !important;
  box-shadow: 0 4px 12px rgba(108, 43, 217, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-lang:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(108, 43, 217, 0.15);
}

html[data-theme="light"] .footer-lang {
  background: rgba(108, 43, 217, 0.04) !important;
  border-color: rgba(108, 43, 217, 0.12) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .footer-theme-toggle,
  .footer-theme-btn {
    transition: none;
  }

  .footer-theme-btn:hover {
    transform: none;
  }

  .footer-theme-btn:active {
    transform: none;
  }
}
