/* Import wiki navigation styles */
@import url('wiki-styles.css');

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

body {
  background-color: #1a1a1a;
  color: #e0e0e0;
  font-family: 'Fredoka One', cursive;
  line-height: 1.7;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* Game Header */
.game-header {
  background-color: #2c3e50;
  color: white;
  padding: 1rem 0;
  border-bottom: 3px solid #34495e;
}

.game-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.game-logo h1 {
  font-size: 2.2rem;
  color: #ecf0f1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
}

/* Use wiki navigation styling */

/* Main Container */
.game-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.game-content {
  background-color: #2d2d2d;
  border: 1px solid #404040;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 2rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 2rem;
}

/* Content Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 2rem;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Social containers layout */
.social-containers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
  margin: 3rem 0;
}

/* Enhanced social section styling */
.community-section,
.instagram-section {
  text-align: center;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px solid #404040;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.community-section::before,
.instagram-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7289da, #5865f2);
  border-radius: 15px 15px 0 0;
}

.instagram-section::before {
  background: linear-gradient(90deg, #e4405f, #f77737, #fcaf45);
}

.community-section:hover,
.instagram-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.community-section h2,
.instagram-section h2 {
  color: #e0e0e0;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

.community-section p,
.instagram-section p {
  margin-bottom: 1rem;
  color: #bdc3c7;
  font-size: 1.1rem;
  line-height: 1.6;
}

.social-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #bdc3c7;
  font-size: 1.1rem;
}

.feature-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.5rem;
  width: 260px;
  height: 60px;
  min-width: 260px;
  min-height: 60px;
  text-align: center;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
  background: linear-gradient(45deg, #2980b9, #1f5f8b);
}

.social-button img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Community Stats Section */
.community-stats {
  margin: 4rem 0 2rem 0;
  text-align: center;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 3rem;
  border-radius: 15px;
  border: 2px solid #404040;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.community-stats h2 {
  color: #e0e0e0;
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: bold;
}

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

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #bdc3c7;
  font-size: 1.1rem;
}

.hero-section h1 {
  color: #e0e0e0;
  font-size: 2.7rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
}

.banner-images {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.banner-images img {
  width: 80%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #3498db;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-images img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.wiki-link-section {
  margin: 2rem 0;
  text-align: center;
}

.wiki-button {
  display: inline-block;
  padding: 20px 40px;
  background: linear-gradient(45deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.wiki-button:hover {
  background: linear-gradient(45deg, #2980b9, #1f5f8b);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Support Us Button */
.support-us-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(45deg, #e74c3c, #c0392b);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.support-us-button:hover {
  background: linear-gradient(45deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Download Section */
.download-section {
  text-align: center;
  background-color: #333;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #404040;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-section h2 {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.download-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #27ae60, #229954);
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  width: 220px;
  height: 60px;
  min-width: 220px;
  min-height: 60px;
}

.download-button.disabled {
  background: linear-gradient(45deg, #7f8c8d, #6c7b7d);
  cursor: not-allowed;
  opacity: 0.7;
  width: 220px;
  height: 65px;
  min-width: 220px;
  min-height: 65px;
}

.download-button.disabled:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

.platform-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.download-button:hover {
  background: linear-gradient(45deg, #229954, #1e8449);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

/* Video Section */
.video-section {
  text-align: center;
  background-color: #333;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #404040;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-section h2 {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.video-container {
  display: flex;
  justify-content: center;
}

.video-container iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Community Section */
.community-section,
.instagram-section {
  text-align: center;
  background-color: #333;
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #404040;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.community-section h2 {
  color: #e0e0e0;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.community-section p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #7f8c8d;
}

.discord-link {
  margin: 2rem 0;
}

.discord-link img,
.instagram-link img {
  width: 50%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.discord-link img:hover,
.instagram-link img:hover {
  transform: scale(1.05);
}

.instagram-link {
  margin: 2rem 0;
}

.features-showcase {
  margin-top: 1.5rem;
}

.game-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.game-features img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 8px;
  border: 2px solid #666;
  transition: all 0.3s ease;
  opacity: 1;
  filter: brightness(1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.game-features img:hover {
  transform: scale(1.05);
  opacity: 1;
  filter: brightness(1.1);
  border-color: #3498db;
  box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* Footer */
.game-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Fix horizontal scrolling */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .game-container {
    padding: 0.5rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .game-content {
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .game-nav {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 0 0.5rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .game-navigation {
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    max-width: 100%;
  }

  .game-navigation a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .social-containers {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 100%;
  }

  /* Ensure all containers have consistent height on mobile */
  .download-section,
  .video-section,
  .community-section,
  .instagram-section {
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.25rem;
  }

  .community-section,
  .instagram-section {
    align-items: center;
  }

  .discord-link,
  .instagram-link {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .social-button {
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
    width: 90%;
    max-width: 240px;
    height: 55px;
    min-height: 55px;
    margin: 1rem auto 0 auto;
    box-sizing: border-box;
  }

  .social-button img {
    width: 20px;
    height: 20px;
  }

  /* Make download buttons stack properly on mobile */
  .download-links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    max-width: 100%;
  }

  .download-button {
    width: 90%;
    max-width: 280px;
    height: 60px;
    min-height: 60px;
    box-sizing: border-box;
  }

  /* Ensure video container scales properly */
  .video-container {
    margin-top: auto;
    max-width: 100%;
  }

  .video-container iframe {
    width: 100%;
    height: 180px;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Community and Instagram sections alignment */
  .discord-link,
  .instagram-link {
    margin-top: auto;
    margin-bottom: 0;
  }

  .features-showcase {
    margin-top: auto;
  }

  .banner-images {
    max-width: 100%;
    overflow: hidden;
  }

  .banner-images img {
    width: 95%;
    max-width: 100%;
    height: auto;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    word-break: break-word;
  }
}

  @media (max-width: 480px) {
  .hero-section h1 {
    font-size: 1.8rem;
  }

  .download-section h2,
  .video-section h2,
  .community-section h2,
  .instagram-section h2 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .community-stats {
    padding: 2rem 1rem;
  }

  .game-container {
    padding: 1rem;
  }

  .game-content {
    padding: 1rem;
  }
}

.game-navigation a:hover {
  background-color: #34495e;
}

.socials-button {
  background: #ff6b6b !important;
  border-radius: 8px !important;
  padding: 0.5rem 1rem !important;
}

.socials-button:hover {
  background-color: #e55555 !important;
}

/* Mobile styles for socials button */
@media (max-width: 768px) {
  .socials-button {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    min-width: 80px !important;
    text-align: center !important;
    height: auto !important;
    line-height: normal !important;
    box-sizing: border-box !important;
  }
}
