/*
Theme Name:  APK Download Pro
Theme URI:   https://yoursite.com
Author:      Your Name
Description: A clean, dark APK download site theme. WPML/Polylang ready, AdSense zones, custom download button. Built for gta5.pk style sites.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: apk-download-pro
Tags:        dark, apk, download, custom-menu, translation-ready, responsive-layout
*/

/* =============================================
   ROOT VARIABLES — Rang/font yahan change karo
============================================= */
:root {
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --accent-glow:   rgba(245,158,11,0.12);
  --bg:            #0a0a0f;
  --bg2:           #12121a;
  --bg3:           #1a1a26;
  --nav-bg:        #07070d;
  --border:        rgba(255,255,255,0.07);
  --text:          #e8e8f0;
  --muted:         #7a7a9a;
  --green:         #10b981;
  --radius:        12px;
  --font-h:        'Rajdhani', sans-serif;
  --font-b:        'Inter', sans-serif;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   NAVIGATION
============================================= */
#site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.site-branding .site-title a {
  font-family: var(--font-h);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Primary Menu */
#primary-menu {
  display: flex;
  gap: 4px;
}
#primary-menu li a {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 7px 14px;
  border-radius: 6px;
  color: var(--muted);
  display: block;
}
#primary-menu li a:hover,
#primary-menu li.current-menu-item a { color: var(--accent); background: var(--bg3); }

/* Language switcher in nav */
.nav-lang { display: flex; align-items: center; gap: 12px; }

.lang-switcher a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  margin-left: 4px;
}
.lang-switcher .lang-current,
.lang-switcher a:hover { border-color: var(--accent); color: var(--accent); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px; transition: .3s;
}

/* =============================================
   ADSENSE ZONES
============================================= */
.ad-zone {
  width: 100%;
  background: var(--bg2);
  border: 1px dashed rgba(245,158,11,0.2);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  position: relative;
}
.ad-zone-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 6px;
  opacity: 0.5;
}

.ad-leaderboard { min-height: 90px; margin: 20px 0; }   /* 728x90 */
.ad-rectangle  { min-height: 250px; margin: 20px 0; }   /* 300x250 */
.ad-banner     { min-height: 60px; margin: 12px 0; }    /* Mobile banner */

/* =============================================
   HERO SECTION
============================================= */
.site-hero {
  padding: 70px 0 50px;
  position: relative;
  overflow: hidden;
}
.site-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: .4;
  animation: gridMove 20s linear infinite;
}
.site-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--bg), transparent);
}
@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.hero-inner {
  position: relative; z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-glow);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 18px;
}
.hero-badge::before { content: '●'; font-size: 8px; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-text h1 {
  font-family: var(--font-h);
  font-size: clamp(42px, 7vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.hero-text h1 .hl { color: var(--accent); }

.hero-sub {
  font-family: var(--font-h);
  font-size: 17px; font-weight: 500;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero-desc { color: var(--muted); max-width: 480px; margin-bottom: 30px; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  font-family: var(--font-h);
  font-size: 18px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 10px;
  border: none; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 24px rgba(245,158,11,.3);
}
.btn-download:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245,158,11,.4);
  color: #000;
}
.btn-download svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-secondary {
  display: inline-flex;
  align-items: center; gap: 10px;
  background: transparent; color: var(--text);
  font-family: var(--font-h);
  font-size: 17px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 24px; border-radius: 10px;
  border: 1px solid var(--border); cursor: pointer;
  transition: all .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* Security badges */
.security-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.security-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.security-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-badge {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--green);
}
.sec-badge::before { content: '✓ '; }

/* App info pills */
.app-info-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.info-pill {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; min-width: 88px; text-align: center;
}
.info-pill .val { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--accent); }
.info-pill .lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }

/* Hero phone mockup */
.hero-image { flex-shrink: 0; width: 210px; position: relative; }
.hero-image::before {
  content: '';
  position: absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,158,11,.2) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.1)} }

.phone-mock {
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}
.phone-mock img { width:100%; height:100%; object-fit:cover; }

