/* Modern Mobile App Storefront CSS */
:root {
  --primary-color: #01875f;
  --primary-hover: #016c4c;
  --bg-color: #ffffff;
  --card-bg: #f8f9fa;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --border-color: #e0e0e0;
  --star-color: #e0a100;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #eef2f5;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 0;
}

/* Device Frame for Desktop Viewing */
.device-frame {
  width: 100%;
  max-width: 450px;
  min-height: 100vh;
  background-color: var(--bg-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow-x: hidden;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .device-frame {
    max-width: 100%;
    box-shadow: none;
  }
}

.mobile-app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Nav Bar */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.search-sparkle-icon {
  color: #1a73e8;
}

.url-display {
  color: #3c4043;
  letter-spacing: 0.2px;
}

.nav-right {
  color: var(--text-secondary);
  cursor: pointer;
}

/* App Main Info Header */
.app-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-main-info {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.app-icon-img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #f0f0f0;
}

.app-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-title-block h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.publisher-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  cursor: pointer;
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* App Stats Row */
.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.star-mini {
  color: var(--text-primary);
  font-size: 12px;
}

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

.stat-divider {
  width: 1px;
  height: 24px;
  background-color: var(--border-color);
}

/* CTA Install Button */
.cta-container {
  margin-top: 4px;
}

.install-btn {
  width: 100%;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(1, 135, 95, 0.3);
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.install-btn:hover, .install-btn:active {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  letter-spacing: 0.3px;
}

.btn-sub-text {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.9;
}

/* Action Links Row */
.actions-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 4px;
}

.action-btn {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Screenshots Carousel */
.screenshots-section {
  margin: 0 -18px;
}

.screenshots-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 18px 10px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  scroll-snap-align: start;
  flex: 0 0 150px;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: 1px solid var(--border-color);
  background-color: #f5f5f5;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Sections */
.info-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.arrow-icon {
  color: var(--text-secondary);
  font-size: 16px;
}

.description-text {
  font-size: 14px;
  color: #3c4043;
  line-height: 1.5;
}

.tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tag-chip {
  background-color: #f1f3f4;
  color: #3c4043;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 16px;
}

.sub-notice {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Data Card */
.data-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.data-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.data-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--text-secondary);
}

.data-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* Ratings & Reviews */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.pill.active {
  background-color: #e6f4ea;
  border-color: #ceebd6;
  color: var(--primary-color);
}

.ratings-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 10px 0;
}

.rating-big-number {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.big-score {
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stars-gold {
  color: var(--primary-color);
  font-size: 14px;
  letter-spacing: 2px;
}

.total-count {
  font-size: 12px;
  color: var(--text-secondary);
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.bar-bg {
  flex: 1;
  height: 10px;
  background-color: #e8eaed;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 5px;
}

/* Reviews List */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ddd;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.stars-row {
  color: var(--primary-color);
  letter-spacing: 1px;
}

.review-comment {
  font-size: 13px;
  color: #3c4043;
  line-height: 1.45;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 24px 0 12px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

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

.footer-copyright {
  font-size: 11px;
  color: #9aa0a6;
}

/* APK Installation Guide Modal Overlay */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.guide-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: popUp 0.3s ease-out;
}

@keyframes popUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.guide-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.downloading-anim {
  width: 54px;
  height: 54px;
  background: #e6f4ea;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  position: relative;
}

.guide-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.guide-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}

.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.step-num {
  background: var(--primary-color);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: #3c4043;
}

.step-body strong {
  font-size: 13px;
  color: var(--text-primary);
}

.step-body code {
  background: #e8eaed;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 11px;
}

.close-guide-btn {
  width: 100%;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

