/*
Theme Name: PradoGames
Theme URI: https://pradogames.com
Author: Carlos Sole
Author URI: https://pradogames.com
Description: Tema oscuro estilo gaming para PradoGames — catálogo de videojuegos indie.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: pradogames
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d12;
  --bg2:       #13131c;
  --bg3:       #1a1a2e;
  --accent:    #7c4dff;
  --accent2:   #00e5ff;
  --text:      #e8e8f0;
  --muted:     #888899;
  --card-bg:   #16162a;
  --border:    #2a2a40;
  --radius:    12px;
  --font:      'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

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

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HEADER === */
#site-header {
  background: rgba(13, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.site-logo span { color: var(--accent); }

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

nav a:hover, nav a.current { color: var(--text); }

/* === HERO === */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124,77,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,77,255,0.15);
  border: 1px solid rgba(124,77,255,0.4);
  color: var(--accent);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 16px; }

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 auto 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #9c27b0);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,77,255,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,77,255,0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124,77,255,0.05);
}

/* === SECTION === */
.section { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  margin-top: 8px;
}

/* === GAME GRID === */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* === GAME CARD === */
.game-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(124,77,255,0.2);
}

.game-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg3);
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.game-card-thumb .platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
}

.game-card-body { padding: 20px; }

.game-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.game-card-body p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.game-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-released .dot { background: #4caf50; box-shadow: 0 0 6px #4caf50; }
.status-development .dot { background: #ff9800; box-shadow: 0 0 6px #ff9800; }
.status-released { color: #4caf50; }
.status-development { color: #ff9800; }

/* === SINGLE GAME PAGE === */
.game-hero {
  padding: 60px 0;
}

.game-hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

.game-screenshot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.game-screenshot img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.game-meta { display: flex; flex-direction: column; gap: 20px; }

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.tag {
  background: rgba(124,77,255,0.12);
  border: 1px solid rgba(124,77,255,0.3);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.game-description {
  color: var(--muted);
  line-height: 1.8;
}

.game-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.game-info-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.game-info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.game-info-row:last-child { border-bottom: none; }
.game-info-row .label { color: var(--muted); }
.game-info-row .value { font-weight: 600; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

.empty-state h3 { color: var(--text); margin-bottom: 8px; }

/* === FOOTER === */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy { color: var(--muted); font-size: 0.875rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }

/* === HAMBURGER (mobile) === */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .game-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .menu-toggle { display: block; }

  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
