/* KHOMOD.COM - Light Mode Blogger APK Template Clone */
:root {
  --primary: #204ecf;
  --primary-hover: #183da8;
  --red: #dc2626;
  --red-hover: #b91c1c;
  --apk-green: #4caf50;
  --mod-orange: #ff6900;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-pill: #f1f3f5;
  --border: #e5e7eb;
  --text-main: #1e1e1e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

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

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

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

/* Top Announcement Bar */
.top-bar {
  background: #e8f0fe;
  color: #3c4043;
  font-size: 12px;
  padding: 7px 16px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #d2e3fc;
}

.top-bar-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #5f6368;
  cursor: pointer;
}

/* Sticky Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand {
  font-size: 18px;
  font-weight: 800;
  color: #1e1e1e;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.search-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #4b5563;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-btn:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

/* Language Flag Dropdown (Matches Screenshot) */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover {
  background: #e2e8f0;
}

.lang-btn svg.chevron {
  transition: transform 0.2s;
}

.lang-switch.open .lang-btn svg.chevron {
  transform: rotate(180deg);
}

.flag-svg {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  flex-shrink: 0;
  display: block;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 170px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  z-index: 200;
}

.lang-switch.open .lang-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  transition: background 0.15s;
}

.lang-option:hover {
  background: #f8fafc;
}

.lang-option.active {
  background: #eff6ff;
  color: #2563eb;
}

.lang-option-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Search Bar Dropdown */
.search-bar-box {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  display: none;
}

.search-bar-box.open {
  display: block;
}

.search-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

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

.search-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Section Headers */
.section-block {
  padding: 28px 0 12px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #d1d5db;
  margin-left: 6px;
}

.section-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Editor's Choice Horizontal Icon Rows */
.icon-row-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.icon-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.icon-row::-webkit-scrollbar {
  display: none;
}

.icon-card {
  flex: 0 0 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s;
}

.icon-card:hover {
  transform: translateY(-3px);
}

.icon-card img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 6px;
  background: #f3f4f6;
}

.icon-card span {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  width: 82px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-next-btn {
  position: absolute;
  right: 0;
  top: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #374151;
}

/* Category Filter Pills */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}

.pill-btn {
  background: var(--bg-pill);
  border: 1px solid transparent;
  color: #4b5563;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.pill-btn:hover {
  background: #e5e7eb;
}

.pill-btn.active {
  background: #e8f0fe;
  color: var(--primary);
  border-color: #c2d7fa;
}

/* 3-Column Compact App Cards Grid */
.apps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compact-card {
  background: var(--bg-card);
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.compact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #d1d5db;
}

.compact-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.compact-info {
  flex: 1;
  min-width: 0;
}

.compact-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.compact-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.badges-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.badge-apk {
  background: var(--apk-green);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-mod {
  background: var(--mod-orange);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-gplay {
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin: 20px 0 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Detail Page (Image 2) */
.detail-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-header img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail-header h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
}

.detail-header h1 .ver-highlight {
  color: #16a34a;
}

.detail-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-blue-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 24px;
}

.btn-blue-full:hover {
  background: var(--primary-hover);
}

.btn-red-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--red);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin: 24px 0;
}

.btn-red-full:hover {
  background: var(--red-hover);
}

.btn-green-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #16a34a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin: 18px 0;
}

.btn-green-full:hover {
  background: #15803d;
}

/* Specs 2-col Grid (Image 2) */
.specs-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  padding: 18px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 12px;
  color: var(--text-muted);
}

.spec-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.spec-val.dark {
  color: #111827;
}

/* Banner & Article */
.post-banner {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
  margin: 18px 0;
}

.article-body h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 10px;
  color: #111827;
}

.article-body p {
  color: #374151;
  margin-bottom: 14px;
  font-size: 15px;
}

.article-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
  color: #374151;
}

.article-body li {
  margin-bottom: 6px;
}

/* Available Versions Box (Image 2 & 3) */
.versions-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.version-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.2s;
}

.version-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}

.version-card img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
}

/* Accordions (Image 3 & 4) */
.accordion-group {
  margin-bottom: 24px;
}

.accordion-item {
  background: #f3f4f6;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.accordion-body {
  padding: 0 18px 14px;
  font-size: 13px;
  color: #4b5563;
  display: none;
}

.accordion-item.open .accordion-body {
  display: block;
}

/* Green Info Box (Image 4) */
.info-green-box {
  background: #dff0d8;
  border: 1px solid #d0e9c6;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 18px 0 26px;
  font-size: 13px;
  color: #2b542c;
}

.info-green-box p {
  margin-bottom: 8px;
}

.info-green-box p:last-child {
  margin-bottom: 0;
}

/* Recommended Box (Image 3 & 4) */
.recommended-box {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  margin: 28px 0;
}

.apps-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Footer */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 44px 0 28px;
  margin-top: 50px;
  color: #4b5563;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

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

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .apps-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .apps-grid-3,
  .apps-grid-2,
  .versions-grid-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
