/* ============================================
   Alehundred Website - Shared Styles
   Magical fairy-tale aesthetic
   Deep blue + white + red accent + golden yellow
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0b1a2e;
  --bg-secondary: #0f2240;
  --bg-card: #132a4a;
  --bg-card-hover: #1a3560;
  --text-primary: #f0f0f0;
  --text-secondary: #b0c4de;
  --text-muted: #6a89ab;
  --accent-gold: #f0c040;
  --accent-gold-dim: #b8922e;
  --accent-gold-glow: rgba(240, 192, 64, 0.12);
  --accent-red: #e04050;
  --accent-red-dim: #a82e3a;
  --accent-red-glow: rgba(224, 64, 80, 0.1);
  --accent-blue-light: #4a90d9;
  --accent-blue-glow: rgba(74, 144, 217, 0.1);
  --border-subtle: rgba(240, 192, 64, 0.15);
  --border-card: rgba(176, 196, 222, 0.1);
  --font-display: 'Crimson Pro', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content:''; position:fixed; top:0; left:0; width:100%; height:100%;
  pointer-events:none; z-index:9999; opacity:0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body::after {
  content:''; position:fixed; top:-50%; left:-25%; width:150%; height:100%;
  pointer-events:none; z-index:-1;
  background: radial-gradient(ellipse at 50% 0%, rgba(74,144,217,0.08) 0%, rgba(240,192,64,0.04) 40%, transparent 70%);
}

h1, h2, h3, h4 { font-family:var(--font-display); font-weight:600; line-height:1.25; color:var(--text-primary); }
h1 { font-size:clamp(2rem,5vw,3.2rem); letter-spacing:-0.02em; }
h2 { font-size:clamp(1.5rem,3.5vw,2.2rem); letter-spacing:-0.01em; margin-top:2.5rem; margin-bottom:1rem; color:var(--accent-gold); }
h3 { font-size:1.3rem; margin-top:2rem; margin-bottom:0.75rem; }
p { margin-bottom:1rem; color:var(--text-secondary); }
a { color:var(--accent-gold); text-decoration:none; transition:color var(--transition); }
a:hover { color:var(--text-primary); }
strong { font-weight:600; color:var(--text-primary); }

/* Navigation */
.site-nav {
  position:sticky; top:0; z-index:1000;
  background:rgba(11,26,46,0.88); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border-subtle); height:var(--nav-height); display:flex; align-items:center;
}
.nav-inner { max-width:var(--max-width); width:100%; margin:0 auto; padding:0 1.5rem; display:flex; align-items:center; justify-content:space-between; }
.nav-logo { display:flex; align-items:center; gap:0.75rem; text-decoration:none; color:var(--text-primary); font-family:var(--font-display); font-size:1.3rem; font-weight:700; letter-spacing:0.02em; }
.nav-logo img { height:36px; width:36px; object-fit:contain; }
.nav-links { display:flex; align-items:center; gap:1.75rem; list-style:none; }
.nav-links a { font-size:0.85rem; font-weight:400; color:var(--text-secondary); text-decoration:none; letter-spacing:0.03em; text-transform:uppercase; transition:color var(--transition); position:relative; }
.nav-links a:hover { color:var(--accent-gold); }
.nav-links a.active { color:var(--accent-gold); }
.nav-links a.active::after { content:''; position:absolute; bottom:-4px; left:0; right:0; height:2px; background:var(--accent-red); border-radius:1px; }

/* Mobile Toggle */
.nav-toggle { display:none; background:none; border:none; cursor:pointer; padding:0.5rem; }
.nav-toggle span { display:block; width:22px; height:2px; background:var(--text-secondary); margin:5px 0; transition:all var(--transition); }

/* Page Layout */
.page-wrapper { max-width:var(--max-width); margin:0 auto; padding:1rem 1.5rem 1rem; }
.page-hero { text-align:center; padding:1rem 0 1rem; }
.page-hero h1 { margin-bottom:1rem; background:linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.page-hero .subtitle { font-size:1.1rem; color:var(--text-secondary); font-weight:300; max-width:600px; margin:0 auto; }

/* Content */
.content-section { margin-bottom:1rem; }
.content-section h2 { padding-bottom:0.5rem; border-bottom:1px solid var(--border-subtle); }

/* Era Hero Image */
.era-hero-image { margin:0 0 2.5rem; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border-card); }
.era-hero-image img { width:100%; height:auto; display:block; }

