/* Title styling */
.game-title {
    text-align: center;
    font-size: 3.5rem;
    margin: 2rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    color: #57BD91;
    text-shadow: 
        2px 2px 4px rgba(87, 189, 145, 0.2),
        -1px -1px 0 rgba(255, 255, 255, 0.8),
        1px -1px 0 rgba(255, 255, 255, 0.8),
        -1px 1px 0 rgba(255, 255, 255, 0.8),
        1px 1px 0 rgba(255, 255, 255, 0.8);
}

.game-subtitle {
  display: block;
  margin: 0 auto 32px auto;
  max-width: 700px;
  text-align: center;
  font-size: 1.18rem;
  color: #444b5a;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.game-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    justify-content: center;
    align-items: stretch;
}

.game-option {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid #57BD91;
  box-shadow: 0 4px 15px rgba(87, 189, 145, 0.1);
}

.game-option:hover {
  background: linear-gradient(145deg, #ffffff, rgba(87, 189, 145, 0.1));
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 189, 145, 0.2);
  border-color: #57BD91;
}

.game-option h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.game-option p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.play-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #57BD91;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: #4ca57d;
  transform: scale(1.05);
}

.play-button.disabled {
  background: #cccccc;
  cursor: not-allowed;
}

.play-button.disabled:hover {
  transform: none;
  background: #cccccc;
}


/* Coming Soon Styles */
.game-option.coming-soon {
    opacity: 0.8;
}

.coming-soon-text {
    font-size: 1.2rem;
    color: #888;
    font-style: italic;
}

/* Game Preview Styles */
.game-preview {
    margin: 1rem 0;
    min-height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: monospace;
}

/* Word Scramble Preview */
.scramble-preview {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.scrambled-word {
    color: #57BD91;
    font-weight: bold;
}

/* Word Search Preview */
.search-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    font-size: 0.9rem;
    font-weight: bold;
}

.search-grid span {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlighted {
    color: #57BD91;
    background: rgba(87, 189, 145, 0.1);
}

/* Word Cross Preview */
.cross-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
}

.cross-cell {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cross-cell.filled {
    background: #57BD91;
    color: white;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .game-options-container {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.2rem;
      padding: 1.5rem;
      max-width: 90%;
      margin: 1rem auto;
  }

  .game-option {
      padding: 1.5rem;
      border-radius: 12px;
  }

  .game-option h2 {
      font-size: 1.3rem;
      margin-bottom: 0.5rem;
  }

  .game-option p {
      font-size: 0.9rem;
      margin-bottom: 1rem;
      line-height: 1.4;
  }

  .game-preview {
      min-height: 80px;
  }

  .search-grid span,
  .cross-cell {
      width: 18px;
      height: 18px;
      font-size: 0.75rem;
  }
}

@media screen and (max-width: 480px) {
  .game-options-container {
      grid-template-columns: 1fr;
      padding: 1.2rem;
      gap: 1rem;
      margin: 1rem auto;
      width: 85%;
      max-width: 400px;
  }

  .game-option {
      padding: 1.5rem;
      margin: 0;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(87, 189, 145, 0.15);
  }

  .game-title {
      font-size: 2rem;
      margin: 1.5rem 0;
      padding: 0 1rem;
  }

  .game-preview {
      min-height: 70px;
      margin: 1rem 0;
  }

  .game-option h2 {
      font-size: 1.2rem;
      margin-bottom: 0.7rem;
  }

  .game-option p {
      font-size: 0.9rem;
      margin: 0.8rem 0;
      padding: 0 0.5rem;
  }

  .play-button {
      margin-top: 0.5rem;
  }
}

@media screen and (max-width: 360px) {
  .game-options-container {
      width: 90%;
      padding: 1rem;
  }

  .game-option {
      padding: 1.2rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .game-option {
    background: #ffffff;
    border-width: 2px;
    border-style: solid;
  }
  
  .game-option:hover {
    background: linear-gradient(145deg, #ffffff, rgba(87, 189, 145, 0.1));
  }

  .game-option h2 {
      color: #333;
  }

  .game-option p {
      color: #666;
  }

  .easy { background: rgba(87, 189, 145, 0.1); }
  .medium { background: rgba(87, 189, 145, 0.1); }
  .hard { background: rgba(87, 189, 145, 0.1); }

  .game-title {
      color: #57BD91;
      text-shadow: 
          2px 2px 4px rgba(87, 189, 145, 0.3),
          -1px -1px 0 rgba(0, 0, 0, 0.1),
          1px -1px 0 rgba(0, 0, 0, 0.1),
          -1px 1px 0 rgba(0, 0, 0, 0.1),
          1px 1px 0 rgba(0, 0, 0, 0.1);
  }

  .search-grid span.highlighted {
      background: rgba(87, 189, 145, 0.1);
  }
  
  .cross-cell {
      border-color: #444;
  }
}
