/*
  Badge 02 — Live Presence Badge — standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy index.html and
  this file into any project as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: oklch(0.2 0 0);
  padding: 0.25rem 0.625rem;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.live-badge__dot-wrap {
  position: relative;
  display: flex;
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
}

.live-badge__dot {
  position: relative;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
}

.live-badge__ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  animation: live-badge-ring 1.8s ease-out infinite;
}

@keyframes live-badge-ring {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-badge__ring {
    display: none;
  }
  .live-badge__dot {
    outline: 2px solid currentColor;
    outline-offset: 1px;
  }
}

.live-badge--live .live-badge__dot,
.live-badge--live .live-badge__ring,
.live-badge--recording .live-badge__dot,
.live-badge--recording .live-badge__ring {
  background-color: oklch(0.62 0.21 25);
  color: oklch(0.62 0.21 25);
}

.live-badge--online .live-badge__dot,
.live-badge--online .live-badge__ring {
  background-color: oklch(0.65 0.16 155);
  color: oklch(0.65 0.16 155);
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.badge02-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.badge02-layout__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
