/* ============================================================
   ROBLOX SMALL CREATOR TOURNAMENT — tournament.css
   ============================================================ */

:root {
  --t-bg:       #0d0f1a;
  --t-surface:  #161928;
  --t-card:     #1e2235;
  --t-border:   #2a2f4a;
  --t-accent:   #7c3aed;
  --t-accent2:  #a855f7;
  --t-gold:     #f59e0b;
  --t-green:    #22c55e;
  --t-red:      #ef4444;
  --t-text:     #e2e8f0;
  --t-muted:    #94a3b8;
  --t-white:    #ffffff;

  /* team colors */
  --team1: #ef4444; /* Blaze — red     */
  --team2: #3b82f6; /* Storm — blue    */
  --team3: #a855f7; /* Nova  — purple  */
  --team4: #06b6d4; /* Frost — cyan    */
  --team5: #22c55e; /* Venom — green   */
  --team6: #6b7280; /* Shadow— grey    */
}

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

body {
  background: var(--t-bg);
  color: var(--t-text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ───────────────────────────────────────────── */
.t-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  background: rgba(13,15,26,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--t-border);
}
.t-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--t-white);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.t-logo { height: 32px; width: auto; }
.t-nav-links { display: flex; gap: 1.8rem; }
.t-nav-links a {
  color: var(--t-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.t-nav-links a:hover { color: var(--t-white); }

/* ── HERO ──────────────────────────────────────────── */
.t-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7rem 2rem 6rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.35) 0%, transparent 65%),
              var(--t-bg);
}
.t-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: auto; }
.t-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-accent2);
  margin-bottom: 1.2rem;
}
.t-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--t-white);
  margin-bottom: 1.2rem;
  text-shadow: 0 0 40px rgba(124,58,237,0.5);
}
.t-accent { color: var(--t-accent2); }
.t-tagline {
  font-size: 1.1rem;
  color: var(--t-muted);
  margin-bottom: 2.2rem;
}
.t-tagline strong { color: var(--t-gold); }

/* floating particles */
.t-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.t-hero-particles span {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--t-accent2);
  opacity: 0.4;
  animation: float 6s infinite ease-in-out;
}
.t-hero-particles span:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s;    }
.t-hero-particles span:nth-child(2)  { left: 25%; top: 60%; animation-delay: 0.8s;  }
.t-hero-particles span:nth-child(3)  { left: 50%; top: 15%; animation-delay: 1.4s;  }
.t-hero-particles span:nth-child(4)  { left: 70%; top: 40%; animation-delay: 2s;    }
.t-hero-particles span:nth-child(5)  { left: 85%; top: 70%; animation-delay: 0.4s;  }
.t-hero-particles span:nth-child(6)  { left: 90%; top: 25%; animation-delay: 1.8s;  }
.t-hero-particles span:nth-child(7)  { left: 15%; top: 80%; animation-delay: 2.5s;  }
.t-hero-particles span:nth-child(8)  { left: 40%; top: 75%; animation-delay: 0.6s;  }
.t-hero-particles span:nth-child(9)  { left: 60%; top: 85%; animation-delay: 3s;    }
.t-hero-particles span:nth-child(10) { left: 78%; top: 12%; animation-delay: 1.2s;  }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ── BUTTONS ───────────────────────────────────────── */
.t-btn {
  display: inline-block;
  padding: 0.75rem 1.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.3rem;
}
.t-btn-primary {
  background: linear-gradient(135deg, var(--t-accent), var(--t-accent2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.t-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(124,58,237,0.6);
}
.t-btn-ghost {
  background: transparent;
  color: var(--t-muted);
  border: 1px solid var(--t-border);
}
.t-btn-ghost:hover { color: var(--t-white); border-color: var(--t-accent); }
.t-full { display: block; width: 100%; text-align: center; margin: 0; }

/* ── SECTIONS ──────────────────────────────────────── */
.t-section { padding: 5rem 2rem; }
.t-section-dark {
  background: var(--t-surface);
  border-top: 1px solid var(--t-border);
  border-bottom: 1px solid var(--t-border);
}
.t-container { max-width: 1100px; margin: auto; }
.t-narrow { max-width: 620px; }
.t-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--t-white);
  text-align: center;
  margin-bottom: 0.6rem;
}
.t-section-sub {
  text-align: center;
  color: var(--t-muted);
  margin-bottom: 2.8rem;
  font-size: 0.95rem;
}

