/* Google Fonts */
@font-face {
  font-family: 'Google Sans';
  src: url('https://ext.same-assets.com/2518469434/211400433.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('https://ext.same-assets.com/2518469434/1095138.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('https://ext.same-assets.com/2518469434/3896945600.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

:root {
  --primary-color: #01875f;
  --text-color: #202124;
  --secondary-text: #5f6368;
  --border-color: #dadce0;
  --background-color: #fafafa;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-height: 100vh;
}

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

.container {
  padding: 0 16px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

.google-play-logo {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

.logo span {
  font-family: 'Google Sans', sans-serif;
  font-size: 20px;
  color: #5f6368;
}

.search-icon, .help-icon, .profile-icon {
  width: 24px;
  height: 24px;
  margin-left: 16px;
  cursor: pointer;
}

/* App Info */
.app-info {
  padding: 16px;
}

.app-header {
  display: flex;
  margin-bottom: 16px;
}

.app-icon {
  width: 64px;
  height: 64px;
  margin-right: 16px;
  border-radius: 12px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-logo {
  width: 80%;
  height: auto;
}

.app-header-info {
  flex: 1;
}

.app-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
}

.developer {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 2px;
}

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

.rating-section {
  display: flex;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
}

.rating-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 24px;
  margin-bottom: 8px;
}

.rating-value {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.star {
  color: #e67700;
  margin-right: 4px;
}

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

.classification {
  display: flex;
  align-items: center;
}

.classification img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.download-btn {
  display: block;
  background-color: var(--primary-color);
  color: white;
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 4px;
  margin: 16px 0;
  text-align: center;
  width: 100%;
}

/* Screenshots */
.screenshots {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 0;
  margin-bottom: 16px;
  scrollbar-width: none; /* Firefox */
}

.screenshots::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.screenshot {
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.screenshot img {
  height: 280px;
  width: auto;
  object-fit: contain;
}

/* App description */
.app-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.last-update {
  font-size: 12px;
  color: var(--secondary-text);
  margin-bottom: 16px;
}

/* Tags */
.tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  background-color: #f1f3f4;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
}

/* Ratings detail */
.ratings-detail {
  margin-bottom: 24px;
}

.big-rating {
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 4px;
}

.ratings-stars {
  color: #e67700;
  margin-bottom: 12px;
  font-size: 14px;
}

.ratings-bars {
  margin-bottom: 12px;
}

.rating-bar {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.rating-number {
  width: 12px;
  text-align: right;
  margin-right: 8px;
  font-size: 12px;
}

.bar-container {
  flex-grow: 1;
  background-color: #e0e0e0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  max-width: 280px;
}

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

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

/* Reviews */
.reviews {
  margin-bottom: 24px;
}

.review {
  display: flex;
  margin-bottom: 12px;
}

.reviewer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #9e9e9e;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.reviewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  flex-grow: 1;
}

.reviewer-name {
  font-weight: 500;
  margin-bottom: 2px;
  font-size: 14px;
}

.review-rating {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--secondary-text);
  margin-bottom: 6px;
}

.review-text {
  font-size: 13px;
  margin-bottom: 4px;
}

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

/* Footer */
footer {
  background-color: white;
  padding: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 12px;
}

.footer-section {
  margin-bottom: 16px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.footer-link {
  margin-right: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--secondary-text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom a {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--secondary-text);
}

.lang-selector {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.lang-flag {
  width: 16px;
  height: 10px;
  margin-right: 8px;
}
