/* ==========================================================================
   La Web del Videojuego - Minimal CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --font-serif: "Lora", Georgia, Times, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --color-bg: #ffffff;
  --color-surface: #f8f9fa;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #e65100;
  --color-accent-hover: #ff6d00;
  --color-border: #e0e0e0;
  --color-bluesky: #0085ff;

  --max-width: 42rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  --radius: 4px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0d1117;
    --color-surface: #161b22;
    --color-text: #e6edf3;
    --color-text-muted: #8b949e;
    --color-border: #30363d;
    --color-accent: #ff9800;
    --color-accent-hover: #ffb74d;
  }
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--spacing-xl);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-title a {
  color: var(--color-text);
}

.site-title a:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: var(--spacing-lg);
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Main Content
   -------------------------------------------------------------------------- */
main {
  padding-bottom: var(--spacing-xxl);
}

/* --------------------------------------------------------------------------
   Feed Items
   -------------------------------------------------------------------------- */
.feed {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.feed-item {
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.feed-item:last-child {
  border-bottom: none;
}

/* Article Card */
.article-card .card-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.article-card .card-title {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.article-card .card-title a {
  color: var(--color-text);
}

.article-card .card-title a:hover {
  color: var(--color-accent);
}

.article-card .card-excerpt {
  margin: 0 0 var(--spacing-md);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.article-card .card-link {
  font-size: 0.9rem;
  font-weight: 500;
}

.article-card--featured {
  position: relative;
  background-image: var(--card-bg);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.article-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.7) 60%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

.article-card--featured .card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: var(--spacing-lg);
}

.article-card--featured,
.article-card--featured * {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.article-card--featured .card-meta {
  color: rgba(255, 255, 255, 0.8);
}

.article-card--featured .card-title a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.article-card--featured .card-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.article-card--featured .card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
}

.article-card--featured .type-badge--analisis {
  background: var(--color-accent);
  color: #fff;
}

/* Bluesky Card */
.bluesky-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--spacing-md);
  border-left: 3px solid var(--color-bluesky);
}

.bluesky-card .card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.bluesky-card .bluesky-icon {
  width: 16px;
  height: 16px;
  fill: var(--color-bluesky);
}

.bluesky-card .card-text {
  margin: 0 0 var(--spacing-sm);
  line-height: 1.6;
}

.bluesky-card .card-link {
  font-size: 0.85rem;
  color: var(--color-bluesky);
}

.bluesky-card .card-link:hover {
  text-decoration: underline;
}

/* Bluesky embed card (external links) */
.embed-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.embed-card:hover {
  border-color: var(--color-bluesky);
}

.embed-card__thumb {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  background: var(--color-surface);
}

.embed-card__content {
  padding: var(--spacing-sm) var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.embed-card__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--color-text);
}

.embed-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.embed-card__domain {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Bluesky embed images */
.embed-images {
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius);
  overflow: hidden;
}

.embed-images__img {
  width: 100%;
  height: auto;
}

/* Only limit height for grid (multiple images) */
.embed-images--grid .embed-images__img {
  max-height: 200px;
  object-fit: cover;
}

.embed-images--grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

/* Type badge */
.type-badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.type-badge--analisis {
  background: #fff3e0;
  color: #e65100;
}

@media (prefers-color-scheme: dark) {
  .type-badge--analisis {
    background: #3d2800;
    color: #ffb74d;
  }
}

/* Article card with score */
.article-card--with-score {
  position: relative;
}

.article-card--with-score:not(.article-card--with-image) .card-title {
  padding-right: 56px;
}

.card-score {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: visible;
}

.article-card--featured .card-score {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 2;
}

.article-card--featured.article-card--with-score .card-title {
  padding-right: 0;
}

.card-score::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  border-radius: 8px;
}

.card-score__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

/* Score colors - Metacritic style */
.card-score--low {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
}

