:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}

.fade-in {
  animation: fade-in 1.1s ease-out both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-ring {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6), rgba(37, 99, 235, 0.8));
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background-color: rgba(248, 250, 252, 0.65);
  color: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(6px);
}

.dark .pill {
  background-color: rgba(15, 23, 42, 0.6);
  border-color: rgba(51, 65, 85, 0.8);
  color: rgba(226, 232, 240, 0.9);
}

/* Google Ads: attractive, on-brand containers */
.ad-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ad-slot--banner {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.ad-slot--inline {
  margin: 2rem 0;
}

.ad-slot--footer {
  margin: 1.5rem 0;
}

.ad-slot__wrapper {
  width: 100%;
  max-width: 56rem;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(248, 250, 252, 0.9), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 4px 20px -8px rgba(37, 99, 235, 0.25);
  padding: 0.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ad-slot__wrapper--card {
  max-width: 40rem;
  padding: 1rem 1.25rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 8px 24px -12px rgba(37, 99, 235, 0.3);
}

.ad-slot__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.85);
  align-self: flex-end;
  margin-right: 0.25rem;
}

.ad-slot__inner {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-slot__wrapper--card .ad-slot__inner {
  min-height: 100px;
}

/* Dark mode */
.dark .ad-slot__wrapper {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 23, 42, 0.95), rgba(56, 189, 248, 0.1));
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.4);
}

.dark .ad-slot__wrapper--card {
  box-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.5);
}

.dark .ad-slot__label {
  color: rgba(148, 163, 184, 0.8);
}
