/*
 * custom.css — NicMcKinley.com
 *
 * ALL site-specific CSS overrides, animations, and custom styles live here.
 *
 * DO NOT edit assets/styles.css — that file is compiled Tailwind output.
 * Any manual change to styles.css WILL break the entire site's layout.
 * Put everything here instead.
 */

/* ============================================================
   MARQUEE SCROLL ANIMATION
   Used by the logo ticker on the homepage.
   ============================================================ */

@keyframes marquee-scroll {
  0%  { transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* ============================================================
   ABOUT PAGE — HERO KEN BURNS ANIMATION
   ============================================================ */

@keyframes hero-ken-burns {
  0%   { transform: scale(1)    translate3d(0, 0, 0); }
  100% { transform: scale(1.09) translate3d(-1.5%, 0%, 0); }
}

.hero__kb-img {
  animation: hero-ken-burns 22s ease-out infinite alternate;
  transform-origin: 75% 5%;
  will-change: transform;
  object-position: 75% 0%;
}

@media (max-width: 767px) {
  .hero__kb-img {
    object-position: 35% 0%;
  }
}

@keyframes hero-ken-burns-desktop {
  0%   { transform: translateY(80px) scale(1); }
  100% { transform: translateY(80px) scale(1.09); }
}

@media (min-width: 768px) {
  .hero__video-bg {
    background-color: #9aa1ad;
  }
  .hero__kb-img {
    left: auto !important;
    right: 0 !important;
    width: 50% !important;
    object-position: 50% 0%;
    transform-origin: 50% 5%;
    animation-name: hero-ken-burns-desktop;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%);
  }
}

/* ============================================================
   THE ISSUE PAGE — YouTube Hero Background
   Scales the iframe to always cover the viewport regardless
   of aspect ratio (16:9 trick: 177.78vh / 56.25vw).
   ============================================================ */

.issue-hero-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* ============================================================
   THE ISSUE PAGE — Stats Strip responsive borders
   ============================================================ */
@media (max-width: 767px) {
  .stats-strip-divider {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
  }
}

/* ============================================================
   MOBILE NAV — is-open state
   The compiled Tailwind CSS has no rule for .is-open, so this
   override in custom.css is the only thing that makes the
   hamburger panel actually visible when open.
   ============================================================ */
#mobile-nav.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* ============================================================
   THE ISSUE PAGE — Ten Points Accordion
   ============================================================ */
.issue-point-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1);
}
.issue-point-icon {
  display: inline-block;
  transition: transform 0.3s ease;
  line-height: 1;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ploy-accent-primary, #c49a3c);
}
.issue-point-card.is-active .issue-point-icon {
  transform: rotate(45deg);
}
.issue-point-card.is-active .issue-point-header {
  border-left-color: var(--ploy-accent-primary, #c49a3c) !important;
}

/* ============================================================
   THE ISSUE PAGE — Math Sliders
   ============================================================ */
.math-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}
.math-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ploy-accent-primary, #c49a3c);
  cursor: pointer;
  border: 2px solid #09090b;
}
.math-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ploy-accent-primary, #c49a3c);
  cursor: pointer;
  border: 2px solid #09090b;
}
.math-preset {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}
.math-preset:hover { border-color: var(--ploy-accent-primary, #c49a3c); color: #fff; }
.math-preset.is-active {
  background: var(--ploy-accent-primary, #c49a3c) !important;
  color: #000 !important;
  border-color: var(--ploy-accent-primary, #c49a3c) !important;
  font-weight: 600;
}

/* Gold rule — reusable heading decoration */
.gold-rule {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--ploy-accent-primary, #c49a3c);
  margin: 0.75rem 0 2rem;
}
.gold-rule-center {
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--ploy-accent-primary, #c49a3c);
  margin: 0.75rem auto 2rem;
}

/* ============================================================
   ACCORDION VIDEO BLOCK (.cp-video)
   ============================================================ */
.cp-video {
  margin-top: 1.5rem;
  background: #000;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  width: 100%;
}
.cp-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  max-height: 400px;
  object-fit: contain;
  background: #000;
}