/* =============================================
   SECTIONS
============================================= */
.site-section { padding: 60px 0; }
.site-section.bg-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent); margin-bottom: 10px;
}
.section-head h2 {
  font-family: var(--font-h);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.section-head p { color: var(--muted); max-width: 560px; margin: 10px auto 0; }

/* =============================================
   FEATURES GRID
============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.feat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: all .25s; position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover { border-color: rgba(245,158,11,.3); transform: translateY(-4px); background: var(--bg3); }
.feat-card:hover::before { opacity: 1; }
.feat-icon {
  width: 46px; height: 46px;
  background: var(--accent-glow); border: 1px solid rgba(245,158,11,.25);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feat-card h3 {
  font-family: var(--font-h); font-size: 17px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 6px;
}
.feat-card p { color: var(--muted); font-size: 13px; }

/* =============================================
   CONTENT BLOCKS (alternating)
============================================= */
.content-block {
  display: flex; align-items: center; gap: 60px;
  padding: 50px 0; border-top: 1px solid var(--border);
}
.content-block.reverse { flex-direction: row-reverse; }
.content-text { flex: 1; }
.content-text h2 {
  font-family: var(--font-h);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.content-text h2 span { color: var(--accent); }
.content-text p { color: var(--muted); margin-bottom: 10px; }

.content-img {
  flex: 0 0 340px; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.content-img img { width:100%; height:100%; object-fit:cover; }

/* =============================================
   STEPS
============================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.step-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px;
}
.step-num {
  font-family: var(--font-h); font-size: 48px; font-weight: 700;
  color: rgba(245,158,11,.15); line-height: 1; margin-bottom: 12px;
}
.step-card h3 {
  font-family: var(--font-h); font-size: 17px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 8px;
}
.step-card p { color: var(--muted); font-size: 14px; }

/* =============================================
   FAQ
============================================= */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text); font-family: var(--font-b);
  font-size: 15px; font-weight: 600; text-align: left;
  padding: 18px 22px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  flex-shrink: 0; width: 20px; height: 20px;
  border: 1px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: transform .3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); border-color: var(--accent); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  color: var(--muted); font-size: 14px; padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

/* =============================================
   SIDEBAR
============================================= */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.widget-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.widget-box h4 {
  font-family: var(--font-h); font-size: 16px; font-weight: 700;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* =============================================
   SINGLE POST / PAGES
============================================= */
.entry-content { color: var(--muted); line-height: 1.8; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-h); color: var(--text);
  text-transform: uppercase; margin: 28px 0 12px;
}
.entry-content p { margin-bottom: 14px; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 14px; color: var(--muted); }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }

.entry-header { margin-bottom: 30px; }
.entry-title {
  font-family: var(--font-h); font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.entry-meta { color: var(--muted); font-size: 13px; }
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--accent); }

/* =============================================
   DOWNLOAD BOX (Custom widget for APK pages)
============================================= */
.download-box {
  background: var(--bg2); border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius); padding: 28px;
  text-align: center; margin: 30px 0;
}
.download-box .app-icon {
  width: 80px; height: 80px;
  border-radius: 18px; overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
}
.download-box h3 {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  text-transform: uppercase; margin-bottom: 6px;
}
.download-box .version { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.download-box .btn-download { margin: 0 auto; }
.download-box .file-info { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* =============================================
   FOOTER
============================================= */
#site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  padding: 44px 0 24px;
  margin-top: 40px;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.footer-brand .site-title a {
  font-family: var(--font-h); font-size: 22px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}
.footer-desc { color: var(--muted); font-size: 13px; max-width: 260px; margin-top: 8px; }

.footer-col h4 {
  font-family: var(--font-h); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 13px; }
.footer-col a:hover { color: var(--text); }

/* Footer menu (wp_nav_menu) */
#footer-menu { display: flex; flex-direction: column; gap: 8px; }
#footer-menu li a { color: var(--muted); font-size: 13px; }
#footer-menu li a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
}
.footer-bottom p { color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--muted); font-size: 12px; }
.footer-legal a:hover { color: var(--text); }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
}
@media (max-width: 768px) {
  #primary-menu { display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--nav-bg);
    padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--border); }
  #primary-menu.open { display: flex; }
  .hamburger { display: flex; }
  .hero-inner { flex-direction: column; text-align: center; gap: 30px; }
  .hero-image { width: 160px; margin: auto; }
  .btn-group { justify-content: center; }
  .security-row { justify-content: center; }
  .app-info-row { justify-content: center; }
  .content-block { flex-direction: column !important; }
  .content-img { flex: none; width: 100%; }
  .footer-top { flex-direction: column; }
}
