/* ===== KUHL KIDS - KITSCH STYLESHEET ===== */

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

:root {
  /* Colors */
  --background: hsl(50, 100%, 95%);
  --foreground: hsl(280, 80%, 25%);
  --card: hsl(0, 0%, 100%);
  --primary: hsl(330, 100%, 60%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(120, 70%, 50%);
  --muted: hsl(45, 100%, 90%);
  --muted-foreground: hsl(280, 60%, 40%);
  --gold: hsl(45, 100%, 55%);
  --gold-dark: hsl(45, 100%, 20%);
  --hot-pink: hsl(330, 100%, 60%);
  --cyan: hsl(180, 100%, 50%);
  --purple: hsl(280, 80%, 60%);
  --lime: hsl(120, 70%, 50%);
  
  /* Gradients */
  --gradient-rainbow: linear-gradient(90deg, 
    hsl(0, 100%, 65%), 
    hsl(30, 100%, 60%), 
    hsl(60, 100%, 55%), 
    hsl(120, 70%, 50%), 
    hsl(180, 100%, 50%), 
    hsl(240, 80%, 60%), 
    hsl(300, 80%, 60%)
  );
  --gradient-kitsch: linear-gradient(135deg, var(--hot-pink), var(--purple), var(--cyan));
  --gradient-gold: linear-gradient(135deg, hsl(45, 100%, 70%), hsl(45, 100%, 50%), hsl(35, 100%, 45%));
}

body {
  font-family: 'Comic Neue', cursive;
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Bangers', cursive;
  letter-spacing: 2px;
}

/* ===== UTILITIES ===== */
.text-primary {
  color: var(--primary);
  font-weight: bold;
}

.text-rainbow {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px hsla(330, 100%, 60%, 0.5), 0 0 40px hsla(280, 80%, 60%, 0.3);
  }
  50% { 
    box-shadow: 0 0 40px hsla(330, 100%, 60%, 0.8), 0 0 80px hsla(280, 80%, 60%, 0.5);
  }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes rainbow-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.float { animation: float 3s ease-in-out infinite; }
.wiggle { animation: wiggle 0.5s ease-in-out infinite; }
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.rotate-slow { animation: rotate 10s linear infinite; }
.rotate-slow-reverse { animation: rotate 10s linear infinite reverse; }
.bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }
.sparkle { animation: sparkle 1.5s ease-in-out infinite; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-rainbow);
  background-size: 200% 200%;
  animation: rainbow-shift 3s ease infinite;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--background);
  opacity: 0.8;
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  border-radius: 50%;
}

.floating-star {
  position: absolute;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.hero-emojis {
  margin-bottom: 1.5rem;
}

.hero-emojis span {
  font-size: 4rem;
  display: inline-block;
  margin: 0 0.5rem;
}

.hero-title {
  font-size: clamp(3rem, 12vw, 8rem);
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--hot-pink)) drop-shadow(0 0 20px var(--hot-pink));
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 1.5rem;
}

.hero-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  border: 4px solid var(--primary);
  font-size: 1.1rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.badge {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  display: inline-block;
}

.badge-pink {
  background: var(--gradient-kitsch);
  color: white;
}

.badge-gold {
  background: var(--gradient-gold);
  color: var(--gold-dark);
}

.badge-green {
  background: var(--secondary);
  color: white;
}

.hero-decoration {
  position: absolute;
  font-size: 3rem;
}

.bottom-left { bottom: 1rem; left: 1rem; }
.bottom-right { bottom: 1rem; right: 1rem; }
.top-left { top: 5rem; left: 2rem; }
.top-right { top: 8rem; right: 2rem; }

@media (min-width: 768px) {
  .hero-emojis span { font-size: 5rem; }
  .hero-decoration { font-size: 4rem; }
}

/* ===== SCOREBOARD SECTION ===== */
.scoreboard-section {
  padding: 3rem 1rem;
  background: var(--muted);
}

