/* IndieRates — portal gaming (foto + titular), tono IGN/Vandal */

:root {
  --bg: #0e0e10;
  --bg-2: #16161a;
  --bg-3: #1e1e24;
  --line: #2a2a32;
  --text: #f3f3f5;
  --muted: #a0a0ab;
  --accent: #e10600;
  --accent-2: #ffcc00;
  --max: 1180px;
  --nav-h: 3.6rem;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Barlow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: #fff; }

p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* NAV — barra de portal */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #080809;
  border-bottom: 2px solid var(--accent);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
}

.logo span {
  background: var(--accent);
  color: #fff;
  padding: 0.05rem 0.35rem;
  margin-left: 0.15rem;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a {
  padding: 0.55rem 0.7rem;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--bg-3);
}

.nav-toggle {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}

/* HERO FEATURED — foto + titular encima (estilo IGN) */
.hero-feature {
  position: relative;
  isolation: isolate;
  min-height: min(72vh, 560px);
  display: flex;
  align-items: flex-end;
  background: #111;
  overflow: hidden;
}

.hero-feature__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: center/cover no-repeat;
  transform: scale(1.02);
}

.hero-feature__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(8, 8, 9, 0.92) 0%,
    rgba(8, 8, 9, 0.55) 42%,
    rgba(8, 8, 9, 0.25) 100%
  ),
  linear-gradient(0deg, rgba(8, 8, 9, 0.9) 0%, transparent 45%);
}

.hero-feature__content {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto 2.5rem;
  max-width: 38rem;
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 0.28rem 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-feature h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.75rem;
}

.hero-feature h1 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
}

.hero-feature .deck {
  color: #d7d7de;
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  background: var(--accent-2);
  color: #111;
  padding: 0.2rem 0.55rem;
}

.score-pill small {
  font-size: 0.75rem;
  font-weight: 700;
}

/* SECTIONS */
.section {
  padding: 1.75rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.section-head h2 {
  font-size: 1.55rem;
  margin: 0;
}

.section-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-link:hover { color: var(--accent-2); }

/* CARD GRID — foto arriba, titular abajo */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: #444;
  transform: translateY(-2px);
}

.card__img {
  aspect-ratio: 16 / 9;
  background: #222 center/cover no-repeat;
}

.card__body {
  padding: 0.85rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.card h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0;
}

.card h3 a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  margin-top: auto;
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card__score {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-2);
}

/* FEATURE ROW: big + stack */
.feature-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.feature-main {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #111;
}

.feature-main__img {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
}

.feature-main__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 55%);
}

.feature-main__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
}

.feature-main h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.feature-stack {
  display: grid;
  gap: 0.75rem;
}

.stack-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 5rem;
}

.stack-item:hover { border-color: #444; }

.stack-item__img {
  background: #222 center/cover no-repeat;
  min-height: 100%;
}

.stack-item__body {
  padding: 0.55rem 0.65rem 0.55rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stack-item h3 {
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.stack-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* RANK LIST */
.rank-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rank-panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1rem;
}

.rank-panel h3 {
  font-size: 1.1rem;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.rank-panel ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: r;
}

.rank-panel li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.rank-panel li:last-child { border-bottom: 0; }

.rank-panel li::before {
  content: counter(r);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.rank-panel em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-2);
}

/* TRAILER */
.trailer-stage {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 1rem;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.trailer-aside {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1rem;
}

.trailer-aside h3 { font-size: 1.45rem; }
.trailer-aside p { color: var(--muted); }

/* PAGE HERO */
.page-hero {
  padding: 1.5rem 0 1rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0;
}

.page-hero .deck {
  color: var(--muted);
  margin: 0.4rem 0 0;
  max-width: 40rem;
}

/* ARTICLE */
.article {
  padding: 1.5rem 0 3rem;
}

.article-header { max-width: 46rem; margin-bottom: 1rem; }

.article-header h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  text-transform: uppercase;
}

.article-cover {
  aspect-ratio: 21 / 9;
  background: #222 center/cover no-repeat;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.article-body {
  max-width: 42rem;
  font-size: 1.05rem;
  color: #e4e4ea;
}

.article-body h2 {
  font-size: 1.45rem;
  margin-top: 1.75rem;
  color: #fff;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-2);
  font-size: 1.1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.5rem 0 0;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pros-cons > div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.pros-cons h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.pros-cons .cons h3 { color: #ff6b6b; }
.pros-cons .pros h3 { color: #7dffa0; }

.pros-cons ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.pros-cons li { margin-bottom: 0.35rem; }

.verdict-box {
  margin-top: 1.75rem;
  padding: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.verdict-box .big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.6rem;
  min-width: 4.2rem;
  text-align: center;
}

.verdict-box h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }

/* Review media: trailer + gameplay */
.review-trailer {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.review-trailer .video-frame {
  width: 100%;
}

.review-trailer .cap,
.review-hero-shot .cap,
.article-shot .cap {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.review-hero-shot {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  border: 1px solid var(--line);
  background: #111;
}

.review-hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.review-hero-shot .cap {
  padding: 0.45rem 0.65rem 0.55rem;
  margin: 0;
}

.article-shot {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  background: #111;
}

.article-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.article-shot .cap {
  padding: 0.45rem 0.65rem 0.55rem;
  margin: 0;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-grid > div {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.contact-grid h2 { font-size: 1.25rem; color: var(--accent-2); }

.mail {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid var(--accent);
}

/* FOOTER */
.site-footer {
  background: #080809;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-grid strong { color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #080809;
    border-bottom: 1px solid var(--line);
    padding: 0.35rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.75rem 1rem; }

  .card-grid,
  .card-grid.cols-4,
  .feature-row,
  .rank-board,
  .trailer-stage,
  .contact-grid,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .hero-feature { min-height: 70vw; }
}
