/* GLOBAL RESETS */
:root {
  --accent-color: gold;
  --text-color: #ffffff;
  --background-color: #003366;
  --highlight-color: #e61b1b;
  --text-light: #f0f0f0;
  --accent-light: #ffe066;
  --accent-dark: #ccac00;
  --background-light: #1a2a6c;
  --background-dark: #001f5e;
  --highlight-light: #ff7373;
  --highlight-dark: #a80000;
  --gradient-color: linear-gradient(to bottom, #003366, #000);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gradient-color);
  color: var(--text-color);
}

main {
  width: 100%;
  padding: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 1rem;
  text-align: center;
}

/* GRID */
.gaming-grid {
  display: grid;
  grid-template-areas:
    ". head-logo head-logo head-logo ."
    ". main-text main-text main-text ."
    ". game-highlights game-highlights game-highlights ."
    ". sponsored sponsored sponsored ."
    ". community community community .";
  grid-template-columns: 1fr 2fr 2fr 2fr 1fr;
  grid-template-rows: auto auto auto auto auto;
  width: 100%;
  gap: 0;
  padding: 2rem;
  margin: auto;
  background: none;
  align-content: start;
}

/* GRID SECTIONS */
.hero-banner {
  grid-area: head-logo;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(204, 172, 0, 0.4);
  animation: slideInTop 1s ease-out;
}

.hero-banner h1 {
  margin: 2rem 1.5rem;
  font-size: calc(1.8rem + 1vw);
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner h2 {
  margin: 0.5rem 2rem;
  font-size: calc(1rem + 0.5vw);
  font-weight: normal;
  color: var(--text-light);
}

.game-highlights {
  grid-area: game-highlights;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  animation: slideInLeft 1.2s ease-out;
}

.game-highlights h2 {
  margin: 1rem 0 1.5rem 0;
  font-size: calc(1rem + 1vw);
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sponsored {
  grid-area: sponsored;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  animation: slideInRight 1.4s ease-out;
}

.sponsored h2 {
  margin: 1rem 0 1rem 0;
  font-size: calc(1rem + 1vw);
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sponsored p {
  margin: 0.5rem 1rem;
  font-size: calc(0.8rem + 0.3vw);
  color: var(--text-light);
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.community {
  grid-area: community;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  animation: slideInBottom 1.6s ease-out;
}

.community h2 {
  margin: 1rem 0 1.5rem 0;
  font-size: calc(1rem + 1vw);
  font-weight: 900;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.community p {
  margin: 0.5rem 1rem;
  font-size: calc(0.8rem + 0.3vw);
  color: var(--text-light);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* GAME CARDS */
.game-card {
  background: var(--background-dark);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 49, 247, 0.4);
}

.game-card h3 {
  margin: 0.5rem 0;
  font-size: calc(0.9rem + 0.3vw);
  color: var(--accent-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.game-card p {
  margin: 0.5rem 1rem;
  font-size: calc(0.8rem + 0.3vw);
  color: var(--text-light);
  line-height: 1.6;
}

.game-card img {
  width: 100%;
  border-radius: 12px;
}

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--highlight-color);
  color: var(--text-light);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
  background: var(--highlight-light);
  box-shadow: 0 4px 10px rgba(255, 115, 115, 0.5);
}

/* BANNER */
.banner-bg {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.banner-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

/* ANIMATIONS */
@keyframes slideInTop {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInBottom {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .gaming-grid {
    grid-template-areas:
      "head-logo head-logo head-logo"
      "main-text main-text main-text"
      "game-highlights game-highlights game-highlights"
      "sponsored sponsored sponsored"
      "community community community";
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 1rem;
    padding: 0;
  }

  .hero-banner {
    padding: 2rem 1rem;
  }

  .hero-banner h1 {
    margin: 1rem;
    font-size: calc(1.4rem + 1vw);
  }

  .hero-banner h2 {
    margin: 0.5rem 1rem;
    font-size: calc(0.9rem + 0.5vw);
  }

  .game-highlights {
    padding: 1rem;
  }

  .game-highlights h2 {
    margin: 0.5rem;
    font-size: calc(0.9rem + 1vw);
  }

  .game-highlights p {
    margin: 0.5rem;
    font-size: calc(0.7rem + 0.3vw);
  }

  .sponsored {
    padding: 1rem;
  }

  .sponsored h2 {
    margin: 0.5rem;
    font-size: calc(0.9rem + 1vw);
  }

  .sponsored p {
    margin: 0.5rem;
    font-size: calc(0.7rem + 0.3vw);
    line-height: 1.4;
  }

  .community {
    padding: 1rem;
  }

  .community h2 {
    margin: 0.5rem;
    font-size: calc(0.9rem + 1vw);
  }

  .community p {
    margin: 0.5rem;
    font-size: calc(0.7rem + 0.3vw);
  }

  .banner-blur {
    padding: 1rem;
  }

  .game-card {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .gaming-grid {
    grid-template-areas:
      "head-logo"
      "main-text"
      "game-highlights"
      "sponsored"
      "community";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 1rem;
    padding: 0;
  }

  .hero-banner {
    padding: 1.5rem 0.5rem;
  }

  .hero-banner h1 {
    margin: 0.5rem;
    font-size: calc(1.2rem + 1vw);
  }

  .hero-banner h2 {
    margin: 0.5rem;
    font-size: calc(0.8rem + 0.5vw);
  }

  .game-highlights {
    padding: 0.5rem;
  }

  .game-highlights h2 {
    margin: 0.5rem;
    font-size: calc(0.8rem + 1vw);
  }

  .game-highlights p {
    margin: 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
  }

  .sponsored {
    padding: 0.5rem;
  }

  .sponsored h2 {
    margin: 0.5rem;
    font-size: calc(0.8rem + 1vw);
  }

  .sponsored p {
    margin: 0.3rem 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
    line-height: 1.3;
  }

  .community {
    padding: 0.5rem;
  }

  .community h2 {
    margin: 0.5rem;
    font-size: calc(0.8rem + 1vw);
  }

  .community p {
    margin: 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
  }

  .banner-blur {
    padding: 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
    line-height: 1.3;
  }

  .banner-blur h2 {
    margin: 0.3rem 0.5rem;
    font-size: calc(0.8rem + 1vw);
    line-height: 1.2;
  }

  .banner-blur p {
    margin: 0.3rem 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
    line-height: 1.3;
  }

  .cta-button {
    padding: 0.5rem 1rem;
    font-size: calc(0.6rem + 0.3vw);
    line-height: 1.3;
  }

  .game-card {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .game-card h3 {
    margin: 0.3rem 0;
    font-size: calc(0.8rem + 0.3vw);
  }

  .game-card p {
    margin: 0.3rem 0.5rem;
    font-size: calc(0.6rem + 0.3vw);
  }
}
