/* index.css — requires css/common.css */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  padding: 40px 20px;
  color: #fff;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
}

.section {
  margin-bottom: 40px;
}

.section-title {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid rgba(100, 200, 255, 0.6);
}

/* Tools */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.tool-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 24px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.tool-card:hover::before {
  left: 100%;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  background: rgba(52, 152, 219, 0.1);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.tool-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.85rem;
  color: #999;
}

/* Games */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px 20px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.5s ease;
}

.game-card:hover::before {
  left: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.game-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}

.game-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.game-desc {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}

.game-card.snake:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
}

.game-card.g2048:hover {
  background: rgba(255, 152, 0, 0.15);
  border-color: rgba(255, 152, 0, 0.5);
}

.game-card.gomoku:hover {
  background: rgba(100, 149, 237, 0.15);
  border-color: rgba(100, 149, 237, 0.5);
}

.game-card.mine:hover {
  background: rgba(231, 76, 60, 0.15);
  border-color: rgba(231, 76, 60, 0.5);
}

@media (max-width: 600px) {
  .title {
    font-size: 1.8rem;
  }
}
