/*
Theme Name: PastiGame Premium
Version: 1.0.5
Description: Premium AAA Gaming Portal
*/

/* STREAMING_CHUNK:Defining Premium Variables... */
:root {
--pg-primary: #1570EF;
--pg-primary-hover: #1D4ED8;
--pg-bg: #09111F;
--pg-card: #121A2B;
--pg-border: #22304A;
--pg-text-main: #FFFFFF;
--pg-text-muted: #94A3B8;
--pg-warning: #F59E0B;
--pg-success: #22C55E;

--pg-radius-sm: 8px;
--pg-radius-md: 12px;
--pg-radius-lg: 20px;
--pg-transition: all 0.3s ease;


}

/* STREAMING_CHUNK:Reset & Base... */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', sans-serif;
background-color: var(--pg-bg) !important;
color: var(--pg-text-main) !important;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--pg-transition); }
img { max-width: 100%; height: auto; display: block; }

/* STREAMING_CHUNK:Layout System... */
.pg-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; margin-top: 40px; }

/* Grid dinamis (menyesuaikan layar) */
.pg-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pg-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* STREAMING_CHUNK:Header & Hero Setengah Layar... */
.pg-header { position: sticky; top: 0; z-index: 100; height: 78px; background: rgba(9, 17, 31, 0.85); backdrop-filter: blur(16px); border-bottom: 1px solid var(--pg-border); }
.pg-header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.pg-logo a { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; color: #FFF; letter-spacing: -0.5px; }

/* Kuncian tinggi Hero agar konten bawah langsung terlihat */
.pg-hero-wrapper { position: relative; height: 460px; display: flex; align-items: center; border-bottom: 1px solid var(--pg-border); overflow: hidden; }
.pg-hero__bg { position: absolute; inset: 0; z-index: 1; }
.pg-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pg-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(9, 17, 31, 1) 0%, rgba(9, 17, 31, 0.8) 40%, rgba(9, 17, 31, 0.2) 100%), linear-gradient(to bottom, transparent 0%, #09111F 100%); }
.pg-hero-content { position: relative; z-index: 2; max-width: 650px; }
.pg-hero__title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 16px; color: #FFF; }
.pg-hero__title span { color: var(--pg-primary); }
.pg-hero__desc { font-size: 1.1rem; color: var(--pg-text-muted); margin-bottom: 32px; }

.pg-search-form { display: flex; background: #FFF; border-radius: 20px; height: 64px; padding: 6px; margin-bottom: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.3); }
.pg-search-form input { flex: 1; background: transparent; padding: 0 24px; font-size: 1rem; color: #111827; border: none; outline: none; }
.pg-search-form button { background: var(--pg-primary); color: #FFF; padding: 0 32px; border-radius: 16px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; transition: var(--pg-transition); }
.pg-search-form button:hover { background: var(--pg-primary-hover); box-shadow: 0 0 15px var(--pg-primary); }

.pg-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-tag { background: rgba(34, 48, 74, 0.6); border: 1px solid var(--pg-border); color: var(--pg-text-muted); padding: 8px 16px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: var(--pg-transition); }
.pg-tag:hover { background: var(--pg-primary); color: #FFF; border-color: var(--pg-primary); }

/* STREAMING_CHUNK:Section Headers... */
.pg-section { margin-bottom: 48px; }
.pg-section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pg-section__title { font-size: 1.4rem; font-weight: 800; color: #FFF; display: flex; align-items: center; gap: 12px; }
.pg-section__title i { color: var(--pg-primary); }
.pg-link-all { font-size: 0.9rem; font-weight: 600; color: var(--pg-primary); transition: var(--pg-transition); }
.pg-link-all:hover { color: #FFF; }

/* STREAMING_CHUNK:Game Cards (Kuncian Anti-Melar)... */
.pg-card { background: var(--pg-card); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-md); padding: 12px; display: flex; flex-direction: column; transition: var(--pg-transition); position: relative; }
.pg-card:hover { transform: translateY(-5px); border-color: var(--pg-primary); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }

/* INI KUNCI RAHASIANYA: Memaksa bentuk Poster Tegak 3:4 */
.pg-card__thumb { display: block; width: 100%; padding-top: 133.33%; border-radius: var(--pg-radius-sm); overflow: hidden; position: relative; margin-bottom: 12px; background: #0f172a; }
.pg-card__thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pg-card:hover .pg-card__thumb img { transform: scale(1.08); }

.pg-card__badge { position: absolute; top: 8px; left: 8px; background: var(--pg-success); color: #000; font-size: 0.65rem; font-weight: 800; padding: 4px 8px; border-radius: 6px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.pg-card__title { font-size: 0.95rem; font-weight: 700; color: #FFF; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-card__genre { font-size: 0.75rem; color: var(--pg-text-muted); margin-bottom: 12px; }
.pg-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 600; margin-bottom: 16px; }
.pg-card__rating { color: var(--pg-warning); }
.pg-card__btn { background: var(--pg-primary); color: #FFF; padding: 10px; text-align: center; border-radius: var(--pg-radius-sm); font-size: 0.85rem; font-weight: 700; transition: var(--pg-transition); margin-top: auto; display: flex; justify-content: center; align-items: center; gap: 8px; border: none; width: 100%; }
.pg-card__btn:hover { background: var(--pg-primary-hover); box-shadow: 0 0 15px var(--pg-primary); }

/* STREAMING_CHUNK:Editor Choice Cards... */
.pg-card-editor { position: relative; width: 100%; padding-top: 133.33%; border-radius: var(--pg-radius-lg); overflow: hidden; border: 1px solid var(--pg-border); display: flex; flex-direction: column; transition: var(--pg-transition); }
.pg-card-editor:hover { transform: translateY(-5px); border-color: var(--pg-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.pg-card-editor__bg { position: absolute; inset: 0; z-index: 1; }
.pg-card-editor__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pg-card-editor:hover .pg-card-editor__bg img { transform: scale(1.05); }
.pg-card-editor::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 17, 31, 1) 0%, rgba(9, 17, 31, 0.8) 50%, transparent 100%); z-index: 2; }
.pg-card-editor__content { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 3; padding: 20px; }
.pg-card-editor__title { font-size: 1.2rem; font-weight: 800; color: #FFF; margin-bottom: 4px; }
.pg-card-editor__desc { font-size: 0.8rem; color: #D1D5DB; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-card-editor__footer { display: flex; justify-content: space-between; align-items: center; }
.pg-card-editor__btn { background: transparent; color: var(--pg-primary); border: 2px solid var(--pg-primary); padding: 8px 16px; border-radius: var(--pg-radius-sm); font-size: 0.8rem; font-weight: 700; transition: var(--pg-transition); }
.pg-card-editor:hover .pg-card-editor__btn { background: var(--pg-primary); color: #FFF; }

/* STREAMING_CHUNK:Sidebar Widgets... */
.pg-widget { margin-bottom: 40px; }
.pg-widget__title { font-size: 1.1rem; font-weight: 800; color: #FFF; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--pg-border); }
.pg-pop-item { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--pg-card); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-md); transition: var(--pg-transition); margin-bottom: 12px; }
.pg-pop-item:hover { border-color: var(--pg-primary); transform: translateX(5px); }
.pg-pop-item__rank { width: 28px; height: 28px; background: var(--pg-primary); color: #FFF; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.pg-pop-item__thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.pg-pop-item__info { flex: 1; overflow: hidden; }
.pg-pop-item__title { font-size: 0.9rem; font-weight: 700; color: #FFF; margin-bottom: 2px; }
.pg-pop-item__meta { font-size: 0.75rem; color: var(--pg-text-muted); }

.pg-cat-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--pg-card); border: 1px solid var(--pg-border); border-radius: var(--pg-radius-md); font-weight: 600; font-size: 0.9rem; color: var(--pg-text-muted); transition: var(--pg-transition); margin-bottom: 10px; }
.pg-cat-item:hover { background: rgba(21, 112, 239, 0.1); color: #FFF; border-color: var(--pg-primary); transform: translateX(5px); }

.pg-topup-banner { background: linear-gradient(135deg, var(--pg-card) 0%, #0A1428 100%); border: 1px solid var(--pg-primary); border-radius: var(--pg-radius-lg); padding: 24px; box-shadow: 0 10px 30px rgba(21, 112, 239, 0.15); }
.pg-topup-banner__title { font-size: 1.2rem; font-weight: 800; color: #FFF; margin-bottom: 16px; }
.pg-topup-banner__btn { display: inline-block; background: var(--pg-primary); color: #FFF; padding: 12px 24px; border-radius: var(--pg-radius-sm); font-weight: 700; font-size: 0.9rem; transition: var(--pg-transition); margin-top: 16px; }
.pg-topup-banner__btn:hover { background: var(--pg-primary-hover); box-shadow: 0 0 15px var(--pg-primary); }

/* STREAMING_CHUNK:Responsive Media Queries... /
@media (max-width: 1200px) {
.pg-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
.pg-layout { grid-template-columns: 1fr; } / Sidebar turun ke bawah */
.pg-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-hero-wrapper { height: 380px; }
.pg-hero__title { font-size: 2.5rem; }
}
@media (max-width: 768px) {
.pg-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-hero-wrapper { height: auto; padding: 60px 0; }
}