/*
 * hitt-extras.css — Black Friday feature, Sidewalk Sales, hold-music player,
 * "Normal website" link. Hitt Records / hittrexxx_v1. Load after myspace2.css.
 * Uses the theme's --ms-* colors and fonts only.
 */


/* =============================================================================
   EVENTS — Black Friday feature
   ============================================================================= */

.site-main .hr-bf {
  padding: 0;                    /* theme hands every section a gutter + block padding */
}
.site-main .hr-sidewalk {
  padding: 20px 24px;
}

.hr-bf {
  position: relative;
  margin: 0 0 28px;
  background: #0d001a;
  border: 3px solid var(--ms-pink);
  box-shadow: 0 0 16px var(--ms-pink), 0 0 40px rgba(176, 0, 255, 0.45);
  overflow: hidden;
}

/* Hazard stripe across the top, borrowed from the About page */
.hr-bf::before {
  content: '';
  display: block;
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ms-yellow) 0 12px, #000 12px 24px);
  background-size: 34px 34px;
  animation: hr-bf-stripes 1.2s linear infinite;
}

@keyframes hr-bf-stripes {
  from { background-position: 0 0; }
  to   { background-position: 34px 0; }
}

.hr-bf__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 28px 28px 20px;
}

@media (min-width: 768px) {
  .hr-bf__body {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 32px;
    padding: 34px 40px 24px;
  }
  .hr-bf__side { text-align: right; }
}

.hr-bf__date {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-green);
  text-shadow: 0 0 8px var(--ms-green);
  margin: 0 0 14px;
}

/* Black letters, neon outline — it's Black Friday */
.hr-bf__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 9vw, 5.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  -webkit-text-stroke: 2px var(--ms-pink);
  paint-order: stroke fill;
  text-shadow: 0 0 14px var(--ms-pink), 0 0 34px var(--ms-purple), 5px 5px 0 var(--ms-purple-dark);
  margin: 0 0 12px;
}

.hr-bf__sub {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.7rem, 2.2vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  background: var(--ms-yellow);
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.55);
  padding: 10px 14px;
  margin: 0;
  transform: rotate(-1.5deg);
}

.hr-bf__hours {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem);
  line-height: 1.3;
  color: var(--ms-green);
  text-shadow: 0 0 10px var(--ms-green);
  white-space: nowrap;
  margin: 0 0 10px;
}

.hr-bf__more {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ms-pink-light);
  margin: 0;
  animation: ms-blink 1.6s step-start infinite;
}

.hr-bf__stage {
  position: relative;
  border-top: 2px solid var(--ms-purple-dark);
}

.hr-bf__canvas {
  display: block;
  width: 100%;
  height: 300px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* CRT scanlines over the animation, like the homepage hero */
.hr-bf__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 3px);
}

@media (max-width: 639px) {
  .hr-bf__canvas { height: 220px; }
  .hr-bf__body { padding: 22px 18px 16px; }
}


/* =============================================================================
   EVENTS — Sidewalk Sales (always on)
   ============================================================================= */

.hr-sidewalk {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 18px;
  margin: 0 0 48px;
  padding: 20px 24px;
  border: 2px dashed var(--ms-green);
  background: rgba(57, 255, 20, 0.05);
}

.hr-sidewalk__icon {
  grid-row: span 2;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ms-yellow);
  text-shadow: 0 0 14px var(--ms-yellow);
  animation: hr-sun 12s linear infinite;
}

@keyframes hr-sun { to { transform: rotate(360deg); } }

.hr-sidewalk__title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-green);
  text-shadow: 0 0 8px var(--ms-green);
  margin: 0 0 4px;
}

.hr-sidewalk__when {
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--ms-text);
  margin: 0;
}

.hr-sidewalk__when strong {
  color: var(--ms-yellow);
  text-transform: uppercase;
  font-weight: 400;
  text-shadow: 0 0 6px rgba(255, 230, 0, 0.5);
}

.hr-sidewalk__note {
  grid-column: 2;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-text-muted);
  margin: 0;
}

