/*
Theme Name: Eldi Games Production
Theme URI: https://eldigames.com
Author: Eldi Games
Version: 7.0.0
Description: Production-ready gaming theme with official branding, social links, and high-res asset integration.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #05050a;
  --ink2: #0a0a15;
  --ink3: #121225;
  --surface: rgba(255,255,255,.03);
  --surface2: rgba(255,255,255,.07);
  --rim: rgba(255,255,255,.08);
  --blue: #38bdf8;
  --blue-glow: rgba(56,189,248,.4);
  --text: #f8fafc;
  --muted: #94a3b8;
  --r: 12px;
  --r-lg: 24px;
  --display: 'Outfit', sans-serif;
  --sans: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--ink); color: var(--text); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

/* HEADER */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: rgba(5, 5, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rim);
    transition: 0.3s;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--blue-glow);
}

.logo-text {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo-alt {
    color: var(--blue);
    opacity: 0.8;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-list a {
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    transition: 0.3s;
}

.nav-list a:hover {
    color: var(--blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-header-play {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface2);
    border: 1px solid var(--rim);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-header-play:hover {
    background: var(--blue);
    color: var(--ink);
    border-color: var(--blue);
}

/* HERO */
#hero { position: relative; padding: 10rem 0 8rem; text-align: center; overflow: hidden; }
.hero-mesh { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--blue-glow) 0%, transparent 70%); opacity: 0.3; z-index: 0; }
.hero-inner { position: relative; z-index: 1; }
.hero-tag { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue); border: 1px solid var(--rim); padding: 0.5rem 1rem; border-radius: 100px; display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface); margin-bottom: 2rem; }
.hero-tag-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; box-shadow: 0 0 10px var(--blue); }
.hero-h1 { font-family: var(--display); font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.hero-h1 em { font-style: normal; background: linear-gradient(to right, var(--blue), #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.25rem; color: var(--muted); max-width: 600px; margin: 0 auto 3rem; }

.btn-glow { background: var(--blue); color: var(--ink); font-family: var(--display); font-weight: 700; padding: 1rem 2.5rem; border-radius: 100px; display: inline-flex; align-items: center; gap: 0.75rem; box-shadow: 0 10px 30px var(--blue-glow); transition: 0.3s; }
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 15px 40px var(--blue-glow); }
.btn-rim { border: 1px solid var(--rim); padding: 1rem 2.5rem; border-radius: 100px; display: inline-flex; align-items: center; gap: 0.75rem; transition: 0.3s; font-family: var(--display); font-weight: 600; }
.btn-rim:hover { background: var(--surface2); }

/* SECTIONS */
.section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-h2 { font-family: var(--display); font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* FEATURED GALLERY */
.featured-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.main-gallery-wrap { display: flex; flex-direction: column; gap: 1rem; }
.main-img-container { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--rim); box-shadow: 0 30px 60px rgba(0,0,0,0.5); position: relative; aspect-ratio: 16/9; }
.main-feat-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-thumbs { display: flex; gap: 0.75rem; overflow-x: auto; padding-bottom: 0.5rem; }
.gallery-thumb { width: 100px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: 0.5; transition: 0.3s; }
.gallery-thumb.active { border-color: var(--blue); opacity: 1; }
.gallery-thumb:hover { opacity: 0.8; }

.featured-badge { color: var(--blue); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 1rem; }
.featured-title { font-family: var(--display); font-size: 3.5rem; font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem; }
.featured-desc { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.featured-meta { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.meta-tag { background: var(--surface); border: 1px solid var(--rim); padding: 0.4rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }

/* GAMES GRID */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }
.game-card { background: var(--ink2); border: 1px solid var(--rim); border-radius: var(--r-lg); overflow: hidden; transition: 0.4s; position: relative; }
.game-card:hover { transform: translateY(-10px); border-color: var(--card-accent); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }

.card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.mini-main { width: 100%; height: 100%; object-fit: cover; }
.mini-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.game-card:hover .mini-overlay { opacity: 1; }
.mini-overlay span { font-family: var(--mono); font-size: 0.8rem; background: var(--blue); color: var(--ink); padding: 0.4rem 1rem; border-radius: 100px; font-weight: 700; }

.card-content { padding: 1.5rem; }
.card-header { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.card-icon { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.card-name { font-family: var(--display); font-size: 1.25rem; font-weight: 700; }
.card-cat { font-size: 0.8rem; color: var(--muted); display: block; }
.card-desc-short { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; height: 3em; overflow: hidden; }

.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rim); padding-top: 1rem; margin-top: 1rem; }
.card-stats { display: flex; gap: 1rem; font-size: 0.8rem; font-weight: 600; }
.card-rating { color: #fbbf24; }
.dl-btn-mini { width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center; transition: 0.3s; }
.dl-btn-mini:hover { background: var(--blue); color: var(--ink); }
.dl-icon { width: 18px; height: 18px; }

/* FOOTER */
.main-footer { background: var(--ink2); padding: 5rem 0 2rem; border-top: 1px solid var(--rim); margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-bio { color: var(--muted); margin: 1.5rem 0; max-width: 320px; }
.footer-social { display: flex; gap: 1rem; }
.social-link { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--rim); display: grid; place-items: center; color: var(--muted); transition: 0.3s; }
.social-link:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); transform: translateY(-3px); }
.footer-title { font-family: var(--display); font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: var(--muted); transition: 0.3s; }
.footer-links a:hover { color: var(--blue); padding-left: 5px; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--rim); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); }
.lightbox-content { margin: auto; display: block; width: 80%; max-width: 1200px; max-height: 80vh; object-fit: contain; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 12px; }
.close-lightbox { position: absolute; top: 2rem; right: 2rem; color: #fff; font-size: 3rem; cursor: pointer; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@media (max-width: 992px) {
    .featured-inner { grid-template-columns: 1fr; }
    .featured-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .nav-list { display: none; }
}
