/*
Theme Name: GGEZ Gaming Theme
Theme URI: https://ggez.live
Author: GGEZ
Description: Premium dark-mode gaming theme with Cyberpunk Cyan/Purple colors and bulletproof CSS grids.
Version: 2.1 Final
*/

:root {
    --primary:     #00e5ff; /* Neon Cyan */
    --secondary:   #b400ff; /* Deep Purple */
    --bg:          #05040a; /* Ultra-dark purple-tinted space */
    --surface:     rgba(0, 229, 255, 0.04);
    --border:      rgba(0, 229, 255, 0.16);
    --border-dim:  rgba(255, 255, 255, 0.06);
    --text:        #f0ede8;
    --muted:       #6a5a7a;
    --glow:        0 0 24px rgba(0, 229, 255, 0.4);
}

body, html {
    margin: 0; padding: 0;
    background-color: transparent !important;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

#bg-canvas {
    position: fixed; inset: 0; z-index: -1;
    background: var(--bg);
    pointer-events: none;
}

/* ── BRAND BAR & MEGA MENU ──────────────────────────────────────── */
.brand-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    height: 48px; display: flex; align-items: center; padding: 0 48px;
    background: rgba(5,4,10,0.6); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); overflow: visible; 
}

.brand-link {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; padding: 0 16px; height: 48px; cursor: pointer;
    display: flex; align-items: center; white-space: nowrap; flex-shrink: 0;
    border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
    font-family: 'Inter', sans-serif; background: none; border: none;
}

.brand-link:hover { color: var(--text); }
.brand-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.dropdown { position: relative; height: 100%; }
.dropbtn { color: var(--primary); font-weight: 600; }
.dropbtn .caret { font-size: 0.6rem; margin-left: 6px; transition: transform 0.2s; }
.dropdown:hover .dropbtn .caret { transform: rotate(180deg); }

.dropdown-content {
    display: none; position: absolute; top: 48px; left: 0;
    background: rgba(5,4,10,0.9); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-top: none;
    min-width: 600px; padding: 24px;
    grid-template-columns: repeat(3, 1fr); gap: 8px 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.dropdown:hover .dropdown-content { display: grid; animation: slideDown 0.2s ease forwards; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
    color: var(--text); text-decoration: none; font-size: 0.75rem;
    padding: 10px 14px; text-transform: uppercase; letter-spacing: 0.08em;
    transition: all 0.2s; border-left: 2px solid transparent; display: block;
}

.dropdown-content a:hover {
    color: var(--primary); background: rgba(0,229,255,0.06); border-left-color: var(--primary);
}

.bar-divider { width: 1px; height: 20px; background: var(--border-dim); margin: 0 8px; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 140px 40px 80px; text-align: center; position: relative; z-index: 1;
}

.hero-logo { margin-bottom: 40px; animation: up .9s ease both; }
.logo { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.8rem; color: var(--primary); text-decoration: none; text-shadow: var(--glow); letter-spacing: 0.06em; display: inline-block; }

.eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); margin-bottom: 36px; animation: up .9s .05s ease both; }
.hero-title { font-family: 'Orbitron', monospace; font-size: clamp(2.6rem, 6.5vw, 5.8rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: var(--text); margin: 0; animation: up .9s .1s ease both; }
.hero-title .hi { color: var(--primary); text-shadow: var(--glow); }
.hero-sub { font-size: 0.92rem; font-weight: 300; font-style: italic; color: var(--muted); letter-spacing: 0.04em; margin-top: 22px; line-height: 1.8; animation: up .9s .15s ease both; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 48px; animation: up .9s .2s ease both; }

.btn-main {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 13px 44px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
    border: none; cursor: pointer; text-decoration: none; display: inline-block;
    clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%); transition: filter .2s, transform .15s;
}
.btn-main:hover { filter: brightness(1.15); transform: translateY(-2px); }

.btn-outline {
    font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 13px 44px; background: rgba(5,4,10,0.4); backdrop-filter: blur(12px); color: var(--text);
    border: 1px solid var(--border-dim); cursor: pointer; text-decoration: none; display: inline-block;
    clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%); transition: color .2s, border-color .2s, transform .15s, background .2s;
}
.btn-outline:hover { color: var(--primary); border-color: var(--border); transform: translateY(-2px); background: rgba(0,229,255,0.06); }