@media (min-width: 768px) {
  .hr-sidewalk {
    grid-template-columns: auto 1fr auto;
  }
  .hr-sidewalk__note {
    grid-column: 3;
    grid-row: 1 / span 2;
    padding: 10px 14px;
    border: 1px solid var(--ms-purple-dark);
  }
}


/* =============================================================================
   HOLD MUSIC — floating player (bottom left) + "Hold music" chip
   ============================================================================= */

.hr-hold {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  width: 208px;
  background: #0d001a;
  border: 2px solid var(--ms-purple);
  box-shadow: 0 0 14px rgba(176, 0, 255, 0.6);
  display: none;
}

.hr-hold.is-open { display: block; }

.hr-hold__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 4px 4px 8px;
  background: linear-gradient(90deg, var(--ms-purple), var(--ms-pink-dark));
}

.hr-hold__title span,
.hr-hold-chip span { font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif; font-size: 0.8rem; }

.hr-hold__title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ms-yellow);
  white-space: nowrap;
}

/* Undo the theme's big glowing button styles for this small control */
.hr-hold .hr-hold__stop,
.hr-hold-chip {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.45rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 28px !important;
  margin: 0 !important;
  animation: none !important;
  transform: none !important;
}

.hr-hold .hr-hold__stop {
  padding: 6px 8px !important;
  background: #000 !important;
  color: var(--ms-pink-light) !important;
  border: 1px solid var(--ms-pink-light) !important;
  box-shadow: none !important;
}

.hr-hold .hr-hold__stop:hover,
.hr-hold .hr-hold__stop:focus-visible {
  background: var(--ms-pink) !important;
  color: #000 !important;
}

.hr-hold__screen {
  width: 200px;
  height: 200px;
  margin: 2px;
  background: #000;
}

.hr-hold__screen iframe {
  display: block;
  width: 200px;
  height: 200px;
  border: 0;
}

.hr-hold__hint {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--ms-yellow);
  margin: 0;
  padding: 0 8px;
}

.hr-hold__hint:not(:empty) { padding: 6px 8px 8px; animation: ms-blink 1.4s step-start infinite; }

.hr-hold-chip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  display: none;
  padding: 10px 14px !important;
  background: #0d001a !important;
  color: var(--ms-green) !important;
  border: 2px solid var(--ms-green) !important;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.5) !important;
}

.hr-hold-chip.is-shown { display: inline-flex; align-items: center; gap: 8px; }

.hr-hold-chip:hover,
.hr-hold-chip:focus-visible {
  background: var(--ms-green) !important;
  color: #000 !important;
}

/* Phones: the chip rings a few times to say "tap me" */
.hr-hold-chip.is-calling { animation: hr-ring 2.4s ease-in-out 3 !important; }

@keyframes hr-ring {
  0%, 60%, 100% { transform: rotate(0); }
  65% { transform: rotate(-5deg); } 70% { transform: rotate(5deg); }
  75% { transform: rotate(-5deg); } 80% { transform: rotate(5deg); }
}


/* =============================================================================
   HOMEPAGE — the deliberately boring "Normal website" button
   ============================================================================= */

.ms-ascii-hero-overlay .hr-normal-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: none;
  color: #333 !important;
  background: #f0f0f0;
  border: 1px solid #a9a9a9;
  border-radius: 3px;
  padding: 6px 12px;
  box-shadow: inset 0 1px 0 #fff;
  text-decoration: none;
  animation: none;
  z-index: 2;
}

.ms-ascii-hero-overlay .hr-normal-link:hover,
.ms-ascii-hero-overlay .hr-normal-link:focus-visible {
  background: #e4e4e4;
  color: #000 !important;
  text-decoration: underline;
}

.ms-ascii-hero-overlay .hr-normal-link:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
}

@media (max-width: 639px) {
  .ms-ascii-hero-overlay .hr-normal-link { right: 10px; bottom: 10px; font-size: 12px; padding: 5px 10px; }
}


/* =============================================================================
   MOTION
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .hr-bf::before,
  .hr-bf__more,
  .hr-sidewalk__icon,
  .hr-hold__hint,
  .hr-hold-chip.is-calling { animation: none !important; }
}
