/* ==========================================================
   GOOGLE PLAY STORE STYLE DESIGN SYSTEM - OLAA COIN
   Official Light Theme (Clean White & Material You UX)
   ========================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-surface-variant: #e8eaed;
  --bg-subtle: #f1f3f4;
  
  --play-green: #01875f;
  --play-green-hover: #017552;
  --play-green-active: #016244;
  
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-tertiary: #80868b;
  
  --gold-star: #e37400;
  --border-subtle: #f1f3f4;
  --border-light: #dadce0;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* ==========================================================
   GOOGLE PLAY NAVBAR (WHITE THEME)
   ========================================================== */
.play-navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left {
  display: flex;
  align-items: center;
}

.play-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.play-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #5f6368;
  letter-spacing: -0.2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #01875f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ==========================================================
   MAIN APP CONTENT LAYOUT
   ========================================================== */
.main-content {
  padding: 12px 0 60px;
}

.app-detail-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

/* App Header */
.app-header-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0 16px;
}

.app-icon-wrapper {
  width: 88px;
  height: 88px;
  border-radius: 20%;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(60, 64, 67, 0.2), 0 1px 2px rgba(60, 64, 67, 0.15);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.app-header-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.app-developer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.dev-name {
  color: var(--play-green);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.dev-name:hover {
  text-decoration: underline;
}

.verified-check {
  color: var(--play-green);
  font-size: 12px;
}

.app-tags {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ==========================================================
   STATS HORIZONTAL ROW
   ========================================================== */
.stats-scroll-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 14px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin: 12px 0 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.stat-main {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

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

.stat-dl-icon {
  font-size: 14px;
  color: var(--play-green);
}

.stat-badge {
  border: 1px solid var(--text-secondary);
  font-size: 11px;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

/* ==========================================================
   INSTALL ACTION & SECONDARY BUTTONS
   ========================================================== */
.install-action-section {
  margin-bottom: 28px;
}

.play-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background-color: var(--play-green);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 3px rgba(1, 135, 95, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.play-install-btn:hover {
  background-color: var(--play-green-hover);
  box-shadow: 0 2px 6px rgba(1, 135, 95, 0.4);
}

.play-install-btn:active {
  background-color: var(--play-green-active);
  transform: scale(0.99);
}

.btn-text-content {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.install-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.1s linear;
  z-index: 1;
}

.action-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.secondary-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--play-green);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: rgba(1, 135, 95, 0.05);
  border-color: var(--play-green);
}

/* Play Protect Banner */
.play-protect-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edf7f2;
  border: 1px solid #cce8db;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-top: 18px;
}

.protect-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(1, 135, 95, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--play-green);
  font-size: 18px;
  flex-shrink: 0;
}

.protect-info {
  display: flex;
  flex-direction: column;
}

.protect-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--play-green);
}

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

/* ==========================================================
   APP PREVIEW / SCREENSHOT CAROUSEL
   ========================================================== */
.media-carousel-section {
  margin-bottom: 28px;
}

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

.section-title-row h2 {
  font-family: 'Google Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.screenshot-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.screenshot-carousel::-webkit-scrollbar {
  height: 4px;
}

.screenshot-carousel::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

.screen-card {
  min-width: 220px;
  max-width: 220px;
  height: 280px;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-light);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-1 {
  background: linear-gradient(145deg, #f0f7ff, #e3effd);
  border-color: #c7defd;
}

.card-2 {
  background: linear-gradient(145deg, #fef9ed, #fdf1d6);
  border-color: #f7e1b0;
}

.card-3 {
  background: linear-gradient(145deg, #f0f9f4, #dff2e7);
  border-color: #bce5ce;
}

.screen-card-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.screen-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screen-logo-mini {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.screen-icon {
  font-size: 42px;
  margin-bottom: 14px;
  color: #1a73e8;
}

.card-2 .screen-icon {
  color: var(--gold-star);
}

.card-3 .screen-icon {
  color: var(--play-green);
}

.screen-art h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.screen-art p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================
   ABOUT THIS APP
   ========================================================== */
.about-section {
  margin-bottom: 28px;
}

.about-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.features-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.feature-pill {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.whats-new-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.whats-new-box h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.version-tag {
  font-size: 12px;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 10px;
}

.whats-new-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.whats-new-list li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.whats-new-list li i {
  color: var(--play-green);
  font-size: 11px;
}

/* ==========================================================
   DATA SAFETY SECTION
   ========================================================== */
.data-safety-section {
  margin-bottom: 28px;
}

.safety-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.safety-cards-list {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.safety-card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.safety-card-item:last-child {
  border-bottom: none;
}

.safety-card-item i {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 2px;
}

.safety-card-item strong {
  font-size: 13px;
  color: var(--text-primary);
  display: block;
}

.safety-card-item p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================
   RATINGS & REVIEWS
   ========================================================== */
.reviews-section {
  margin-bottom: 28px;
}

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

.ratings-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 12px 0 20px;
}

.ratings-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.big-score {
  font-family: 'Google Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.stars-gold {
  color: var(--gold-star);
  font-size: 13px;
  margin: 4px 0;
  letter-spacing: 2px;
}

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

.ratings-bars {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.bar-row span {
  font-size: 11px;
  color: var(--text-secondary);
  width: 8px;
}

.bar-track {
  flex-grow: 1;
  height: 6px;
  background: var(--bg-surface-variant);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: var(--play-green);
  border-radius: var(--radius-pill);
}

/* User Reviews Cards */
.user-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.user-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.user-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

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

.review-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-gold-sm {
  color: var(--gold-star);
  font-size: 11px;
  letter-spacing: 1px;
}

.review-date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================
   APP SPECS TABLE
   ========================================================== */
.app-specs-section {
  border-top: 1px solid var(--border-light);
  padding-top: 18px;
  margin-bottom: 30px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.spec-name {
  color: var(--text-secondary);
}

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

/* ==========================================================
   STICKY PLAY STORE BOTTOM BAR (WHITE THEME MOBILE)
   ========================================================== */
.play-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.sticky-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-thumb {
  width: 42px;
  height: 42px;
  border-radius: 20%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

.sticky-info {
  flex-grow: 1;
}

.sticky-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.sticky-install-btn {
  background-color: var(--play-green);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(1, 135, 95, 0.3);
}

/* ==========================================================
   EASY GUIDE MODAL POPUP (WHITE THEME)
   ========================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon {
  color: var(--play-green);
  font-size: 20px;
}

.modal-header h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.install-step-item {
  display: flex;
  gap: 14px;
  background: var(--bg-surface);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.step-num-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--play-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.step-desc h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.step-desc p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.modal-footer {
  text-align: center;
}

.modal-action-btn {
  display: block;
  width: 100%;
  background: var(--play-green);
  color: #fff;
  padding: 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}

.modal-action-btn:hover {
  background: var(--play-green-hover);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #323232;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  z-index: 2000;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer (White theme) */
.play-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 0 40px;
  background: var(--bg-surface);
}

.footer-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

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

.footer-links a:hover {
  color: var(--play-green);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ==========================================================
   MOBILE VIEW ADAPTATIONS
   ========================================================== */
@media (max-width: 600px) {
  .app-icon-wrapper {
    width: 76px;
    height: 76px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .play-sticky-bar {
    display: block;
  }
  
  body {
    padding-bottom: 60px;
  }
  
  .action-buttons-row {
    justify-content: space-between;
  }
  
  .secondary-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 12px;
  }
}
