/*
Theme Name: PKGames Final
Theme URI: https://pkgames.com.pk
Author: PKGames / ChatGPT
Description: Play-Store-like lightweight theme — top motion slider, category-wise 3x3 grids, 150px thumbnails, Pakistan color scheme.
Version: 1.0.0
Text Domain: pkgames-final
Tags: lightweight, responsive, grid, pakistani
*/
:root{
  --pk-green:#0a7a3a;
  --primary:#366aa0; /* dull blue */
  --bg:#ffffff;
  --text:#06121a;
  --muted:#6b7280;
  --card:#ffffff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--bg); color:var(--text); line-height:1.5;-webkit-font-smoothing:antialiased;}
a{color:var(--pk-green);text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:16px}
.header{position:sticky;top:0;background:rgba(255,255,255,0.98);border-bottom:1px solid #eef2f6;z-index:80}
.header-inner{display:flex;align-items:center;gap:12px;padding:12px 16px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;font-size:20px}
.logo{width:46px;height:46px;border-radius:10px;overflow:hidden}
.search{flex:1}
.search input{width:100%;padding:10px;border-radius:24px;border:1px solid #eef2f6;background:#fff}

/* Top motion slider (CSS marquee-like) */
.top-slider{margin:18px 0;border-radius:12px;overflow:hidden;border:1px solid #eef2f6;background:linear-gradient(90deg, rgba(10,122,58,0.03), rgba(58,110,165,0.03));padding:10px}
.slider-wrap{display:flex;gap:12px;animation:slide 20s linear infinite}
.slider-item{flex:0 0 260px;background:#fff;border-radius:8px;overflow:hidden;border:1px solid #f0f4fa;display:flex;flex-direction:column}
.slider-thumb{height:140px;overflow:hidden}
.slider-thumb img{width:100%;height:100%;object-fit:cover}
.slider-body{padding:10px;font-size:14px;color:var(--muted)}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Category grid: 3 columns x up to 3 rows (max 9 posts) */
.cat-section{margin:22px 0}
.cat-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
@media(max-width:900px){ .cat-grid{grid-template-columns:repeat(2,1fr)} }
@media(max-width:480px){ .cat-grid{grid-template-columns:repeat(1,1fr)} }

.card-small{background:var(--card);border:1px solid #eef2f6;border-radius:10px;overflow:hidden;display:flex;gap:10px;align-items:center;padding:10px}
.thumb-150{width:150px;height:150px;flex:none;border-radius:8px;object-fit:cover;display:block}
.card-info{flex:1;display:flex;flex-direction:column;gap:6px}
.card-info .title{font-weight:700;font-size:15px;line-height:1.2}
.meta-row{font-size:13px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-block;padding:8px 12px;border-radius:8px;border:1px solid #eef2f6;background:#fff;font-weight:700;text-align:center}
.btn.primary{background:var(--pk-green);color:#fff;border-color:transparent}

/* Single post */
.post{max-width:920px;margin:18px auto;padding:16px;background:#fff;border-radius:12px;border:1px solid #eef2f6}
.post-header{display:flex;gap:16px;align-items:flex-start}
.post-thumb{width:150px;height:150px;border-radius:12px;overflow:hidden;flex:none}
.post-thumb img{width:100%;height:100%;object-fit:cover}
.details-table{width:100%;border-collapse:collapse;margin-top:12px}
.details-table td{padding:8px;border-top:1px solid #f6f8fb;font-size:14px;color:#223044}
.footer{margin-top:30px;padding:18px 0;border-top:1px solid #f6f8fb;color:var(--muted);font-size:14px;text-align:center}

/* small helpers */
.kv{font-weight:700;color:var(--text)}
