/* ===========================
   TWITCH REPLAY — style.css
   =========================== */

:root {
  --purple: #7c3aed;
  --purple-light: #9f5fff;
  --purple-bg: #6d28d9;
  --purple-dark: #4c1d95;
  --black: #0a0a0f;
  --white: #ffffff;
  --off-white: #f4f0ff;
  --grey: #c4b5fd;
  --grey-dark: #1e1830;
  --grey-mid: #2d2345;
  --shadow: #000;
  --font-display: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* ---- NOISE ---- */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- BLOBS ---- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -200px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--purple-bg); bottom: 20%; right: -100px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: #9333ea; bottom: 50%; left: 40%; animation-delay: -12s; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.1); }
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ========================
   NAV
   ======================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  transition: background var(--transition);
}

.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-text .accent { color: var(--purple-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--grey);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-yt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}
.nav-yt-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,0,0,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  color: var(--grey);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--white); }
.mobile-link.yt { color: #ff6060; }

/* ========================
   HERO
   ======================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 0 32px rgba(124, 58, 237, 0.5));
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.95;
  color: var(--white);
}
.hero-title .line-1 {
  display: block;
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--white);
  /* chunky pixel shadow like the logo */
  text-shadow:
    4px 4px 0 var(--shadow),
    8px 8px 0 rgba(0,0,0,0.4);
}
.hero-title .line-2 {
  display: block;
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--purple-light);
  text-shadow:
    4px 4px 0 var(--shadow),
    8px 8px 0 rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--grey);
  font-weight: 600;
  line-height: 1.6;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius);
  padding: 20px 32px;
  backdrop-filter: blur(10px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--white);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--purple-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(124, 58, 237, 0.3);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(196, 181, 253, 0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 0 var(--purple-dark), 0 8px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--purple-dark), 0 16px 32px rgba(124,58,237,0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--purple-light);
  border: 2px solid rgba(124, 58, 237, 0.5);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--purple-light);
  color: var(--white);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
}

/* ========================
   SECTIONS COMMON
   ======================== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--purple-light);
}
.section-desc {
  color: var(--grey);
  font-size: 1.05rem;
  font-weight: 600;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ========================
   ABOUT
   ======================== */
.about { background: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(30px);
}
.about-card.visible {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.about-card[data-delay="1"] { animation-delay: 0.1s; }
.about-card[data-delay="2"] { animation-delay: 0.2s; }
.about-card[data-delay="3"] { animation-delay: 0.3s; }

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.15);
}
.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--white);
}
.about-card p {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 600;
}

/* ========================
   REQUEST SECTION
   ======================== */
.request-section {
  background: rgba(124, 58, 237, 0.06);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.request-wrapper {
  max-width: 680px;
}

/* ========================
   FORMS
   ======================== */
.request-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--grey);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.optional {
  font-weight: 600;
  text-transform: none;
  color: rgba(196, 181, 253, 0.5);
  font-size: 0.8rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition);
}
.input-wrap:focus-within {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.input-prefix {
  padding: 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-light);
  background: rgba(124, 58, 237, 0.12);
  border-right: 1px solid rgba(124, 58, 237, 0.3);
  height: 48px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.input-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  min-width: 0;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
input::placeholder,
textarea::placeholder { color: rgba(196, 181, 253, 0.35); }

.field-error {
  font-size: 0.8rem;
  color: #f87171;
  font-weight: 700;
  display: none;
}
.field-error.show { display: block; }

/* success */
.form-success, .contact-success {
  text-align: center;
  padding: 60px 40px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius);
  animation: fadeUp 0.5s ease both;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3, .contact-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 12px;
}
.form-success p, .contact-success p {
  color: var(--grey);
  font-weight: 600;
  margin-bottom: 24px;
}

/* ========================
   CONTACT
   ======================== */
.contact-section { background: transparent; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateX(4px);
}
.contact-card-icon {
  font-size: 1.4rem;
  color: var(--purple-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--white);
}
.contact-card p, .contact-card a {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.contact-card a:hover { color: var(--purple-light); }

/* ========================
   FOOTER
   ======================== */
.footer {
  background: rgba(10, 10, 15, 0.9);
  border-top: 1px solid rgba(124, 58, 237, 0.15);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--white);
}
.footer-logo .accent { color: var(--purple-light); }
.footer-desc {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: var(--grey);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  color: rgba(196, 181, 253, 0.35);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }
  .stat-divider { width: 60px; height: 1px; }

  .about-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }

  .contact-success { margin-top: 24px; }

  section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* ========================
   STREAMERS SECTION
   ======================== */
.streamers-section {
  background: rgba(124, 58, 237, 0.04);
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.streamers-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--grey);
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(124, 58, 237, 0.3);
  border-radius: 50px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-wrap input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.search-wrap input::placeholder { color: rgba(196,181,253,0.35); }

.streamer-count-badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

.streamers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.streamer-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}
.streamer-card:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  color: var(--white);
}
.streamer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--purple-light);
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.streamer-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streamers-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--grey);
  font-weight: 600;
  padding: 48px 0;
  font-size: 0.95rem;
}

.streamers-empty {
  text-align: center;
  color: var(--grey);
  font-weight: 600;
  padding: 48px 0;
  font-size: 0.95rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.streamer-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.15);
}
