/* Game Portal — Single Post Styles */

.gp-wrap { max-width: 100%; }

.gp-date-bar {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}


.gp-breadcrumb {
    opacity: .7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: center; /* ← tambah ini */
}

.gp-download-count{
    display:inline-block;
    margin-top:10px;
    margin-bottom:10px;
    padding:6px 12px;
    border-radius:6px;
    background:#111;
    color:#fff;
    font-size:13px;
    font-weight:600;
}

.gp-wrap .gp-title,
.gp-wrap h1.gp-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 8px 0 6px !important;
    line-height: 1.3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--wp--preset--color--heading) !important;
}

.gp-cats {
    font-size: 12px;
    color: var(--wp--preset--color--meta);
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.gp-cats a { color: var(--wp--preset--color--meta); text-decoration: none; }
.gp-cats a:hover { color: var(--wp--preset--color--primary); }

.gp-cover {
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
}
.gp-cover img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.gp-info-table {
    border: 1px solid var(--wp--preset--color--outline);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.gp-info-row {
    display: flex;
    padding: 7px 14px;
    /*border-bottom: 1px solid var(--wp--preset--color--outline);*/
    font-size: 13px;
    line-height: 1.6;
    color: inherit;
}
.gp-info-row:last-child { border-bottom: none; }
.gp-info-label { color: var(--wp--preset--color--primary); font-weight: 700; min-width: 150px; flex-shrink: 0; }
.gp-info-value { color: inherit; flex: 1; }
.gp-info-value a { color: inherit; text-decoration: none; }
.gp-info-value a:hover { color: var(--wp--preset--color--primary); text-decoration: underline; }

.gp-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}

.gp-excerpt {
    font-size: 13px;
    color: var(--wp--preset--color--meta);
    line-height: 1.7;
    padding: 10px 14px;
    background: var(--wp--preset--color--foreground);
    border: 1px solid var(--wp--preset--color--outline);
    border-radius: 6px;
    margin-bottom: 16px;
}

/* Tabs */
.gp-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    border-bottom: 2px solid var(--wp--preset--color--primary);
}
.gp-tab-btn {
    background: var(--wp--preset--color--foreground);
    color: var(--wp--preset--color--meta);
    border: none;
    padding: 9px 18px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    transition: background .15s, color .15s;
}
.gp-tab-btn:hover { background: var(--wp--preset--color--outline); color: var(--wp--preset--color--heading); }
.gp-tab-btn.active { background: var(--wp--preset--color--primary); color: #fff; }

.gp-tabs-content {
    border: 1px solid var(--wp--preset--color--outline);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}
.gp-tab-panel { display: none; }
.gp-tab-panel.active { display: block; }

/* Trailer */
.gp-trailer { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.gp-trailer iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Screenshots */
.gp-shots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gp-shots-grid a img { width: 100%; height: 130px; object-fit: cover; border-radius: 4px; border: 1px solid var(--wp--preset--color--outline); cursor: pointer; transition: opacity .2s; display: block; }
.gp-shots-grid a img:hover { opacity: .85; }

/* System requirements */
.gp-sysreq { white-space: pre-line; font-size: 13px; color: var(--wp--preset--color--body); line-height: 1.8; background: var(--wp--preset--color--foreground); padding: 16px; border-radius: 6px; border: 1px solid var(--wp--preset--color--outline); }

/* Download */
.gp-dl-section { margin-bottom: 20px; }
.gp-dl-title { font-size: 13px; font-weight: 700; color: var(--wp--preset--color--heading); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--wp--preset--color--outline); }
.gp-dl-quality { margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--wp--preset--color--primary); }
.gp-dl-qlabel { font-size: 12px; color: var(--wp--preset--color--meta); font-weight: 600; margin-bottom: 8px; margin-top: 4px; }
.gp-mirrors { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-mirror-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wp--preset--color--foreground);
    color: var(--wp--preset--color--body) !important;
    text-decoration: none !important;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--wp--preset--color--outline);
    transition: background .15s, color .15s, border-color .15s;
}
.gp-mirror-btn:hover { background: var(--wp--preset--color--primary) !important; color: #fff !important; border-color: var(--wp--preset--color--primary) !important; }
.gp-mirror-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Install notes */
.gp-install { font-size: 13px; color: var(--wp--preset--color--body); line-height: 1.8; }
.gp-install ol, .gp-install ul { padding-left: 20px; margin: 8px 0; }

/* Responsive */
@media (max-width: 768px) {
    .gp-info-label { min-width: 110px; }
    .gp-tab-btn { padding: 7px 12px; font-size: 11px; }
    .gp-shots-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Download INFO box ────────────────────────────────────── */
.gp-dl-info {
    border: 1px solid var(--wp--preset--color--outline);
    border-left: 3px solid var(--wp--preset--color--primary);
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.gp-dl-info-title {
    background: var(--wp--preset--color--foreground);
    color: var(--wp--preset--color--heading);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-bottom: 1px solid var(--wp--preset--color--outline);
    letter-spacing: .04em;
}

.gp-dl-info-body {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--wp--preset--color--body);
    line-height: 1.8;
}

.gp-dl-info-body ul,
.gp-dl-info-body p {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.gp-dl-info-body li::before {
    content: '• ';
    color: var(--wp--preset--color--primary);
}

/* ── Package header bar (mirip OvaGames) ──────────────────── */
.gp-dl-pkg-header {
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: center;
    padding: 10px 14px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 0;
}


/* Download section: hapus border lama, ganti ke style baru */
.gp-dl-section {
    margin-bottom: 20px;
    border: 1px solid var(--wp--preset--color--outline);
    border-radius: 4px;
    overflow: hidden;
}

.gp-dl-section .gp-dl-quality {
    padding: 12px 14px;
    border-top: 1px solid var(--wp--preset--color--outline);
    border-left: none;
}

.gp-dl-section .gp-dl-quality:first-of-type {
    border-top: none;
}

/* Mirror buttons — kotak grid 2 kolom, OvaGames style */
.gp-mirrors {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px;
    background: var(--wp--preset--color--foreground);
}

.gp-mirror-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--wp--preset--color--body) !important;
    text-decoration: none !important;
    padding: 10px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    border: 1px solid var(--wp--preset--color--outline);
    transition: background .15s, color .15s, border-color .15s;
    text-align: center;
    text-transform: uppercase;
    min-height: 36px;
}

.gp-mirror-btn:hover {
    background: var(--wp--preset--color--primary) !important;
    color: #fff !important;
    border-color: var(--wp--preset--color--primary) !important;
}

/* Item ganjil terakhir: span 2 kolom */
.gp-mirrors .gp-mirror-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .gp-mirrors { grid-template-columns: 1fr; }
    .gp-mirrors .gp-mirror-btn:last-child:nth-child(odd) { grid-column: 1; }
}

