/* ==========================================================================
   LITEAPKS MODERN THEME - STYLE.CSS
   ========================================================================== */

/* 1. Global Reset & Fonts */
:root {
  --primary: #65b32e;
  --primary-hover: #569b26;
  --primary-light: #f0f8ec;
  --dark-bg: #1a1e21;
  --dark-card: #22272b;
  --text-main: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --bg-page: #f8fafc;
  --star-gold: #f59e0b;
  --border-color: #edf2f7;
  --radius-squircle: 22%;
  --transition: all 0.2s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==========================================================================
   HEADINGS TYPOGRAPHY (H1 TO H6 - FORCED DESIGN)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
  color: #1e293b;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

h4 {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}

h5 {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

h6 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

/* Post / Article Content Area Headings (High Specificity) */
.page-entry-content h1,
.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
  margin-top: 26px !important;
  margin-bottom: 12px !important;
  display: block !important;
}

.page-entry-content h1 {
  font-size: 26px !important;
  font-weight: 800 !important;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
  color: #0f172a !important;
}

.page-entry-content h2 {
  font-size: 21px !important;
  font-weight: 700 !important;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  color: #1e293b !important;
}

.page-entry-content h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.page-entry-content h4 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #334155 !important;
}

.page-entry-content p {
  margin-bottom: 16px;
  color: #334155;
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav-list li {
  display: inline-flex;
  align-items: center;
}

.main-nav-list a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.main-nav-list a:hover,
.nav-link:hover,
.main-nav-list .current-menu-item > a,
.nav-link.active {
  color: var(--primary);
}

.search-bar-wrap {
  position: relative;
  width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  background-color: #f1f5f9;
  transition: var(--transition);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(101, 179, 46, 0.15);
}

/* ==========================================================================
   3. Section Titles
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0;
}

.section-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.section-more:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. Indispensable Banners Slider
   ========================================================================== */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.banner-card {
  position: relative;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  background-size: cover;
  background-position: center;
}

.banner-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}

.banner-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.banner-footer img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-squircle);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.banner-footer-info h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.banner-footer-info span {
  color: var(--text-light);
  font-size: 12px;
}

/* ==========================================================================
   5. App & Game Squircle Grid
   ========================================================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px 14px;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
}

.app-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-squircle);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 8px;
  background: #ffffff;
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #2d3748;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.app-card-rating {
  font-size: 12px;
  font-weight: 500;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 3px;
}

.star-icon {
  color: var(--star-gold);
  font-size: 12px;
}

/* ==========================================================================
   6. Must Have Collection Cards
   ========================================================================== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.collection-card {
  height: 220px;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.collection-card-title {
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.collection-apps-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-apps-row img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-squircle);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.more-count-pill {
  background: rgba(0, 0, 0, 0.5);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ==========================================================================
   7. App Single Page / Hero Details View
   ========================================================================== */
.single-hero-wrap {
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center top;
  color: #ffffff;
  padding: 45px 0 30px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.single-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.single-app-icon {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-squircle);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  background: #222222;
}

.single-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero-info h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.badge-installer {
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}

.app-stats-row {
  display: flex;
  gap: 28px;
  margin: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

.stat-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-light);
}

.btn-download-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 30px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(101, 179, 46, 0.4);
  cursor: pointer;
  border: none;
}

.btn-download-apk:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   8. Screenshots & Comments
   ========================================================================== */
.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 599 / 1024;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #1e293b;
}

.comments-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: 30px;
}

.comments-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  outline: none;
  font-size: 14px;
}

.input-field:focus {
  border-color: var(--primary);
}

.btn-submit {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  float: right;
}

/* ==========================================================================
   9. Footer Dynamic Lists
   ========================================================================== */
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 2.2;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--primary);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==========================================================================
   10. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  h3 { font-size: 16px; }

  .app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
  }
  .main-nav {
    display: none;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .app-icon-wrap {
    width: 68px;
    height: 68px;
  }
  .screenshot-item {
    width: 175px;
  }
}