/* ==========================================================================
   GAMER INSIGHTS AI - ESTILO PREMIUM "GLASSMORPHISM"
   ========================================================================== */

/* 1. RESET Y ESTILOS BASE */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #09090e; /* Negro más profundo */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ==========================================================================
   PORTADA DEL BLOG (index.html)
   ========================================================================== */
.header {
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(9, 9, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(to right, #818cf8, #c084fc, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.3);
}

.header p { 
  color: #94a3b8; 
  font-size: 1.2rem; 
  max-width: 600px;
  margin: 0 auto;
}

.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }

/* Grid de juegos en Portada */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
  background: rgba(255,255,255,0.04);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-content { 
  padding: 24px; 
  flex-grow: 1; 
  display: flex; 
  flex-direction: column; 
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.85rem;
}

.score {
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  letter-spacing: 0.5px;
}
.score.positive { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.score.mixed { background: rgba(250,204,21,0.1); color: #facc15; border: 1px solid rgba(250,204,21,0.2); }
.score.negative { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2); }

.date { color: #64748b; }

/* ==========================================================================
   RESEÑAS INDIVIDUALES Y ESTRUCTURA GENERAL
   ========================================================================== */
.layout-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Espacio para AdSense No-Invasivo */
.ad-sidebar {
  display: none;
  width: 160px;
  min-height: 600px;
  position: sticky;
  top: 40px;
  border-radius: 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  /* El borde dashed es solo para pruebas visuales, lo quitamos para que AdSense se vea limpio */
}

@media (min-width: 1150px) {
  .ad-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.post-container *,.post-container *::before,.post-container *::after{box-sizing:border-box}

.post-container{
  flex: 1;
  background: rgba(15, 15, 26, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 860px;
  padding: 30px 24px 60px;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Home button back to index */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  transition: all 0.2s;
}
.back-link:hover { 
  background: rgba(99, 102, 241, 0.2);
  color: #fff; 
  transform: translateX(-4px);
}

/* Hero Section Clicable */
.hero {
  display: block;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  text-decoration: none;
  transition: transform 0.3s;
}
.hero:hover {
  transform: translateY(-4px);
}
.hero::after {
  content: '';
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  pointer-events: none;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s;
}
.hero:hover img {
  filter: brightness(0.95);
}
.hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 50px 32px 32px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero-subtitle {
  font-size: 1rem;
  color: #cbd5e1;
}

/* Score Card */
.score-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
}
.score-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.score-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 32px;
  align-items: center;
}
.score-big {
  grid-row: span 4;
  text-align: center;
  padding: 24px 32px;
  border-radius: 16px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.03);
}
.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(to bottom right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 8px;
  color: #e2e8f0;
}
.score-total {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 8px;
}
.info-row { display: flex; gap: 12px; font-size: 0.95rem; }
.info-label { color: #64748b; min-width: 110px; }
.info-value { color: #f8fafc; font-weight: 500; }

/* Sections */
.section {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f1f5f9;
}
.section-title .emoji { font-size: 1.6rem; }

/* Pros & Cons */
.pros-cons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media(max-width: 600px){ .pros-cons-grid { grid-template-columns: 1fr; } }
.point-column h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255,255,255,0.05);
}
.point-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: #cbd5e1;
}
.point-item:last-child { border-bottom: none; }
.point-icon { flex-shrink: 0; font-size: 1.1rem; }

/* AI Summary Block */
.ai-summary {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.8;
  color: #e0e7ff;
  box-shadow: 0 10px 30px rgba(99,102,241,0.1);
  position: relative;
}
.ai-summary::before {
  content: '✦';
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 24px;
  color: #c084fc;
}

/* Video */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-fallback {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: #64748b;
}
.video-fallback a { color: #818cf8; text-decoration: none; }
.video-fallback a:hover { text-decoration: underline; }

/* Highlighted Reviews */
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 650px){ .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.review-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(255,255,255,0.03);
  transform: translateY(-3px);
}
.review-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev-badge { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.badge-pos { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2);}
.badge-neg { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.2);}
.rev-period { font-size: 0.75rem; color: #64748b; }
.review-card blockquote {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd5e1;
  border-left: 3px solid rgba(168, 85, 247, 0.4);
  padding-left: 16px;
  margin: 0 0 16px;
}
.review-meta { display: flex; gap: 16px; font-size: 0.8rem; color: #64748b; }

/* Similar Games */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.similar-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s;
}
.similar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.4);
  background: rgba(255,255,255,0.04);
}
.similar-name { font-weight: 700; font-size: 1rem; margin-bottom: 8px; color: #f8fafc; }
.similar-reason { font-size: 0.85rem; color: #94a3b8; line-height: 1.6; }

/* CTA Button */
.cta-section { text-align: center; padding: 40px 20px; margin-bottom: 30px; }
.cta-button {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(168,85,247,0.3);
  transition: all 0.3s;
  letter-spacing: 0.5px;
}
.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(168,85,247,0.5);
  filter: brightness(1.1);
}
.cta-subtext { margin-top: 14px; font-size: 0.85rem; color: #64748b; }

/* Footer and Links */
.footer-nav {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.footer-nav a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #f8fafc; }

.post-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: #475569;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 20px;
}
.post-footer a { color: #64748b; text-decoration: underline; }
.post-footer a:hover { color: #94a3b8; }

@media(max-width: 600px){
  .post-container { padding: 20px 16px 40px; border-radius: 16px; border: none; }
  .score-grid { grid-template-columns: 1fr; }
  .score-big { grid-row: auto; }
  .hero-overlay { padding: 30px 20px 20px; }
  .header h1 { font-size: 2.5rem; }
}