.scoreboard-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: var(--gradient-kitsch);
  padding: 0.5rem;
  border-radius: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.scoreboard {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
}

.scoreboard-title {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.team {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s;
}

.team:hover {
  transform: scale(1.05);
}

.team-kuhl {
  background: var(--gradient-gold);
}

.team-kuhl h3 {
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.team-kuhl .score {
  font-size: 4rem;
  font-family: 'Bangers', cursive;
  color: var(--gold-dark);
}

.team-kuhl .score-label {
  color: rgba(0, 0, 0, 0.6);
}

.trophy {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.team-rivals {
  background: var(--muted);
  opacity: 0.7;
}

.team-rivals h3 {
  font-size: 1.2rem;
  color: var(--muted-foreground);
}

.team-rivals .score {
  font-size: 3rem;
  font-family: 'Bangers', cursive;
  color: var(--muted-foreground);
}

.team-rivals .score-label {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.4);
}

.sad-emoji {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.vs {
  text-align: center;
}

.vs span {
  font-family: 'Bangers', cursive;
  font-size: 2.5rem;
  color: var(--primary);
  display: block;
}

.scoreboard-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .scoreboard { padding: 3rem; }
  .team-kuhl .score { font-size: 5rem; }
  .team-rivals .score { font-size: 4rem; }
  .vs span { font-size: 3.5rem; }
}

/* ===== RIVALRY SECTION ===== */
.rivalry-section {
  padding: 4rem 1rem;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  margin-bottom: 2rem;
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

@media (min-width: 768px) {
  .rivalry-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.rivalry-card {
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
}

.rivalry-kuhl {
  background: var(--gradient-gold);
}

.rivalry-kuhl:hover {
  transform: scale(1.05);
}

.rivalry-kuhl h3 {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 1rem;
}

.rivalry-kuhl ul {
  list-style: none;
  color: rgba(0, 0, 0, 0.8);
  font-size: 1.1rem;
}

.rivalry-kuhl ul li {
  margin: 0.5rem 0;
}

.rivalry-kuhl .rivalry-footer {
  margin-top: 1.5rem;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.rivalry-rivals {
  background: var(--muted);
  opacity: 0.7;
}

.rivalry-rivals:hover {
  transform: scale(0.95);
}

.rivalry-rivals h3 {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.rivalry-rivals ul {
  list-style: none;
  color: rgba(0, 0, 0, 0.5);
}

.rivalry-rivals ul li {
  margin: 0.5rem 0;
}

.rivalry-rivals .rivalry-footer {
  margin-top: 1.5rem;
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.4);
}

.strikethrough li {
  text-decoration: line-through;
}

.rivalry-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.rivalry-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted-foreground);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== DUELS SECTION ===== */
.duels-section {
  padding: 4rem 1rem;
  background: var(--background);
  position: relative;
}

.duels-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.duels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.duel-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s;
}

.duel-card:hover {
  transform: scale(1.05) rotate(1deg);
}

.duel-won {
  background: var(--gradient-gold);
  animation: pulse-glow 2s ease-in-out infinite;
}

.duel-trophy {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  font-size: 2rem;
  transform: rotate(12deg);
}

.duel-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.duel-card h3 {
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.duel-card p {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.duel-score {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--gold-dark);
}

.duel-winner {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  font-size: 0.7rem;
  color: rgba(0, 0, 0, 0.5);
}

.total-score {
  text-align: center;
  background: var(--gradient-kitsch);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.total-score-number {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: white;
}

.total-score-text {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-kitsch);
  padding: 3rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-rainbow);
  background-size: 200% 200%;
  animation: rainbow-shift 3s ease infinite;
  opacity: 0.2;
}

.footer > * {
  position: relative;
  z-index: 1;
}

.footer h2 {
  font-size: clamp(2rem, 6vw, 3rem);
  color: white;
  margin-bottom: 1.5rem;
}

.footer-emojis {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .footer-emojis { font-size: 3.5rem; }
}