/* ── TEAMS GRID ────────────────────────────────────── */
.t-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.t-team-card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.t-team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.t-team-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--t-border);
}
.t-team-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.t-team-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--t-white);
  flex: 1;
}
.t-team-count {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--t-bg);
  color: var(--t-muted);
}
.t-team-count.full { background: rgba(239,68,68,0.15); color: var(--t-red); }
.t-team-count.open { background: rgba(34,197,94,0.12); color: var(--t-green); }
.t-player-list { padding: 0.6rem 0; }
.t-player-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
}
.t-player-slot:last-child { border-bottom: none; }
.t-player-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--t-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid var(--t-border);
}
.t-player-info { flex: 1; }
.t-player-name { font-weight: 600; color: var(--t-white); }
.t-player-yt {
  font-size: 0.75rem;
  color: var(--t-muted);
}
.t-player-yt a { color: #ff4444; text-decoration: none; }
.t-player-yt a:hover { text-decoration: underline; }
.t-empty-slot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
  color: var(--t-muted);
  font-style: italic;
  opacity: 0.55;
}
.t-empty-slot:last-child { border-bottom: none; }
.t-empty-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px dashed var(--t-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── SIGN-UP FORM ──────────────────────────────────── */
.t-signup-card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: 20px;
  padding: 2.2rem;
}
.t-form-group { display: flex; flex-direction: column; gap: 0.9rem; }
.t-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t-muted);
}
.t-input-row {
  display: flex;
  align-items: center;
  background: var(--t-bg);
  border: 1px solid var(--t-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.t-input-row:focus-within { border-color: var(--t-accent2); }
.t-input-prefix {
  padding: 0 0.75rem;
  color: var(--t-accent2);
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(168,85,247,0.08);
  align-self: stretch;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--t-border);
}
.t-input {
  background: var(--t-bg);
  border: 1px solid var(--t-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--t-white);
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
}
.t-input-row .t-input {
  border: none;
  border-radius: 0;
  flex: 1;
}
.t-input:focus { border-color: var(--t-accent2); }
.t-select { cursor: pointer; }
.t-hint { font-size: 0.8rem; color: var(--t-muted); }
.t-hint code {
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
}

/* verify status box */
.t-verify-status {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.t-verify-status.loading {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  color: var(--t-accent2);
}
.t-verify-status.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--t-green);
}
.t-verify-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: var(--t-red);
}
.t-verified-badge {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--t-green);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

/* thank you */
.t-thankyou { text-align: center; padding: 1.5rem 0; }
.t-ty-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }
.t-thankyou h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.6rem;
  color: var(--t-white);
  margin-bottom: 0.5rem;
}
.t-thankyou p { color: var(--t-muted); margin-bottom: 1.5rem; }

/* ── RULES ─────────────────────────────────────────── */
.t-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.t-rule-card {
  background: var(--t-card);
  border: 1px solid var(--t-border);
  border-radius: 14px;
  padding: 1.5rem;
}
.t-rule-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.t-rule-card h3 { font-size: 1rem; font-weight: 700; color: var(--t-white); margin-bottom: 0.4rem; }
.t-rule-card p { font-size: 0.88rem; color: var(--t-muted); }

/* ── FOOTER ────────────────────────────────────────── */
.t-footer {
  border-top: 1px solid var(--t-border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.t-footer-brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: var(--t-white);
  margin-bottom: 0.4rem;
}
.t-footer-copy { font-size: 0.82rem; color: var(--t-muted); }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 640px) {
  .t-nav { padding: 0.75rem 1rem; }
  .t-hero { padding: 5rem 1.2rem 4rem; }
  .t-teams-grid { grid-template-columns: 1fr; }
  .t-rules-grid { grid-template-columns: 1fr; }
  .t-signup-card { padding: 1.5rem; }
}

/* override any conflicting styles from style.css */
body { background: var(--t-bg) !important; }