.card-score--mid {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

.card-score--mid .card-score__value {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.card-score--high {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

.card-score--perfect {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

.card-score__crown {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.card-score__crown::before {
  content: '';
  display: block;
  width: 26px;
  height: 14px;
  background: linear-gradient(180deg, #ffd700 0%, #f0a000 100%);
  clip-path: polygon(
    0% 0%,
    12% 50%,
    24% 50%,
    36% 0%,
    44% 50%,
    56% 50%,
    64% 0%,
    76% 50%,
    88% 50%,
    100% 0%,
    100% 100%,
    0% 100%
  );
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

@media (max-width: 640px) {
  .card-score {
    width: 42px;
    height: 42px;
  }

  .card-score__value {
    font-size: 1.2rem;
  }

  .card-score__crown {
    top: -8px;
  }

  .card-score__crown::before {
    width: 14px;
    height: 11px;
  }
}

/* --------------------------------------------------------------------------
   Post Page
   -------------------------------------------------------------------------- */
.post-header {
  margin-bottom: var(--spacing-xl);
}

.post-title {
  margin: 0 0 var(--spacing-sm);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.post-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.post-content {
  line-height: 1.8;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.1rem; }

.post-content p {
  margin: 0 0 var(--spacing-md);
}

.post-content ul,
.post-content ol {
  margin: 0 0 var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.post-content li {
  margin-bottom: var(--spacing-xs);
}

.post-content blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
  font-style: italic;
}

.post-content img {
  margin: var(--spacing-lg) auto;
  border-radius: var(--radius);
}

.post-content .center-image {
  display: block;
  margin: var(--spacing-lg) auto;
}

/* Twitter embeds - center them */
.post-content .twitter-tweet {
  margin: var(--spacing-lg) auto !important;
}

/* Score badge for reviews */
.post-score {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: var(--radius);
  margin-top: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   Bluesky Section
   -------------------------------------------------------------------------- */
.bluesky-section {
  margin-top: var(--spacing-xxl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
}

.bluesky-section h2 {
  margin: 0 0 var(--spacing-lg);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-bluesky);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.bluesky-section h2::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 530'%3E%3Cpath fill='%230085ff' d='m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--color-text-muted);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

/* Easter egg */
.easter-egg {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease;
  image-rendering: pixelated;
  opacity: 0.6;
}

.easter-egg:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: var(--spacing-xxl) 0;
}

.error-page h1 {
  font-size: 4rem;
  margin: 0;
  color: var(--color-text-muted);
}

.error-page p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   About Page
   -------------------------------------------------------------------------- */
.about-content {
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Games Year Post (Annual Review)
   -------------------------------------------------------------------------- */
.games-year-intro {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-left: 4px solid var(--color-accent);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.games-year-intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.games-year-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

/* Game Card */
.game-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .game-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .game-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

.game-card__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.game-card .game-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  flex: 1;
  line-height: 1;
  color: var(--color-text);
}

.game-card__platform {
  display: inline-block;
  padding: 0.25em 0.75em;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  white-space: nowrap;
}

/* Game Score Badge */
.game-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
}

.game-card__score::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
  border-radius: 12px;
}

.game-card__score-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* Score Colors - Metacritic Style */
.game-card__score--low {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.game-card__score--none {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.game-card__score--mid {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.game-card__score--mid .game-card__score-value {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.game-card__score--high {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.game-card__score--perfect {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5), 0 0 20px rgba(40, 167, 69, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.5), 0 0 20px rgba(40, 167, 69, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.7), 0 0 30px rgba(40, 167, 69, 0.5);
  }
}

/* Game Gallery */
.game-card__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--color-border);
}

.game-card__gallery img,
.game-card__gallery video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease, object-position 0.4s ease;
}

.game-card__gallery img:hover {
  transform: scale(1.1);
  object-position: top;
}

/* Single image/video - full width */
.game-card__gallery img:only-child,
.game-card__gallery video:only-child {
  grid-column: 1 / -1;
  height: 300px;
}

/* 3 images layout */
.game-card__gallery img:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
  height: 220px;
}

/* 4 images - 2x2 grid */
.game-card__gallery img:first-child:nth-last-child(4),
.game-card__gallery img:first-child:nth-last-child(4) ~ img {
  height: 160px;
}

/* Game Content */
.game-card__content {
  padding: var(--spacing-lg);
}

.game-card__content p {
  margin: 0;
  line-height: 1.8;
  color: var(--color-text);
}

/* Bluesky Link */
.game-card__bsky-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  color: var(--color-bluesky);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.game-card__bsky-link:hover {
  background: var(--color-surface);
  color: var(--color-bluesky);
}

.game-card__bsky-link::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 530'%3E%3Cpath fill='%230085ff' d='m135.72 44.03c66.496 49.921 138.02 151.14 164.28 205.46 26.262-54.316 97.782-155.54 164.28-205.46 47.98-36.021 125.72-63.892 125.72 24.795 0 17.712-10.155 148.79-16.111 170.07-20.703 73.984-96.144 92.854-163.25 81.433 117.3 19.964 147.14 86.092 82.697 152.22-122.39 125.59-175.91-31.511-189.63-71.766-2.514-7.3797-3.6904-10.832-3.7077-7.8964-0.0174-2.9357-1.1937 0.51669-3.7077 7.8964-13.714 40.255-67.233 197.36-189.63 71.766-64.444-66.128-34.605-132.26 82.697-152.22-67.108 11.421-142.55-7.4491-163.25-81.433-5.9562-21.282-16.111-152.36-16.111-170.07 0-88.687 77.742-60.816 125.72-24.795z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Games Year Summary */
.games-year-summary {
  background: var(--color-surface);
  padding: var(--spacing-xl);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-top: var(--spacing-xl);
}

.games-year-summary h2 {
  margin: 0 0 var(--spacing-md);
  font-size: 1.4rem;
  color: var(--color-accent);
}

.games-year-summary p {
  margin: 0 0 var(--spacing-md);
  line-height: 1.8;
}

.games-year-summary p:last-child {
  margin-bottom: 0;
}

.games-year-summary h3 {
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  font-size: 1.15rem;
  color: var(--color-text);
}

.games-year-summary ul {
  margin: 0 0 var(--spacing-md);
  padding-left: var(--spacing-lg);
}

.games-year-summary li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

.goty-highlight {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .post-title {
    font-size: 1.5rem;
  }

  .article-card .card-title {
    font-size: 1.15rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Games Year Post - Mobile */
  .game-card__header {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .game-card__title {
    font-size: 1.15rem;
    order: 1;
    flex-basis: calc(100% - 70px);
  }

  .game-card__platform {
    order: 3;
  }

  .game-card__score {
    order: 2;
    width: 48px;
    height: 48px;
  }

  .game-card__score-value {
    font-size: 1.3rem;
  }

  .game-card__gallery {
    grid-template-columns: 1fr 1fr;
  }

  .game-card__gallery img,
  .game-card__gallery video {
    height: 140px;
  }

  .game-card__gallery img:only-child,
  .game-card__gallery video:only-child {
    height: 200px;
  }

  .game-card__gallery img:first-child:nth-last-child(4),
  .game-card__gallery img:first-child:nth-last-child(4) ~ img {
    height: 120px;
  }

  .games-year-intro {
    padding: var(--spacing-md);
  }

  .games-year-intro p {
    font-size: 1rem;
  }

  .games-year-summary {
    padding: var(--spacing-lg);
  }
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.is-active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close::before,
.lightbox__close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: white;
}

.lightbox__close::before {
  transform: rotate(45deg);
}

.lightbox__close::after {
  transform: rotate(-45deg);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox__nav--prev {
  left: var(--spacing-lg);
}

.lightbox__nav--next {
  right: var(--spacing-lg);
}

.lightbox__nav::before {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.lightbox__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.lightbox__nav--next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* Make gallery images clickable */
.game-card__gallery img {
  cursor: zoom-in;
}