/* Cards */
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:1.5rem; margin-top:2rem; }
.card { background:var(--bg-card); border:1px solid var(--border-card); border-radius:var(--radius-lg); overflow:hidden; transition:all var(--transition); text-decoration:none; color:inherit; display:block; position:relative; }
a.card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, var(--accent-red), var(--accent-gold), var(--accent-blue-light)); opacity:0; transition:opacity var(--transition); }
a.card:hover { background:var(--bg-card-hover); border-color:rgba(240,192,64,0.25); transform:translateY(-3px); box-shadow:0 8px 32px rgba(0,0,0,0.3), 0 0 20px rgba(240,192,64,0.05); }
a.card:hover::before { opacity:1; }
.card-image { width:100%; height:200px; background:linear-gradient(135deg, var(--bg-secondary) 0%, rgba(74,144,217,0.08) 100%); display:flex; align-items:center; justify-content:center; color:var(--text-muted); font-size:0.85rem; font-style:italic; border-bottom:1px solid var(--border-card); }
.card-image img { width:100%; height:100%; object-fit:cover; }
.card-body { padding:1.25rem 1.5rem 1.5rem; }
.card-body h3 { margin-top:0; margin-bottom:0.5rem; font-size:1.2rem; color:var(--text-primary); }
.card-body p { font-size:0.9rem; margin-bottom:0; }
.card-meta { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.5rem; font-size:0.85rem; color:var(--accent-gold); text-transform:uppercase; letter-spacing:0.05em; font-weight:500; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:0.5rem; padding:0.65rem 1.5rem; border-radius:var(--radius); font-family:var(--font-body); font-size:0.9rem; font-weight:500; text-decoration:none; transition:all var(--transition); cursor:pointer; border:none; }
.btn-primary { background:var(--accent-red); color:#ffffff; box-shadow:0 2px 12px rgba(224,64,80,0.25); }
.btn-primary:hover { background:#c83545; color:#ffffff; box-shadow:0 4px 20px rgba(224,64,80,0.35); }
.btn-outline { background:transparent; color:var(--accent-gold); border:1px solid var(--accent-gold-dim); }
.btn-outline:hover { border-color:var(--accent-gold); background:var(--accent-gold-glow); color:var(--text-primary); }
.btn-back { background:transparent; color:var(--text-muted); padding:0.5rem 0; font-size:0.85rem; }
.btn-back:hover { color:var(--accent-gold); }
.btn-cc { background:transparent; color:rgba(120,165,215,0.65); padding:0.3rem 0; font-size:0.9rem; letter-spacing:0.05em; }
.btn-cc:hover { color:rgba(140,185,235,0.95); }
.credits-page .content-section p, .credits-list { font-size:1rem; line-height:1.7; color:var(--text-secondary); }
.credits-list { margin:0.6rem 0 0 1.1rem; line-height:1.55; }
.credits-list a { color:inherit; text-decoration:underline; }
/* Lists inside normal pages (premium.html): same size and color as the page text (2026-10-09: they used .credits-list and showed tiny). */
.page-list { margin:0 0 1rem 1.4rem; line-height:1.7; color:var(--text-secondary); }
.page-list li { margin-bottom:0.4rem; }
.page-list li::marker { color:var(--accent-gold); }

/* Footer */
.site-footer { border-top:1px solid var(--border-subtle); padding:2rem 1.5rem; text-align:center; color:var(--text-muted); font-size:0.9rem; background:linear-gradient(180deg, transparent 0%, rgba(15,34,64,0.5) 100%); }
.footer-inner { max-width:var(--max-width); margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:1rem; }
.footer-links { display:flex; gap:1.5rem; flex-wrap:wrap; justify-content:center; }
.footer-links a { color:var(--text-muted); font-size:0.9rem; }
.footer-links a:hover { color:var(--accent-gold); }

/* Steam button and the way back to the studio (Coins Catcher pages) */
.btn-steam { padding:0.45rem 1.1rem; font-size:0.85rem; }
.nav-links a.nav-studio { color:var(--accent-gold-dim); text-transform:none; letter-spacing:0; }
.nav-links a.nav-studio:hover { color:var(--accent-gold); }

/* Alehundred Studios home: the games */
.studio-hero { text-align:center; padding:1rem 0 0.5rem; }
.studio-hero img { max-width:800px; width:100%; height:auto; border-radius:var(--radius-lg); margin-bottom:1.5rem; }
.studio-hero h1 { margin-bottom:0.75rem; background:linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.studio-hero .subtitle { font-size:1.1rem; color:var(--text-secondary); font-weight:300; max-width:600px; margin:0 auto; }
.games-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap:1.5rem; margin:2.5rem 0 3rem; }
.game-card .card-image { height:220px; }
.game-card .card-body h3 { font-size:1.45rem; }
/* Store bar under each game card (Alehundred 2026-10-08): "Get on:" + one chip per store that has the game. */
.game-col { display:flex; flex-direction:column; gap:0.6rem; }
.game-col .game-card { flex:1; }
.get-on { display:flex; align-items:center; flex-wrap:wrap; gap:0.5rem; background:var(--bg-secondary); border:1px solid var(--border-card); border-radius:var(--radius); padding:0.55rem 0.9rem; font-size:0.85rem; }
.get-on-label { color:var(--text-muted); font-weight:500; margin-right:0.25rem; }
.get-on .store { display:inline-flex; align-items:center; padding:0.2rem 0.75rem; border-radius:999px; border:1px solid var(--border-subtle); color:var(--accent-gold); font-weight:500; text-decoration:none; }
/* Alejandro 2026-10-09: a link button is always red, so it stands out (same as .btn-primary). */
.get-on a.store { background:var(--accent-red); border-color:var(--accent-red); color:#ffffff; box-shadow:0 2px 12px rgba(224,64,80,0.25); transition:all var(--transition); }
.get-on a.store:hover { background:#c83545; border-color:#c83545; color:#ffffff; box-shadow:0 4px 20px rgba(224,64,80,0.35); }
.get-on .store.soon { color:var(--text-muted); border-color:var(--border-card); opacity:0.55; cursor:not-allowed; user-select:none; }
.get-on .soon-tag { color:var(--text-muted); font-size:0.75rem; font-style:italic; margin-left:0.15rem; }
.game-card .card-cta { display:inline-block; margin-top:1rem; font-size:0.85rem; font-weight:500; color:var(--accent-gold); text-transform:uppercase; letter-spacing:0.05em; }
.vms-art { width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:1.1rem; background:radial-gradient(ellipse at 50% 40%, rgba(34,211,197,0.22) 0%, #0f1415 72%); }
.vms-art img { width:84px; height:84px; object-fit:contain; }
.vms-art .vms-name { display:flex; flex-direction:column; line-height:1; font-family:'Outfit', sans-serif; font-style:normal; }
.vms-art .vms-name b { font-size:2rem; font-weight:700; letter-spacing:0.02em; white-space:nowrap; color:#ffffff; }
.vms-art .vms-name span { font-size:0.8rem; font-weight:600; letter-spacing:0.16em; color:#22d3c5; margin-top:0.35rem; }

.cc-art { width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:1.1rem; background:radial-gradient(ellipse at 50% 45%, rgba(224,64,80,0.75) 0%, rgba(168,46,58,0.45) 40%, #0b1a2e 85%); }
.cc-art img { width:84px; height:84px; object-fit:contain; }
.cc-art .cc-name { display:flex; flex-direction:column; line-height:1; font-family:'Outfit', sans-serif; font-style:normal; }
.cc-art .cc-name b { font-size:2.35rem; font-weight:700; letter-spacing:0.04em; color:var(--accent-gold); text-shadow:0 2px 0 #a82e3a, 0 0 18px rgba(240,192,64,0.25); }
.cc-art .cc-name span { font-size:0.85rem; font-weight:700; letter-spacing:0.3em; color:#ff5a6a; margin-top:0.45rem; }

/* Misc */
.placeholder-tag { display:inline-block; padding:0.2rem 0.6rem; background:var(--accent-blue-glow); border:1px dashed var(--accent-blue-light); border-radius:4px; font-size:0.8rem; color:var(--accent-blue-light); text-transform:uppercase; letter-spacing:0.05em; }
.legal-content { max-width:800px; }
.legal-content h2 { font-size:1.4rem; }
.legal-content p { font-size:0.95rem; line-height:1.8; }

/* Responsive */
@media (max-width:768px) {
  .nav-links { display:none; position:absolute; top:var(--nav-height); left:0; right:0; flex-direction:column; background:rgba(11,26,46,0.95); backdrop-filter:blur(16px); padding:1rem 1.5rem; gap:0; border-bottom:1px solid var(--border-subtle); }
  .nav-links.open { display:flex; }
  .nav-links li { width:100%; }
  .nav-links a { display:block; padding:0.75rem 0; border-bottom:1px solid var(--border-card); }
  .nav-toggle { display:block; }
  .page-wrapper { padding:2rem 1rem 3rem; }
  .page-hero { padding:2rem 0 2rem; }
  .cards-grid { grid-template-columns:1fr; }
}
@media (max-width:480px) {
  .cc-art img, .vms-art img { width:60px; height:60px; }
  .cc-art .cc-name b { font-size:1.7rem; }
  .vms-art .vms-name b { font-size:1.6rem; }
  h1 { font-size:1.75rem; }
  .nav-logo span { display:none; }
}

/* W31a: language selector in the nav (same as VMS Web, MS70e). */
.lang-select { display:inline-flex; align-items:center; gap:0.3rem; font-size:0.85rem; color:var(--text-muted); cursor:pointer; }
.lang-select select { padding:0.3rem 0.5rem; font-family:var(--font-body); font-size:0.82rem; color:var(--text-primary); background:var(--bg-card); border:1px solid var(--border-card); border-radius:var(--radius); cursor:pointer; }
.lang-select select:hover, .lang-select select:focus { border-color:var(--accent-gold-dim); outline:none; }
@media (max-width:480px) {
  .lang-select select { padding:0.3rem 0.35rem; font-size:0.78rem; }
}
/* W31a: longer menu words in Spanish, French and German stay on one line on small laptops and tablets. */
.nav-links a { white-space:nowrap; }
@media (min-width:769px) and (max-width:1100px) {
  .nav-inner { padding:0 1rem; gap:0.75rem; }
  .nav-links { gap:clamp(0.6rem, 1.4vw, 1.75rem); }
  .nav-links a { font-size:0.75rem; letter-spacing:0.01em; }
  .nav-logo span { display:none; }
}

/* W34b (2026-10-10): the line under the claims of the VMS card. */
.claim-note { font-size: 0.75rem; color: var(--text-muted); margin: 0.5rem 0 0; text-align: justify; text-align-last: center; }

/* Alejandro 2026-10-12: "Buy" inside each game card, just under "Enter", a small red pill like the old Steam one; it opens the
   multiplatform page. It sits over the card (the card is a link, a link cannot hold another one). */
.game-col { position:relative; }
.game-col .game-card .card-body { padding-bottom:3.6rem; }
.game-col .buy-btn { position:absolute; left:1.5rem; bottom:1.3rem; display:inline-flex; align-items:center; padding:0.25rem 0.95rem;
  border-radius:999px; background:var(--accent-red); border:1px solid var(--accent-red); color:#ffffff; font-size:0.85rem; font-weight:500;
  text-decoration:none; box-shadow:0 2px 12px rgba(224,64,80,0.25); transition:all var(--transition); }
.game-col .buy-btn:hover { background:#c83545; border-color:#c83545; color:#ffffff; box-shadow:0 4px 20px rgba(224,64,80,0.35); }

/* Alejandro 2026-10-12: the two "Enter" at the same height (the text pushes them to the bottom of the card). */
.game-col .game-card { display:flex; flex-direction:column; }
.game-col .game-card .card-body { flex:1; display:flex; flex-direction:column; }
.game-col .game-card .card-cta { margin-top:auto; padding-top:1rem; align-self:flex-start; }

/* Alejandro 2026-10-12: Discord and TikTok with their icon and a short line, a mid-size tile (not red). */
.social { display:inline-flex; align-items:center; gap:0.75rem; min-width:210px; padding:0.7rem 1.2rem; background:var(--bg-card);
  border:1px solid var(--border-card); border-radius:14px; color:var(--text-primary); text-decoration:none; text-align:left; transition:all var(--transition); }
.social img { width:30px; height:30px; filter:invert(1); }
.social span { display:flex; flex-direction:column; line-height:1.25; }
.social b { font-weight:700; font-size:1rem; }
.social small { color:var(--text-muted); font-size:0.8rem; }
.social:hover { border-color:var(--accent-gold); transform:translateY(-2px); color:var(--text-primary); }
