/* ============================================
   Lowe Valu Animation — style.css
   ============================================ */

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Properties */
:root {
  --color-base: #000620;
  --color-base-alt: #0a0e2a;
  --color-accent: #03b5fd;
  --color-warm-red: #c0533a;
  --color-warm-gold: #d4a843;
  --color-warm-brown: #6b4c3b;
  --color-text: #e8e8e8;
  --color-heading: #ffffff;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 960px;
}

/* Base */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-base);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h2 {
  color: var(--color-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(0, 6, 32, 0.95);
  backdrop-filter: blur(8px);
}

.nav-logo img {
  height: 36px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger X state */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-base-alt);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links.open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .nav-logo {
    display: none;
  }
}

/* ============================================
   Hero
   ============================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

#hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--color-accent);
  filter: url(#squigglevision-1);
  animation: squiggle 0.4s steps(1) infinite;
  z-index: 1;
}

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 6, 32, 0.2) 0%,
    rgba(0, 6, 32, 0.4) 50%,
    rgba(0, 6, 32, 0.85) 100%
  );
  z-index: -1;
}

.hero-content {
  padding-bottom: 15vh;
  text-align: center;
}

.hero-logo {
  width: min(80vw, 500px);
  filter: drop-shadow(0 4px 24px rgba(3, 181, 253, 0.3));
  animation: logo-entrance 0.8s ease-out both;
}

.hero-tagline {
  margin-top: 1rem;
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  opacity: 0.85;
  animation: stats-entrance 0.6s ease-out 0.4s both;
}

.hero-stats {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  animation: stats-entrance 0.6s ease-out 0.6s both;
}

@keyframes logo-entrance {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes stats-entrance {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  animation: stats-entrance 0.6s ease-out 0.7s both;
}

.btn-cta {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-cta-primary {
  background: var(--color-accent);
  color: var(--color-base);
}

.btn-cta-primary:hover {
  background: #02a0e0;
  box-shadow: 0 4px 20px rgba(3, 181, 253, 0.4);
}

.btn-cta-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(232, 232, 232, 0.4);
}

.btn-cta-secondary:hover {
  border-color: var(--color-text);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.hero-social {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: stats-entrance 0.6s ease-out 1s both;
}

.hero-social a {
  color: var(--color-accent);
  transition: color 0.3s, transform 0.3s;
}

.hero-social a:hover {
  color: var(--color-heading);
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo,
  .hero-tagline,
  .hero-stats,
  .hero-cta,
  .hero-social {
    animation: none;
  }
}

.stat {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(3, 181, 253, 0.25);
}

.stat-divider {
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* ============================================
   Squigglevision
   ============================================ */
.squiggle-border {
  position: relative;
}

.squiggle-border::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid var(--card-accent, var(--color-accent));
  border-radius: inherit;
  filter: url(#squigglevision-1);
  animation: squiggle 0.4s steps(1) infinite;
  pointer-events: none;
}

@keyframes squiggle {
  0%  { filter: url(#squigglevision-1); }
  25% { filter: url(#squigglevision-2); }
  50% { filter: url(#squigglevision-3); }
  75% { filter: url(#squigglevision-4); }
}

.squiggle-divider {
  width: 80%;
  max-width: var(--max-width);
  height: 3px;
  margin: 0 auto 3rem;
  background: var(--color-accent);
  filter: url(#squigglevision-1);
  animation: squiggle 0.4s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .squiggle-border::before,
  .squiggle-divider,
  #hero::after {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }
}

/* ============================================
   Sections
   ============================================ */
section {
  padding: 5rem 0;
}

/* Latest Videos */
#latest {
  background: var(--color-base-alt);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.video-embed {
  border-radius: 12px;
  position: relative;
  aspect-ratio: 9 / 16;
}

.video-grid-single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.video-grid-single .video-embed {
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: inherit;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

/* About */
#about {
  background: var(--color-base);
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-text p {
  text-align: left;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-character {
  flex-shrink: 0;
  width: 250px;
}

.about-character video {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
  }

  .about-text p {
    text-align: center;
  }

  .about-character {
    display: none;
  }
}

/* Shows */
#shows {
  background: var(--color-base-alt);
}

.shows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.show-card {
  display: block;
  background: var(--color-base-alt);
  border: none;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text);
  transition: transform 0.3s, box-shadow 0.3s;
}

.show-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.show-card h3 {
  color: var(--color-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.show-card p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--card-accent, var(--color-accent));
  font-weight: 600;
}

@media (max-width: 768px) {
  .shows-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   Support
   ============================================ */
#support {
  background: var(--color-base);
}

.support-container {
  text-align: center;
  max-width: 600px;
}

.support-container p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.85;
}

.btn-support {
  font-size: 1.05rem;
  padding: 0.85rem 2.25rem;
}

.support-character {
  margin-top: 2rem;
  width: 200px;
  margin-left: auto;
  margin-right: auto;
}

.support-character video {
  width: 100%;
  height: auto;
}

/* ============================================
   Social
   ============================================ */
#social {
  background: var(--color-base);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  transition: transform 0.3s, color 0.3s;
}

.social-link:hover {
  transform: scale(1.1);
  color: var(--color-heading);
  text-decoration: none;
}

/* ============================================
   Contact
   ============================================ */
#contact {
  background: var(--color-base-alt);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-base-alt);
  border: none;
  border-radius: 12px;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--color-heading);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-base);
  border: 2px solid #1a1e3a;
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(3, 181, 253, 0.35);
}

.btn-submit {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: var(--color-accent);
  color: var(--color-base);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

.btn-submit:hover {
  background: #02a0e0;
}

.btn-submit:active {
  transform: scale(0.98);
}

.form-status {
  max-width: 600px;
  margin: 1rem auto 0;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.form-status.success {
  background: rgba(3, 181, 253, 0.15);
  color: var(--color-accent);
}

.form-status.error {
  background: rgba(192, 83, 58, 0.15);
  color: var(--color-warm-red);
}

/* ============================================
   Footer
   ============================================ */
footer {
  background: var(--color-base);
  border-top: 1px solid #1a1e3a;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

footer p {
  margin-bottom: 0.5rem;
}

/* ============================================
   Show Pages
   ============================================ */
.show-header {
  padding-top: 6rem;
  padding-bottom: 3rem;
  text-align: center;
  background: var(--color-base);
}

.show-logo {
  width: min(80vw, 500px);
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(3, 181, 253, 0.3));
}

.show-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.85;
}

.show-episodes {
  padding: 5rem 0;
  background: var(--color-base-alt);
}

.show-episodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.show-episode-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-base);
}

.show-episode-title {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  color: var(--color-heading);
}

.show-characters {
  padding: 5rem 0;
  background: var(--color-base);
}

.characters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.character-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--color-base-alt);
}

.character-video {
  width: 180px;
  flex-shrink: 0;
  border-radius: 8px;
}

.character-info h3 {
  color: var(--color-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.character-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .character-card {
    flex-direction: column;
    text-align: center;
  }

  .character-video {
    width: 150px;
  }
}
