/* Monkeytopia - Supercell/Clash of Clans Style */

/* Variables - Supercell Colors */
:root {
  --clash-blue: #4A90E2;
  --clash-purple: #7B68EE;
  --clash-green: #32CD32;
  --clash-orange: #FF8C00;
  --clash-gold: #FFD700;
  --clash-red: #FF4500;
  
  --bg-dark: #1a1a2e;
  --bg-blue: #16213e;
  --bg-purple: #0f0f23;
  
  --white: #ffffff;
  --dark: #2c2c54;
  
  --font-title: 'Fredoka One', cursive;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-blue) 50%, var(--bg-purple) 100%);
  color: var(--white);
  line-height: 1.4;
  overflow-x: hidden;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 3rem 0;
  background: radial-gradient(circle at center, rgba(75, 144, 226, 0.2) 0%, transparent 70%);
}

.hero-badge {
  background: linear-gradient(135deg, var(--clash-orange), var(--clash-red));
  color: var(--white);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  border: 3px solid var(--clash-gold);
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--clash-gold);
  text-shadow: 
    3px 3px 0px var(--clash-orange),
    6px 6px 0px var(--clash-red),
    9px 9px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--clash-blue);
  text-shadow: 2px 2px 0px var(--clash-purple);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.5;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-width: 140px;
}

.btn-play {
  background: linear-gradient(135deg, var(--clash-green), #228B22);
  color: var(--white);
  border-color: #228B22;
  box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
}

.btn-download {
  background: linear-gradient(135deg, var(--clash-blue), var(--clash-purple));
  color: var(--white);
  border-color: var(--clash-purple);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(0) scale(1);
}

/* Sections */
section {
  padding: 3rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-tag {
  background: linear-gradient(135deg, var(--clash-purple), var(--clash-blue));
  color: var(--white);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-family: var(--font-title);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  border: 2px solid var(--clash-gold);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--white);
  text-shadow: 2px 2px 0px var(--clash-purple), 4px 4px 10px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  line-height: 1.2;
}

/* Features Section */
.features {
  background: linear-gradient(135deg, var(--bg-blue) 0%, var(--bg-purple) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 3px solid var(--clash-gold);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--clash-gold), var(--clash-orange), var(--clash-red), var(--clash-purple), var(--clash-blue), var(--clash-green));
  border-radius: 15px;
  z-index: -1;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--dark);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.8;
  font-weight: 600;
}

/* Villages Section */
.villages {
  background: linear-gradient(135deg, var(--clash-green) 0%, var(--clash-blue) 100%);
}

.villages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.village-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border: 3px solid var(--clash-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.village-card:hover {
  transform: translateY(-3px) scale(1.05);
}

.village-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  display: block;
}

.village-card h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.village-card p {
  color: var(--dark);
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 600;
  line-height: 1.3;
}

/* Characters Section */
.characters {
  background: linear-gradient(135deg, var(--clash-purple) 0%, var(--clash-red) 100%);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.char-group h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.char-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.char-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  backdrop-filter: blur(10px);
}

.char-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.char-item h4 {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.char-item p {
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0.8;
  line-height: 1.3;
}

/* Stats Section */
.stats {
  background: linear-gradient(135deg, var(--clash-orange) 0%, var(--clash-gold) 100%);
  text-align: center;
}

.stats h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

.stats p {
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 1rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0.9;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  padding: 2rem 0 1rem;
  text-align: center;
}

.footer-content h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--clash-gold);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.footer-content p {
  color: var(--white);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: var(--clash-blue);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(74, 144, 226, 0.2);
  border: 2px solid var(--clash-blue);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--clash-blue);
  color: var(--white);
  transform: translateY(-2px);
}

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

.footer-bottom p {
  color: var(--white);
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
  
  .villages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .char-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  
  section {
    padding: 2rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .hero-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }
  
  .section-tag {
    font-size: 0.6rem;
    padding: 0.2rem 0.6rem;
  }
  
  .feature-card, .village-card {
    padding: 0.8rem;
  }
  
  .villages-grid {
    grid-template-columns: 1fr;
  }
  
  .char-item {
    padding: 0.8rem;
    gap: 0.8rem;
  }
  
  .char-emoji {
    font-size: 1.5rem;
  }
}