/* YCR island-theme banner styles. Keeps the site's dark base; banner sits above nav. */
.ycr-island-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 18px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--red) 50%, var(--green) 100%);
  background-size: 200% 100%;
  animation: ycr-island-shimmer 18s linear infinite;
  color: #000;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 400;
  width: 100%;
}

.ycr-island-banner.ycr-island-leadup {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.18), rgba(0, 165, 80, 0.18));
  background-size: auto;
  animation: none;
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 184, 0, 0.25);
}

.ycr-island-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ycr-island-flag {
  height: 22px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  display: block;
}

.ycr-island-msg {
  flex: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ycr-island-banner.ycr-island-leadup .ycr-island-msg {
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 0.8rem;
}

.ycr-island-dismiss {
  background: rgba(0, 0, 0, 0.18);
  border: none;
  color: inherit;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 0;
}

.ycr-island-dismiss:hover {
  background: rgba(0, 0, 0, 0.32);
}

@keyframes ycr-island-shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 640px) {
  .ycr-island-banner {
    padding: 7px 12px;
    font-size: 0.74rem;
    gap: 10px;
  }
  .ycr-island-flag { height: 18px; }
  .ycr-island-msg { text-align: left; }
}

/* ── Logo-strip treatment (homepage only): spinning vinyl behind the logo ── */
.logo-strip.ycr-island-themed {
  position: relative;
  padding-top: 80px;     /* room for the badge above the vinyl */
  padding-bottom: 80px;
  overflow: visible;
}

/* The YCR logo (the only un-classed img in the strip) sits ABOVE the vinyl backdrop.
   `:not([class])` cleanly excludes the badge img which has `.ycr-island-vinyl-badge`. */
.logo-strip.ycr-island-themed > img:not([class]) {
  position: relative;
  z-index: 2;
}

/* Flag-row is a 0x0 anchor at the logo's center; JS positions exactly on logo center */
.ycr-island-flag-row {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 1;
  pointer-events: none;
}

/* Vinyl record sitting behind the logo. The disc surface IS the active flag (for
   islands + July 4) or a 3-color conic gradient (for US holidays). JS sets the
   background-image inline. Grooves + a subtle vignette ride on top via pseudo-elements
   so the spin animation tumbles them with the disc like real vinyl. */
.ycr-island-vinyl {
  position: absolute;
  top: 50%;            /* JS overrides to the exact logo center */
  left: 50%;
  width: 180px;        /* 10px bigger than the 170px logo — tight frame */
  height: 180px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background-color: #0a0a0a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 12px rgba(0, 0, 0, 0.6);
  animation: ycr-vinyl-spin 8s linear infinite;
}

/* Concentric grooves — pronounced ridges across the entire disc. Two-tone pattern:
   1px dark dip + 1px light highlight every 4px. Visible on plain black default AND
   on flag/holiday backgrounds. */
.ycr-island-vinyl::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      rgba(0, 0, 0, 0.45)        0   1px,
      rgba(255, 255, 255, 0.10)  1px 2px,
      transparent                2px 4px);
  pointer-events: none;
}

/* Off-axis vignette to give the disc a 3D shimmer */
.ycr-island-vinyl::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(0, 0, 0, 0)         35%,
    rgba(0, 0, 0, 0.35)      100%);
  pointer-events: none;
}

.ycr-island-vinyl-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #050505;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 5;
}

@keyframes ycr-vinyl-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Badge: an emoji or flag SVG sitting at the top of the vinyl, above the logo.
   Static (does NOT spin with the vinyl). For US holidays this is the per-holiday
   emoji (🎄, 🎃, ❤️, etc.); for islands and July 4 it's the flag SVG. */
.ycr-island-vinyl-badge {
  position: absolute;
  top: 50%;       /* JS overrides to logo center */
  left: 50%;
  z-index: 3;     /* above the logo */
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 130px));   /* hovering above the small vinyl */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  animation: ycr-island-flag-fade 0.6s ease-out backwards;
}

.ycr-island-vinyl-badge-icon {
  font-size: 56px;
  line-height: 1;
  display: block;
  user-select: none;
}

/* Higher specificity (.logo-strip img.X) to outrank `.logo-strip img { height: 170px; width: auto }` */
.logo-strip img.ycr-island-vinyl-badge-flag {
  height: 50px;
  width: 75px;
  max-width: none;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.7);
  display: block;
}

/* Stagger the entrance fade so the ring assembles itself */
.ycr-island-flag-row > .ycr-island-logo-flag:nth-child(2) { animation-delay: 0.07s; }
.ycr-island-flag-row > .ycr-island-logo-flag:nth-child(3) { animation-delay: 0.14s; }
.ycr-island-flag-row > .ycr-island-logo-flag:nth-child(4) { animation-delay: 0.21s; }
.ycr-island-flag-row > .ycr-island-logo-flag:nth-child(5) { animation-delay: 0.28s; }
.ycr-island-flag-row > .ycr-island-logo-flag:nth-child(n+6) { animation-delay: 0.35s; }

@keyframes ycr-island-flag-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ycr-island-logo-greeting {
  position: relative;
  z-index: 2;
  margin: 30px auto 0;    /* small gap below the logo (vinyl is now barely larger) */
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.95);
  max-width: 90%;
  line-height: 1.35;
  animation: ycr-island-greet-in 0.7s ease-out 0.4s backwards;
}

@keyframes ycr-island-greet-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .logo-strip.ycr-island-themed { padding-top: 70px; padding-bottom: 60px; }
  .ycr-island-vinyl-badge { transform: translate(-50%, calc(-50% - 115px)); }
  .ycr-island-vinyl-badge-icon { font-size: 38px; }
  .ycr-island-logo-greeting { font-size: 0.92rem; margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ycr-island-vinyl {
    animation: none;
    transform: translate(-50%, -50%);
  }
}
