/* ================================
   Silent Revenge Esports Website v3.0
   style.css
================================ */

:root {
  --sr-black: #050505;
  --sr-dark: #0d0d10;
  --sr-panel: rgba(255, 255, 255, 0.045);
  --sr-panel-strong: rgba(255, 255, 255, 0.075);
  --sr-purple: #6d28ff;
  --sr-purple-dark: #2e1065;
  --sr-light-purple: #a970ff;
  --sr-white: #f5f7fa;
  --sr-muted: #b7bbc5;
  --sr-border: rgba(109, 40, 255, 0.45);
  --sr-glow: rgba(109, 40, 255, 0.45);
  --max-width: 1250px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--sr-black);
  color: var(--sr-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.brand img {
  width: 92px;
  filter: drop-shadow(0 0 14px rgba(109, 40, 255, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 900;
}

.nav-links a {
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--sr-light-purple);
}

.nav-button {
  padding: 10px 16px;
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(109, 40, 255, 0.25);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--sr-white);
  border: 1px solid var(--sr-border);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero {
  min-height: 100vh;
  padding: 145px 24px 90px;
}

.page-hero {
  min-height: 62vh;
  padding: 150px 24px 80px;
}

.animated-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(109, 40, 255, 0.48), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(169, 112, 255, 0.18), transparent 35%),
    linear-gradient(135deg, #050505, #130522 45%, #050505);
  animation: glowMove 9s ease-in-out infinite alternate;
}

.animated-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 95px
  );
  opacity: 0.4;
}

.particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    radial-gradient(circle, rgba(109, 40, 255, 0.3) 1px, transparent 1px);
  background-size: 80px 80px, 140px 140px;
  animation: particleMove 14s linear infinite;
  opacity: 0.35;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.hero-logo {
  width: min(560px, 86vw);
  margin: 0 auto 28px;
  filter: drop-shadow(0 0 30px rgba(109, 40, 255, 0.65));
}

.eyebrow {
  color: var(--sr-light-purple);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.hero h2 {
  color: var(--sr-purple);
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-top: 18px;
}

.hero-text,
.wide-text {
  max-width: 820px;
  margin: 24px auto;
  color: var(--sr-muted);
  font-size: 1.05rem;
}

.hero-buttons,
.center {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--sr-purple);
  color: #fff;
  box-shadow: 0 0 26px rgba(109, 40, 255, 0.5);
}

.secondary {
  border: 1px solid var(--sr-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--sr-white);
}

/* Sections */
.section {
  padding: 95px 6%;
  max-width: var(--max-width);
  margin: auto;
}

.section.dark {
  max-width: none;
  background:
    radial-gradient(circle at right, rgba(109, 40, 255, 0.16), transparent 35%),
    #0c0c0c;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Form Validation */
.form-alert {
  display: none;
  border: 1px solid rgba(255, 75, 75, 0.6);
  background: rgba(255, 75, 75, 0.08);
  color: #ffdede;
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 800;
}

.form-alert.show {
  display: block;
}

.field-error {
  color: #ff9b9b;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  display: none;
}

.field-error.show {
  display: block;
}

.recruitment-form input.invalid,
.recruitment-form select.invalid,
.recruitment-form textarea.invalid {
  border-color: rgba(255, 75, 75, 0.85);
  box-shadow: 0 0 18px rgba(255, 75, 75, 0.22);
}

.recruitment-form input.valid,
.recruitment-form select.valid,
.recruitment-form textarea.valid {
  border-color: rgba(70, 255, 150, 0.55);
}

.form-submit.loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Layout Grids */
.cards,
.focus-grid,
.social-grid,
.news-grid,
.creator-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.focus-grid,
.social-grid,
.news-grid,
.creator-grid,
.stats-grid {
  max-width: 1150px;
  margin: auto;
}

.focus-grid,
.social-grid,
.news-grid,
.creator-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card,
.focus-item,
.news-card,
.creator-card,
.stat-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.018)
  );
  border: 1px solid var(--sr-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.28);
  transition: 0.2s ease;
}

