:root {
  --bg: #080b12;
  --surface: #101622;
  --surface2: #151e2c;
  --blue: #168bff;
  --cyan: #35c8ff;
  --text: #f3f6fc;
  --muted: #8995a8;
  --border: #202d40;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.header {
  min-height: 76px;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 11, 18, .95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 1px;
}

.logo span, .hero h1 span, .about h2 span {
  color: var(--blue);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  transition: .2s;
}

nav a:hover {
  color: var(--cyan);
}

.hero {
  min-height: 480px;
  padding: 90px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 50%, #103a684d, transparent 45%),
    linear-gradient(120deg, #080b12, #0c1421);
}

.hero-content {
  max-width: 580px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 3px;
}

.hero h1 {
  font-size: clamp(43px, 7vw, 76px);
  line-height: 1.05;
  margin: 20px 0;
  font-weight: 900;
}

.hero p, .about p {
  max-width: 480px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.main-button {
  display: inline-block;
  padding: 13px 25px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 5px;
  transition: .2s;
}

.main-button:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.hero-decoration {
  font-size: clamp(130px, 24vw, 280px);
  font-weight: 900;
  color: #168bff12;
  text-shadow: 0 0 80px #168bff20;
  user-select: none;
}

.catalog {
  padding: 80px 10%;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2, .about h2 {
  font-size: 34px;
  margin-top: 8px;
}

.game-count {
  color: var(--muted);
  font-size: 13px;
}

.search {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: white;
  outline: none;
  font-size: 14px;
}

.search:focus {
  border-color: var(--blue);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.filter {
  padding: 9px 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
}

.filter.active, .filter:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: .25s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
}

.game-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: linear-gradient(135deg, #102d50, #111827);
}

.cover-placeholder {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  color: #35c8ff;
  background: linear-gradient(135deg, #102d50, #111827);
}

.game-info {
  padding: 17px;
}

.game-info h3 {
  font-size: 17px;
  margin: 9px 0;
}

.game-info p {
  color: var(--muted);
  font-size: 13px;
  min-height: 40px;
}

.tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 10px;
  border: 1px solid #168bff55;
  padding: 3px 8px;
  border-radius: 3px;
}

.game-links {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.game-link {
  padding: 8px 11px;
  background: var(--blue);
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
}

.game-link.youtube {
  background: #252f40;
}

.empty-state {
  text-align: center;
  padding: 60px 15px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.empty-icon {
  font-size: 48px;
  color: var(--blue);
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
}

.about {
  padding: 80px 10%;
  background: linear-gradient(120deg, #0d1522, #080b12);
  border-top: 1px solid var(--border);
}

.about p {
  margin-top: 18px;
}

footer {
  padding: 30px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid var(--border);
}

footer p, .footer-tag {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 650px) {
  .header {
    padding: 15px 5%;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    gap: 22px;
  }

  .hero {
    min-height: 420px;
    padding: 65px 7%;
  }

  .hero-decoration {
    position: absolute;
    right: -25px;
    bottom: 0;
  }

  .catalog {
    padding: 55px 6%;
  }

  .section-heading h2, .about h2 {
    font-size: 27px;
  }

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

  .about {
    padding: 60px 7%;
  }

  footer {
    padding: 25px 7%;
    flex-direction: column;
    text-align: center;
  }
}

/* PUBLICAÇÕES */

.publications {
  padding: 75px 10%;
  border-top: 1px solid var(--border);
  background: #0b101a;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.article-card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: .25s;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
}

.article-cover {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}

.article-placeholder {
  height: 155px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 35px;
  font-weight: 900;
  background: linear-gradient(135deg, #102d50, #111827);
}

.article-info {
  padding: 18px;
}

.article-category {
  color: var(--cyan);
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.article-info h3 {
  margin: 9px 0;
  font-size: 17px;
  line-height: 1.4;
}

.article-info p, .article-date {
  color: var(--muted);
  font-size: 13px;
}

.article-date {
  display: block;
  margin-top: 13px;
}

.article-page {
  max-width: 850px;
  margin: 55px auto;
  padding: 0 22px 70px;
}

.article-page h1 {
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.2;
  margin: 15px 0;
}

.article-page .article-body {
  margin-top: 30px;
  color: #c4ccda;
  font-size: 17px;
  line-height: 1.9;
}

.article-page .article-body p {
  margin-bottom: 20px;
}

.article-back {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--cyan);
}

.article-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 25px;
}

@media (max-width: 650px) {
  .publications {
    padding: 55px 6%;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* VÍDEOS DO CANAL */

.videos {
  padding: 75px 10%;
  border-top: 1px solid var(--border);
  background: #080d16;
}

.video-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: .25s;
}

.video-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  display: block;
}

.video-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.video-info h3 {
  font-size: 23px;
  line-height: 1.3;
}

.video-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.video-info .main-button {
  margin-top: 8px;
}

@media (max-width: 650px) {
  .videos {
    padding: 55px 6%;
  }

  .video-card {
    grid-template-columns: 1fr;
  }

  .video-thumbnail {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .video-info {
    padding: 22px;
  }
}


/* NOVO SISTEMA DE GRADE DE VIDEOS */

.videos-grid,
#category-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}

.videos-grid .video-card,
#category-videos-grid .video-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  grid-template-columns: 1fr;
}

.videos-grid .video-card > a,
#category-videos-grid .video-card > a {
  display: block;
  width: 100%;
  overflow: hidden;
}

.videos-grid .video-thumbnail,
#category-videos-grid .video-thumbnail {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.videos-grid .video-info,
#category-videos-grid .video-info {
  flex: 1;
  padding: 20px;
}

.videos-grid .video-info h3,
#category-videos-grid .video-info h3 {
  font-size: 18px;
}

@media (max-width: 650px) {
  .videos-grid,
  #category-videos-grid {
    grid-template-columns: 1fr;
  }
}
