/* 3 Patti Loot - APKPure-style */
:root {
  --primary: #00c853;
  --primary-dark: #009624;
  --bg: #f5f5f5;
  --card-bg: #fff;
  --text: #333;
  --text-muted: #666;
  --border: #e0e0e0;
  --star: #ffc107;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }

/* Header - APKPure style */
.site-header {
  background: var(--card-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.logo:hover { color: var(--primary-dark); }
.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

/* Main container */
.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }

/* Page title SEO */
.page-title {
  font-size: 1.75rem;
  margin: 0 0 20px;
  color: var(--text);
}

/* Game grid - APKPure card style */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.game-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg);
}
.game-card-icon svg {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}
.game-card-name {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-rating {
  color: var(--star);
  font-size: .9rem;
  font-weight: 600;
}

/* Game detail page */
.game-detail {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.game-detail-header {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.game-detail-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--bg);
}
.game-detail-icon svg { width: 100%; height: 100%; border-radius: 20px; }
.game-detail-info h1 { margin: 0 0 8px; font-size: 1.75rem; }
.game-detail-meta { color: var(--text-muted); font-size: .95rem; margin-bottom: 16px; }
.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-download:hover { background: var(--primary-dark); }

.article-content {
  margin: 24px 0;
  line-height: 1.7;
}
.article-content img { max-width: 100%; height: auto; }

/* Related games */
.related-section { margin-top: 32px; }
.related-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }

/* Comments */
.comments-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.comments-section h2 { font-size: 1.25rem; margin-bottom: 16px; }
.comment-form { margin-bottom: 24px; }
.comment-form textarea { width: 100%; min-height: 80px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }
.comment-form input[type="text"] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; width: 200px; margin-right: 8px; margin-bottom: 8px; }
.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-author { font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.comment-date { font-size: .85rem; color: var(--text-muted); }
.comment-content { margin-top: 6px; }

/* Footer - SEO links */
.site-footer {
  background: #263238;
  color: #b0bec5;
  margin-top: 48px;
  padding: 40px 0 24px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0 0 12px;
}
.footer-col a {
  display: block;
  color: #b0bec5;
  text-decoration: none;
  font-size: .9rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #37474f;
  font-size: .85rem;
}

/* SEO links list in footer */
.seo-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; }
.seo-links a { color: var(--text-muted); text-decoration: none; font-size: .9rem; }
.seo-links a:hover { color: var(--primary); }

/* Utility */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
