/* GameXYZ Auto Pages — Frontend Styles v1.3
   Colors: White background, #1a1a2e blue-navy accents
*/

.gxyz-box {
    max-width: 780px;
    margin: 0 auto 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e0e6f0;
    color: #1d2327;
}

/* ── TOP SECTION ── */
.gxyz-top-section {
    background: #ffffff;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e6f0;
}

/* Breadcrumb */
.gxyz-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}
.gxyz-breadcrumb li { display: inline; }
.gxyz-breadcrumb a  { color: #1a1a2e; text-decoration: none; font-weight: 500; }
.gxyz-breadcrumb a:hover { text-decoration: underline; }

/* Title */
.gxyz-title {
    font-size: clamp(17px, 3vw, 24px);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 10px;
    color: #1a1a2e;
}

/* Version chip */
.gxyz-version-chip {
    display: inline-block;
    background: #f0f4ff;
    color: #1a1a2e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #c7d4f0;
}

/* Bonus badge */
.gxyz-bonus-badge {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 18px;
    border-radius: 20px;
    margin: 6px 0 10px;
    letter-spacing: .03em;
}

/* Description */
.gxyz-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-top: 8px;
}

/* ── MIDDLE SECTION ── */
.gxyz-mid-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 28px 24px;
    background: #f8faff;
    text-align: center;
}

/* Logo */
.gxyz-logo {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    border: 2px solid #e0e6f0;
    flex-shrink: 0;
    margin: 0 auto;
}
.gxyz-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

/* Download button — blue */
.gxyz-dl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 36px;
    border-radius: 30px;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
    min-width: 200px;
    letter-spacing: .02em;
}
.gxyz-dl-btn:hover {
    background: #0d0d1a;
    transform: translateY(-1px);
}
.gxyz-dl-btn:active { transform: scale(.97); }

/* Rating */
.gxyz-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    flex-wrap: wrap;
    color: #1d2327;
}
.gxyz-rating .rating { display: inline-block; position: relative; }
.gxyz-rating .stars {
    display: block;
    height: 16px;
    background: #1a1a2e;
    overflow: hidden;
    border-radius: 2px;
}
.gxyz-rating .rating-average { font-weight: 700; color: #1a1a2e; }
.gxyz-rating .rating-text    { color: #6b7280; font-size: 13px; }

/* ── META BAR ── */
.gxyz-bottom-section {
    background: #ffffff;
    border-top: 1px solid #e0e6f0;
}
.gxyz-meta-bar {
    display: flex;
    flex-wrap: wrap;
}
.gxyz-meta-bar .da-s {
    flex: 1;
    min-width: 100px;
    text-align: center;
    padding: 14px 10px;
    border-right: 1px solid #e0e6f0;
    font-size: 13px;
    color: #6b7280;
}
.gxyz-meta-bar .da-s:last-child { border-right: none; }
.gxyz-meta-bar .da-s b {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── GAMES LIST SECTION ── */
.gxyz-games-list-section {
    padding: 24px;
    background: #f8faff;
    border-top: 1px solid #e0e6f0;
}
.gxyz-games-list-wrap { width: 100%; }
.gxyz-games-list-title {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a2e;
    display: inline-block;
}
.gxyz-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.gxyz-game-card {
    background: #ffffff;
    border: 1px solid #e0e6f0;
    border-radius: 14px;
    text-align: center;
    padding: 14px 10px;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    text-decoration: none !important;
    color: #1d2327 !important;
    display: block;
}
.gxyz-game-card:hover {
    border-color: #1a1a2e;
    box-shadow: 0 4px 16px rgba(26,26,46,.12);
    transform: translateY(-2px);
}
.gxyz-game-card-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin: 0 auto 10px;
    border: 1px solid #e0e6f0;
}
.gxyz-game-card-logo-placeholder {
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}
.gxyz-game-card-name {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    line-height: 1.3;
}
.gxyz-game-card-bonus {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 4px;
}
.gxyz-game-card-dl {
    display: block;
    margin-top: 8px;
    background: #1a1a2e;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    text-decoration: none !important;
}
.gxyz-game-card-dl:hover { background: #0d0d1a; }

/* ── Responsive ── */
@media (max-width: 520px) {
    .gxyz-top-section  { padding: 16px; }
    .gxyz-mid-section  { padding: 20px 16px; }
    .gxyz-games-list-section { padding: 16px; }
    .gxyz-dl-btn { width: 90%; }
    .gxyz-meta-bar .da-s { min-width: 80px; padding: 10px 6px; font-size: 12px; }
    .gxyz-games-grid { grid-template-columns: repeat(2, 1fr); }
}