/* ── Full width layout (no sidebar) ──────────────────────── */
.gp-fullwidth-wrap {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* ── Tags ─────────────────────────────────────────────────── */
.gp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 0.5px solid var(--wp--preset--color--outline);
}

.gp-tag-item {
    display: inline-block;
    background: var(--wp--preset--color--foreground);
    color: var(--wp--preset--color--body) !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    border: 0.5px solid var(--wp--preset--color--outline);
    transition: background .15s, color .15s;
}

.gp-tag-item:hover {
    background: var(--wp--preset--color--primary) !important;
    color: #fff !important;
    border-color: var(--wp--preset--color--primary) !important;
}

/* ============================================================
   ARCHIVE / HOME GRID — OvaGames Style
   ============================================================ */

.gp-archive-heading {
    margin-bottom: 20px;
}

.gp-archive-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

/* Grid 2 kolom */
.gp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

/* Card */
.gp-card {
    border: 1px solid var(--wp--preset--color--outline);
    border-radius: 4px;
    overflow: hidden;
    background: var(--wp--preset--color--background);
    transition: box-shadow .2s;
}

.gp-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

/* Title bar */
.gp-card-title {
    background: var(--wp--preset--color--primary);
    padding: 8px 12px;
}

.gp-card-title a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-card-title a:hover {
    color: rgba(255,255,255,.85) !important;
}

/* Cover image */
.gp-card-cover {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--wp--preset--color--foreground);
}

.gp-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

.gp-card:hover .gp-card-cover img {
    transform: scale(1.04);
}

.gp-card-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--wp--preset--color--meta);
}

/* Footer more button */
.gp-card-footer {
    display: flex;
    justify-content: flex-end;
    padding: 6px 10px;
    border-top: 1px solid var(--wp--preset--color--outline);
    background: var(--wp--preset--color--foreground);
}

.gp-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--wp--preset--color--body) !important;
    text-decoration: none !important;
    text-transform: lowercase;
    letter-spacing: .03em;
}

.gp-card-more:hover {
    color: var(--wp--preset--color--primary) !important;
}

.gp-card-more-icon {
    font-size: 9px;
    color: var(--wp--preset--color--primary);
}

/* Pagination */
.gp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.gp-pagination span a,
.gp-pagination span .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--wp--preset--color--outline);
    border-radius: 4px;
    font-size: 13px;
    color: var(--wp--preset--color--body) !important;
    text-decoration: none !important;
    transition: background .15s, color .15s;
}

.gp-pagination span a:hover {
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    border-color: var(--wp--preset--color--primary);
}

.gp-pagination span .current {
    background: var(--wp--preset--color--primary);
    color: #fff !important;
    border-color: var(--wp--preset--color--primary);
}

/* Responsive */
@media (max-width: 600px) {
    .gp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .gp-card-title a {
        font-size: 11px;
    }
}