/* ==========================================================
 * GENE-X-GAME PRO - ULTIMATE DARK CYBERPUNK STYLE v10.3
 * ========================================================== */

/* 1. GRIGLIA FLUIDA RESPONSIVE */
.gxg-grid-container,
.entry-content .gxg-grid-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 25px !important;
    margin: 35px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. ESTRUTTURA SCHEDA GAME CARD & PERSONAGGI */
.gxg-card {
    background: linear-gradient(145deg, #090a14 0%, #121026 100%) !important;
    border: 2px solid #7c3aed !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3), inset 0 0 12px rgba(124, 58, 237, 0.1) !important;
    border-radius: 14px !important;
    padding: 26px 22px 22px 22px !important;
    text-align: left !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.gxg-card:hover {
    transform: translateY(-4px) !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.45), inset 0 0 15px rgba(0, 240, 255, 0.2) !important;
}

.gxg-card::before {
    content: "DATABASE GAME // LORE & PSYCHE" !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    color: #00f0ff !important;
    background: rgba(0, 240, 255, 0.1) !important;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3) !important;
    padding: 9px 0 !important;
    margin: -26px -22px 18px -22px !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.gxg-badge-serie {
    display: inline-block;
    background: rgba(124, 58, 237, 0.25);
    color: #c084fc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

/* 3. IMMAGINE E AVATAR CENTRATI */
.gxg-card .gxg-img-wrapper {
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 16px 0 !important;
    display: block !important;
}

.gxg-card .gxg-img-wrapper img,
.gxg-card .gxg-img {
    width: 130px !important;
    height: 130px !important;
    min-width: 130px !important;
    min-height: 130px !important;
    max-width: 130px !important;
    max-height: 130px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid #7c3aed !important;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5) !important;
    margin: 0 auto !important;
    display: block !important;
}

.gxg-card .gxg-title {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    margin: 0 0 16px 0 !important;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.8) !important;
    text-transform: uppercase !important;
    text-align: center !important;
}

.gxg-card .gxg-meta-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.gxg-card .gxg-meta-item {
    color: #f8fafc !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    padding: 9px 12px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 6px !important;
    border-left: 3px solid #7c3aed !important;
}

.gxg-card .gxg-meta-item strong {
    color: #00f0ff !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    margin-right: 8px !important;
    display: inline-block !important;
}

.gxg-card .gxg-desc-section {
    margin-top: 5px !important;
    padding: 14px 16px !important;
    border-top: 1px dashed rgba(124, 58, 237, 0.4) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #f1f5f9 !important;
    text-align: left !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.gxg-card .gxg-desc-section strong {
    color: #a855f7 !important;
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* 4. INFOBOX TECNICO & INDICE DINAMICO (TOC) */
.gxg-infobox {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.9));
    border: 2px solid #00f0ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    color: #fff;
}
.gxg-infobox h3 {
    color: #00f0ff;
    margin-top: 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    padding-bottom: 8px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gxg-infobox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.gxg-toc {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #7c3aed;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.gxg-toc h4 {
    color: #c084fc;
    margin: 0 0 10px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.gxg-toc ul {
    margin: 0;
    padding-left: 20px;
    columns: 2;
}
.gxg-toc li {
    margin-bottom: 6px;
    font-size: 14px;
}
.gxg-toc a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}
.gxg-toc a:hover {
    color: #00f0ff;
}

/* 5. TITOLI SEZIONI (H2) CON ICONE INGRANDITE E SENZA BOX */
.gxg-article-content h2, 
.single-post .entry-content h2 {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 45px !important;
    margin-bottom: 20px !important;
    color: #f8fafc !important;
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* Icona ingrandita a 38px con spaziatura proporzionata */
.gxg-article-content h2[style*="background-image"],
.single-post .entry-content h2[style*="background-image"] {
    background-size: 38px !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    padding-left: 55px !important;
}

/* 6. BOX VOTO FINALE */
.gxg-voto-box {
    background: linear-gradient(135deg, #1e1b4b, #0f172a) !important;
    color: #fff !important;
    padding: 16px 22px !important;
    border-radius: 10px !important;
    border-left: 6px solid #10b981 !important;
    border-right: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-top: 1px solid rgba(16, 185, 129, 0.3) !important;
    border-bottom: 1px solid rgba(16, 185, 129, 0.3) !important;
    margin-bottom: 20px !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2) !important;
}

.gxg-article-content {
    color: #e2e8f0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}
.gxg-article-content p {
    margin-bottom: 20px !important;
}