.card:hover,
.focus-item:hover,
.news-card:hover,
.creator-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 38px rgba(109, 40, 255, 0.24);
}

.card span,
.stat-card span {
  font-size: 2rem;
}

.card h3,
.news-card h3,
.creator-card h3,
.stat-card h3 {
  color: var(--sr-light-purple);
  margin: 12px 0 10px;
  text-transform: uppercase;
}

.card p,
.news-card p,
.creator-card p,
.stat-card p {
  color: var(--sr-muted);
}

.focus-item {
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--sr-white);
  line-height: 1;
  margin-bottom: 8px;
}

/* Twitch Integration */
.twitch-panel {
  max-width: 1050px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018));
  border: 1px solid var(--sr-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 0 35px rgba(109, 40, 255, 0.18);
}

.twitch-status {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  color: var(--sr-light-purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.twitch-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.twitch-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--sr-muted);
  padding: 24px;
}

/* Recruitment Form */
.recruitment-form {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  gap: 22px;
}

.form-section-title {
  color: var(--sr-light-purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.recruitment-form label {
  display: grid;
  gap: 8px;
  color: var(--sr-white);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
}

.recruitment-form input,
.recruitment-form select,
.recruitment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--sr-border);
  background: rgba(255, 255, 255, 0.045);
  color: var(--sr-white);
  font: inherit;
  outline: none;
}

.recruitment-form input::placeholder,
.recruitment-form textarea::placeholder {
  color: rgba(245, 247, 250, 0.45);
}

.recruitment-form select option {
  color: #080808;
}

.recruitment-form input:focus,
.recruitment-form select:focus,
.recruitment-form textarea:focus {
  border-color: var(--sr-light-purple);
  box-shadow: 0 0 18px rgba(109, 40, 255, 0.25);
}

.recruitment-form textarea {
  resize: vertical;
}

.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: 12px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.5;
}

.checkbox-label input {
  width: auto;
  margin-top: 4px;
}

.form-submit {
  justify-self: center;
}

/* Content Spotlight */
.creator-card {
  text-align: center;
}

.creator-card img {
  width: 130px;
  margin: 0 auto 18px;
}

.creator-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.creator-links a {
  border: 1px solid var(--sr-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: 0.2s ease;
}

.creator-links a:hover {
  background: var(--sr-purple);
}

/* News */
.news-date {
  color: var(--sr-light-purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.news-socials {
  margin-top: 30px;
}

/* Socials */
.social-grid a {
  border: 1px solid var(--sr-border);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
  transition: 0.2s ease;
}

.social-grid a:hover {
  background: var(--sr-purple);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  text-align: center;
  padding: 55px 20px;
  background: #050505;
  color: #aaa;
}

.footer img {
  width: 125px;
  margin: 0 auto 14px;
}

.footer-title {
  color: var(--sr-white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-tagline {
  color: var(--sr-white);
  font-weight: 900;
  margin: 8px 0;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes glowMove {
  from {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }

  to {
    transform: scale(1.05);
    filter: hue-rotate(8deg);
  }
}

@keyframes particleMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 160px 160px, -140px 140px;
  }
}

/* Mobile */
@media (max-width: 950px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 6%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    min-width: 230px;
    padding: 20px;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid var(--sr-border);
    border-radius: 18px;
  }

  .nav-links.open {
    display: flex;
  }

  .cards,
  .focus-grid,
  .social-grid,
  .news-grid,
  .form-grid,
  .creator-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 75px 22px;
  }

  .hero {
    padding-top: 125px;
  }

  .page-hero {
    min-height: 55vh;
    padding-top: 130px;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 4.5rem);
  }

  .hero h2 {
    letter-spacing: 3px;
  }
}
