:root {
  --play-green: #01875f;
  --play-green-dark: #006c4c;
  --play-green-bg: #e6f4ea;
  --text-main: #202124;
  --text-sub: #5f6368;
  --bg-gray: #f8f9fa;
  --border-color: #e0e0e0;
  --star-gold: #e0a100;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Google Sans", "Padauk", sans-serif;
}

*:not([class*="fa-"]):not(.fa) {
  font-family: "Inter", sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-left i {
  font-size: 20px;
  color: var(--text-sub);
  cursor: pointer;
}

.logo-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-text span {
  color: var(--play-green);
  font-weight: 700;
}

.header-right i {
  font-size: 18px;
  color: var(--text-sub);
  margin-left: 16px;
  cursor: pointer;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
  flex: 1;
}

.app-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app-title-area {
  flex: 1;
}

.app-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 4px;
}

.developer-name {
  color: var(--play-green);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.in-app-purchases {
  color: var(--text-sub);
  font-size: 12px;
}

.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-item {
  text-align: center;
  flex: 1;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: #e0e0e0;
}

.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.pegi-badge {
  border: 1px solid #000;
  padding: 0 4px;
  font-size: 10px;
  font-weight: bold;
}

/* Play Protect Banner */
.play-protect-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--play-green-bg);
  border: 1px solid #ceebd6;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--play-green-dark);
  font-weight: 500;
}

.play-protect-banner i {
  font-size: 18px;
  color: var(--play-green);
}

/* Action Row: Direct APK Button + Share Button */
.action-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-install {
  flex: 1;
  background-color: var(--play-green);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-install:hover {
  background-color: var(--play-green-dark);
}

.btn-share-only {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--play-green);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-share-only:hover {
  background-color: #f0fdf4;
}

/* Screenshot Section */
.screenshots-wrapper {
  margin-bottom: 24px;
}

.screenshot-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.simple-screenshot-img {
  height: 230px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* About Section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
}

.section-arrow {
  color: var(--text-sub);
  cursor: pointer;
}

.app-description {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tags-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-sub);
}

/* Ratings & Reviews */
.reviews-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}

.rating-big {
  text-align: center;
}

.rating-num {
  font-size: 48px;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1;
}

.stars-gold {
  color: var(--star-gold);
  font-size: 12px;
  margin: 4px 0;
}

.total-reviews {
  font-size: 12px;
  color: var(--text-sub);
}

.rating-bars {
  flex: 1;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.bar-bg {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--play-green);
}

.review-card {
  margin-bottom: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #7b1fa2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

.review-helpful {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-helpful {
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 12px;
  background: none;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-helpful.active {
  background-color: #e8f0fe;
  color: #1a73e8;
  border-color: #1a73e8;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: flex-end;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 800px;
  border-radius: 16px 16px 0 0;
  padding: 24px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 500;
}

.close-btn {
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sub);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.info-item-label {
  font-size: 12px;
  color: var(--text-sub);
}

.info-item-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  margin-top: 2px;
}

/* Footer Section */
footer {
  background-color: var(--bg-gray);
  border-top: 1px solid var(--border-color);
  padding: 24px 16px;
  margin-top: 40px;
  font-size: 12px;
  color: var(--text-sub);
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  line-height: 1.5;
  margin-bottom: 12px;
}

.footer-copyright {
  color: #9aa0a6;
}
