/*
Theme Name: PC GAMES REPACKED - Full UI (Download page)
Author: Miku
Version: 1.2
Description: Full style for header, home cards and download page (English labels).
*/
/* ===== Variables ===== */
:root{
  --bg: #f7fafc; --surface: #ffffff; --muted: #64748b; --text: #07101a;
  --accent1: #18ddc0; --accent2: #0352d1; --radius-lg: 16px; --radius-md: 12px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,Arial,Helvetica;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.45;}
a{color:inherit;text-decoration:none}
.site-container{max-width:1150px;margin:24px auto;padding:0 18px}
.pg-brand img.custom-logo{height:36px;width:auto;display:block;object-fit:contain;max-height:48px;}
.pg-header{position:sticky;top:0;z-index:999;background:#020617;border-bottom:1px solid rgba(148,163,184,0.08);backdrop-filter: blur(6px);}
.pg-header-inner{max-width:1150px;margin:0 auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.pg-brand{display:flex;align-items:center;gap:12px}
.pg-logo-square{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--accent1),var(--accent2));display:flex;align-items:center;justify-content:center}
.pg-nav{display:flex;align-items:center}
.pg-menu{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.pg-menu li a{color:#fff;font-weight:600;font-size:14px;padding:6px 8px;border-radius:999px;background:rgba(255,255,255,0.02)}
.hero{display:none !important}
.grid,.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:10px}
@media(max-width:980px){.grid,.home-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.grid,.home-grid{grid-template-columns:1fr}}
.card{background:var(--surface);border-radius:12px;padding:14px;border:1px solid rgba(2,6,23,0.04);transition:transform .18s,box-shadow .18s}
.card:hover{transform:translateY(-6px);box-shadow:0 18px 50px rgba(2,6,23,0.14)}
.thumb{border-radius:10px;overflow:hidden;padding:6px;background:linear-gradient(90deg,var(--accent1),var(--accent2))}
.thumb img{width:100%;height:160px;object-fit:cover;display:block;border-radius:6px}
.cat{display:inline-block;padding:6px 10px;border-radius:999px;background:linear-gradient(90deg,var(--accent2),var(--accent1));color:#fff;font-weight:700;font-size:13px}
.card-title{font-size:16px;font-weight:800;margin:8px 0 4px;line-height:1.25;word-wrap:break-word}
.meta,.card-meta{color:var(--muted);font-size:13px;margin-top:6px}
.actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap;align-items:center}
.btn-download-icon{display:inline-flex;align-items:center;gap:10px;padding:12px 20px;border-radius:12px;border:0;background:linear-gradient(90deg,var(--accent1),var(--accent2));color:#fff;font-weight:800;box-shadow:0 12px 30px rgba(3,82,209,0.22)}
.btn-outline{padding:10px 16px;border-radius:10px;border:1px solid rgba(2,6,23,0.06);background:#fff;color:var(--text);font-weight:700}
.download-card{background:var(--surface);border-radius:16px;padding:20px;border:1px solid rgba(2,6,23,0.04);box-shadow:0 24px 50px rgba(2,6,23,0.08);margin:18px 0}
.download-header{display:grid;grid-template-columns:1fr;gap:18px}
@media(min-width:900px){.download-header{grid-template-columns:360px 1fr;align-items:center}}
.download-thumb{padding:8px;border-radius:12px;background:linear-gradient(90deg,var(--accent1),var(--accent2));display:block}
.download-thumb img{display:block;width:100%;height:360px;object-fit:cover;border-radius:10px;border:6px solid #ffffff;box-shadow:0 10px 30px rgba(2,6,23,0.06)}
.download-head-content{padding:6px 0}
.download-title{font-size:26px;font-weight:900;margin:6px 0 10px;line-height:1.05;color:var(--text)}
.post-meta{color:var(--muted);font-size:13px;margin-bottom:12px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.badge{background:#f3f7fb;color:var(--text);padding:8px 12px;border-radius:999px;font-weight:700;font-size:13px;border:1px solid rgba(2,6,23,0.03)}
.download-actions{margin-top:14px;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.btn-download-main{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:16px 28px;border-radius:999px;font-weight:900;font-size:16px;color:#fff;background:linear-gradient(90deg,var(--accent1),var(--accent2));border:0;box-shadow:0 26px 60px rgba(3,82,209,0.14);text-decoration:none}
.btn-secondary{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border-radius:999px;border:1px solid rgba(2,6,23,0.06);background:#fff;color:var(--text);font-weight:700}
.download-tip{color:var(--muted);font-size:13px;margin-top:6px}
.download-mirrors{margin-top:12px;display:flex;flex-direction:column;gap:10px;width:100%}
.mirror-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:10px;background:#fbfdff;border:1px solid rgba(2,6,23,0.04)}
.mirror-left{min-width:0;flex:1}
.mirror-host{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:0.04em}
.mirror-file{font-size:14px;font-weight:700;color:var(--text);margin-top:4px;word-break:break-all;overflow-wrap:anywhere}
.mirror-meta{font-size:12px;color:var(--muted);margin-top:4px}
.side-box{background:#fff;padding:12px;border-radius:12px;border:1px solid rgba(2,6,23,0.04)}
@media (max-width:900px){.download-thumb img{height:260px}.download-title{font-size:22px;text-align:left}.download-actions{align-items:stretch}.btn-download-main{width:100%}}
@media (max-width:640px){.pg-brand img.custom-logo{height:28px}.download-thumb img{height:220px}.download-title{font-size:20px;text-align:center}.download-head-content{text-align:center}.download-actions{align-items:center}.mirror-card{flex-direction:column;align-items:stretch;text-align:left}}
.dl-file,.mirror-file{word-break:break-word;overflow-wrap:anywhere;white-space:normal}
footer.site-footer{padding:18px 0;text-align:center;color:var(--muted);font-size:14px;border-top:1px solid rgba(2,6,23,0.04);margin-top:28px}
/* ===== MOBILE HEADER FIX ===== */
.pg-header {
  padding: 6px 0 !important;
}

.pg-header-inner {
  padding: 6px 14px !important;
  height: auto !important;
}

.pg-brand img.custom-logo {
  max-height: 42px !important;   /* मोबाइल पर perfect */
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Prevent header cutting / clipping */
.pg-header,
.pg-header-inner,
.pg-brand {
  overflow: visible !important;
}

/* iPhone safe area fix */
body {
  padding-top: env(safe-area-inset-top);
}

/* ----- Theme fixes appended by assistant ----- */


/* ========== Top bar header (clean, dark) ========== */
.pg-top-bar {
  width: 100%;
  background: #0b1220;
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(2,6,23,0.45);
}
.pg-top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}
.pg-brand { display: flex; align-items: center; }
.pg-logo { height: 34px; width: auto; display: block; }

/* Mobile hamburger */
.pg-hamburger {
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  color: white;
}
.pg-hamburger-box { display:inline-block; width:24px; height:18px; position:relative; }
.pg-hamburger-inner, .pg-hamburger-inner::before, .pg-hamburger-inner::after {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  position: absolute;
  left: 0;
  transition: transform .2s ease;
}
.pg-hamburger-inner { top: 50%; transform: translateY(-50%); }
.pg-hamburger-inner::before { content:''; top: -8px; }
.pg-hamburger-inner::after  { content:''; top: 8px; }

/* Navigation - hidden on small screens, visible when toggled */
.main-navigation { display: flex; gap: 18px; align-items: center; }
@media (max-width: 880px) {
  .main-navigation { display: none; position: absolute; right: 12px; top: 60px; background: #0b1220; padding: 12px; border-radius: 8px; box-shadow: 0 6px 18px rgba(2,6,23,0.6); }
  .main-navigation.open { display: block; }
}

/* Ensure page content is not hidden under fixed header */
.site-container { padding-top: 64px; }

/* ========== Gradient buttons (theme) ========== */
.btn-gradient, .gradient-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 6px 18px rgba(3,82,209,0.18);
  transition: transform .16s ease, box-shadow .16s ease;
  border: none;
}
.btn-gradient:hover, .gradient-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(3,82,209,0.22); }

/* ========== Alert box matching theme ========== */
.alert-box, .notice-theme {
  background: linear-gradient(90deg, rgba(24,221,192,0.08), rgba(3,82,209,0.06));
  border-left: 4px solid var(--accent2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
}

/* Small logo variant helper */
.pg-logo.small { height: 28px; }

/* Accessibility: focus states */
a:focus, button:focus { outline: 3px solid rgba(3,82,209,0.18); outline-offset: 2px; }

/* Make sure header elements sit above other content */
.pg-top-bar, .main-navigation { position: relative; z-index: 9999; }


/* ---- Move category buttons into mobile hamburger: hide desktop category elements ---- */
.category-card, .cat, .cat-list, .category-buttons, .category-button {
  display: none !important;
}

/* Mobile categories rendered inside main-navigation when menu is open */
.mobile-categories { list-style: none; margin: 6px 0 0 0; padding: 8px 0 12px; display: none; }
.mobile-categories .mobile-cat-item { margin: 6px 0; }
.mobile-categories .mobile-cat-item a { color: #fff; text-decoration: none; padding: 6px 8px; display: block; border-radius:6px; font-weight:600; }

/* Show mobile categories when nav is open (small screens) */
@media (max-width: 880px) {
  .main-navigation.open .mobile-categories { display: block; }
  .mobile-categories .mobile-cat-item a { color: #fff; background: rgba(255,255,255,0.03); }
}



/* ----- Desktop header categories updated styling ----- */

/* Container */
.header-categories {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 18px;
}

/* Pill-style gradient buttons with icon bubble */
.header-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(24,221,192,0.12), rgba(3,82,209,0.12));
  border: 1px solid transparent;
  position: relative;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  box-shadow: 0 6px 14px rgba(3,82,209,0.06), inset 0 1px 0 rgba(255,255,255,0.03);
}

/* Icon bubble */
.header-cat-link .cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  color: #fff;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(2,6,23,0.25);
  flex: 0 0 26px;
}

/* Name text */
.header-cat-link .cat-name { font-size: 13px; line-height:1; }

/* Hover: stronger gradient border and lift */
.header-cat-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(3,82,209,0.12);
  background: linear-gradient(90deg, rgba(24,221,192,0.16), rgba(3,82,209,0.14));
}

/* Active/Focus state */
.header-cat-link:focus, .header-cat-link:active {
  outline: 3px solid rgba(3,82,209,0.12);
  outline-offset: 3px;
}

/* Hide header categories on small screens; show on desktop */
@media (max-width: 880px) {
  .header-categories { display: none !important; }
}
/* Keep hamburger visible on desktop only if you want; currently we keep it hidden for cleaner header */
@media (min-width: 881px) {
  .main-navigation { display: flex !important; position: static; background: transparent; box-shadow: none; padding: 0; }
  .pg-hamburger { display: none; }
}




/* --- Fade text for header category buttons --- */
.header-cat-link .cat-name {
  opacity: 0.78;
  transition: opacity .15s ease;
}
.header-cat-link:hover .cat-name {
  opacity: 1;
}
/* ===== HOME FEATURE BOX LAYOUT FIX ===== */

/* Desktop: 4 feature boxes */
.home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Tablet */
@media (max-width: 980px) {
  .home-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile: 2 feature boxes */
@media (max-width: 640px) {
  .home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== 9:16 FEATURE IMAGE RATIO ===== */
.card .thumb {
  aspect-ratio: 9 / 16;
  padding: 6px;
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ===== FEATURE BOX SIZE SLIGHTLY SMALLER ===== */

/* Reduce overall card padding */
.home-grid .card {
  padding: 10px;
}

/* Slightly smaller thumbnail area */
.home-grid .card .thumb {
  padding: 4px;
}

/* Keep 9:16 ratio but reduce visual height */
.home-grid .card .thumb {
  aspect-ratio: 9 / 13;
}

/* Slightly smaller title */
.home-grid .card .card-title {
  font-size: 12px;
  margin: 6px 0 6px;
}

/* Reduce spacing below meta */
.home-grid .card .meta {
  margin-top: 4px;
  font-size: 12px;
}

/* Compact action buttons spacing */
.home-grid .card .actions {
  margin-top: 8px;
  gap: 8px;
}
/* ===============================
   FIX CARD BUTTON ALIGNMENT
================================ */

/* Force buttons in one clean column */
.card .actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: stretch !important;
}

/* Make both buttons same width */
.card .btn-download-icon,
.card .btn-outline {
  width: 100% !important;
  text-align: center !important;
}

/* ===============================
   HIDE AUTHOR EMAIL (META FIX)
================================ */

/* Hide author completely */
.card .meta {
  display: none !important;
}
/* ===============================
   FOOTER – SMALL GRADIENT BUTTONS
================================ */

.site-footer{
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid rgba(2,6,23,0.06);
  background: #fff;
}

.footer-inner{
  max-width:1150px;
  margin:auto;
  padding:0 18px;
  text-align:center;
}

.footer-buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:10px;
}

.footer-btn{
  padding:6px 12px;
  font-size:12px;
  font-weight:700;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  background:linear-gradient(90deg,#18ddc0,#0352d1);
  transition:transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.footer-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 16px rgba(3,82,209,0.25);
  opacity:.95;
}

.footer-copy{
  font-size:13px;
  color:var(--muted);
}
.page-content {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,0.05);
}

.page-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}

.page-body {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}
