/* -------------------- */
/*     BASE E FONTE     */
/* -------------------- */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700;800&display=swap');

:root {
  --bg: #f3f5f7;
  --text: #1d1d1d;
  --muted: #6d7075;
  --green: #0b7a5b;
  --green-dark: #0e5f49;
  --card-bg: #ffffff;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background: linear-gradient(135deg, #f3f5f7 0%, #e8eef3 100%);
  font-family: 'Ubuntu', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

/* -------------------- */
/*      CONTAINER       */
/* -------------------- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* -------------------- */
/*       HEADER         */
/* -------------------- */

.header {
  text-align: center;
  margin-bottom: 60px;
}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 0 16px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.logo-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
}

.tagline {
  font-size: 1.3rem;
  color: var(--muted);
  margin: 0;
  font-weight: 400;
}

/* -------------------- */
/*     GAMES GRID       */
/* -------------------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.game-card:hover::before {
  transform: scaleX(1);
}

.game-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: grayscale(0.2);
}

.game-card:hover .game-icon {
  filter: grayscale(0);
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.game-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.game-description {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 28px 0;
  line-height: 1.6;
}

.play-button {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.game-card:hover .play-button {
  background: var(--green-dark);
  transform: scale(1.05);
}

/* -------------------- */
/*       FOOTER         */
/* -------------------- */

.footer {
  text-align: center;
  padding: 24px 0;
  margin-top: auto;
}

.footer p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* -------------------- */
/*      RESPONSIVO      */
/* -------------------- */

@media (max-width: 768px) {
  .logo {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .game-card {
    padding: 32px 24px;
  }

  .game-icon {
    font-size: 3rem;
  }

  .game-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }

  .header {
    margin-bottom: 40px;
  }

  .logo {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .game-card {
    padding: 24px 20px;
  }
}