/* ── TRUST STRIP ────────────────────────────────────── */
.trust { display: flex; align-items: center; gap: 0; justify-content: center; flex-wrap: wrap; margin-top: 72px; animation: up .9s .3s ease both; }
.t-item { padding: 0 36px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.t-val { font-family: 'Orbitron', monospace; font-size: 1rem; font-weight: 700; color: var(--primary); }
.t-lbl { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.t-sep { width: 1px; height: 30px; background: var(--border-dim); }

/* HOW IT WORKS */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; width: 100%; max-width: 1000px; margin: 40px auto 0; animation: up .9s .4s ease both;}
.how-card { background: rgba(0,229,255,0.04); border: 1px solid var(--border); padding: 30px; text-align: center; }

/* ── MAIN CONTENT ───────────────────────────────────── */
.main-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 40px 100px; width: 100%; box-sizing: border-box; animation: up .9s .4s ease both; }
.section-title { font-family: 'Orbitron', monospace; font-size: 1.8rem; color: var(--text); margin-bottom: 30px; border-bottom: 1px solid var(--border-dim); padding-bottom: 15px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── FOOTER ─────────────────────────────────────────── */
footer { position: relative; z-index: 1; margin-top: auto; border-top: 1px solid var(--border-dim); background: rgba(5,4,10,0.8); padding: 22px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.f-logo { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 0.85rem; color: var(--primary); }
.f-copy { font-size: 0.72rem; color: var(--muted); }
.f-links { display: flex; gap: 20px; }
.f-links a { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--text); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@keyframes up { from { opacity: 0; transform: translateY(18px); } to   { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
    .brand-bar { padding: 0 20px; }
    /* Disable CSS hover on mobile — JS handles open/close instead */
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.open .dropdown-content {
        display: grid;
        position: fixed;
        left: 0;
        right: 0;
        top: 48px;
        min-width: 100vw;
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
    }
    body.admin-bar .dropdown.open .dropdown-content { top: 80px; }
}
@media screen and (max-width: 782px) {
    body.admin-bar .dropdown.open .dropdown-content { top: 94px; }
}
@media (max-width: 640px) { footer { padding: 18px 20px; justify-content: center; } .hero { padding: 120px 24px 80px; } .trust { gap: 0; flex-wrap: wrap; justify-content: center; } .t-item { padding: 12px 20px; } .main-content { padding: 0 20px 80px; } .hero-title { font-size: 3rem; } }

/* ==========================================================
   PLUGIN OVERRIDES (Forces Cyberpunk Theme globally)
   ========================================================== */
.gc-card { border-radius: 0 !important; background: var(--surface) !important; border: 1px solid var(--border) !important; }
.gc-card:hover { border-color: rgba(0,229,255,0.4) !important; background: rgba(0,229,255,0.09) !important; box-shadow: var(--glow) !important;}
.gc-card:active { transform: translateY(0px) scale(0.98) !important; box-shadow: 0 0 10px rgba(0, 229, 255, 0.2) !important; }
.gc-card::before { background: linear-gradient(90deg, transparent, var(--primary), transparent) !important; }
.gc-card-tag { border-radius: 0 !important; color: var(--primary) !important; background: rgba(0,229,255,0.15) !important; border-color: rgba(0,229,255,0.3) !important; }
.gc-card-brand { font-family: 'Orbitron', monospace !important; color: var(--secondary) !important; } 
.gc-card-price { font-family: 'Orbitron', monospace !important; color: var(--primary) !important; }
.gc-card-btn { border-radius: 0 !important; clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%) !important; background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; color: #fff !important; font-family: 'Inter', sans-serif !important; border: none !important; }

.gc-modal { border-radius: 0 !important; background: var(--bg) !important; box-shadow: var(--glow) !important; border: 1px solid var(--border) !important; }
.gc-modal-logo { font-family: 'Orbitron', monospace !important; }
.gc-modal-logo span { color: var(--primary) !important; }
.gc-modal-product-price { color: var(--primary) !important; font-family: 'Orbitron', monospace !important; }
.gc-modal-input { border-radius: 0 !important; background: rgba(0,0,0,0.4) !important; }
.gc-modal-input:focus { border-color: var(--primary) !important; }
.gc-modal-submit { border-radius: 0 !important; clip-path: polygon(10px 0%,100% 0%,calc(100% - 10px) 100%,0% 100%) !important; background: linear-gradient(135deg, var(--primary), var(--secondary)) !important; color: #fff !important; border: none !important; }

/* ==========================================================
   BULLETPROOF 4-COLUMN GRID FIX (Ignores WordPress Spaces)
   ========================================================== */
.gc-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* MAGIC FIX: This forces WordPress line breaks (<br>) and paragraphs (<p>) to become invisible to the grid, fixing the layout! */
.gc-grid > p, .gc-grid > br {
    display: contents !important; 
}

@media (max-width: 1024px) {
    .gc-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 768px) {
    .gc-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .gc-grid { grid-template-columns: 1fr !important; }
}
/* WP Admin Bar Fix (Moved from header.php / front-page.php) */
body.admin-bar .brand-bar { top: 32px !important; }
@media screen and (max-width: 782px) {
    body.admin-bar .brand-bar { top: 46px !important; } 
}