/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.47059;
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #d2d2d7;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.nav {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: 44px;
}

.logo {
  font-size: 21px;
  font-weight: 600;
  color: #1d1d1f;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: #424245;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1d1d1f;
}

.search-icon {
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Store Header */
.store-header {
  background: #f5f5f7;
  border-bottom: 1px solid #d2d2d7;
  color: #1d1d1f;
}

.store-title {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 8px;
}

.store-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #86868b;
}

/* App Section */
.app-section {
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 48px;
}

.app-icon {
  width: 175px;
  height: 175px;
  border-radius: 38px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.app-details {
  flex: 1;
}

.app-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-badge {
  background-color: #f5f5f7;
  color: #86868b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.app-developer {
  color: #0066cc;
  font-size: 17px;
  margin-bottom: 12px;
  text-decoration: none;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars {
  color: #ff9500;
  font-size: 14px;
}

.rating-text {
  color: #86868b;
  font-size: 12px;
}

.app-price {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 24px;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cta-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
}

.cta-button.secondary:hover {
  background: #667eea;
  color: white;
}

/* Sections */
.section {
  margin-bottom: 64px;
}

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

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 16px;
}

.section-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 17px;
  font-weight: 400;
}

.section-link:hover {
  text-decoration: underline;
}

/* Screenshots */
.screenshots {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
}

.screenshot {
  width: 320px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
  object-fit: cover;
}

.description {
  font-size: 17px;
  line-height: 1.5;
  color: #1d1d1f;
  margin-bottom: 16px;
}

/* Version Info */
.version-info {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.version-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.version-number {
  color: #86868b;
  font-size: 14px;
  margin-bottom: 16px;
}

.version-description {
  font-size: 14px;
  line-height: 1.4;
  color: #1d1d1f;
}

/* Rating Section */
.rating-section {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 32px;
}

.rating-score {
  text-align: center;
}

.rating-number {
  font-size: 64px;
  font-weight: 300;
  color: #1d1d1f;
  line-height: 1;
}

.rating-stars {
  color: #ff9500;
  font-size: 16px;
  margin: 8px 0;
}

.rating-count {
  color: #86868b;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .app-section {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .app-title {
    font-size: 32px;
    justify-content: center;
  }

  .screenshots {
    gap: 16px;
  }

  .screenshot {
    width: 280px;
    height: 175px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .rating-section {
    flex-direction: column;
    gap: 24px;
  }

  .store-title {
    font-size: 24px;
  }

  .store-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .app-title {
    font-size: 28px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .screenshots {
    padding: 0 16px;
  }

  .screenshot {
    width: 250px;
    height: 156px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.cta-button:focus,
.nav-links a:focus,
.section-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .cta-buttons {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .store-header {
    background: none;
    color: black;
  }
}

/* Reviews Section */
.reviews-section {
  margin-bottom: 32px;
}

.review-item {
  padding: 16px 0;
  border-bottom: 1px solid #d2d2d7;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.review-stars {
  color: #ff9500;
  font-size: 14px;
}

.review-meta {
  text-align: right;
  font-size: 12px;
  color: #86868b;
}

.reviewer-name {
  display: block;
  font-weight: 500;
  color: #1d1d1f;
}

.review-date {
  display: block;
  margin-top: 2px;
}

.review-title {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.review-text {
  font-size: 14px;
  line-height: 1.4;
  color: #1d1d1f;
}

/* Privacy Section */
.privacy-info {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.privacy-description {
  font-size: 14px;
  line-height: 1.4;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.privacy-section {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.privacy-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.privacy-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.privacy-content p {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 12px;
}

.privacy-list {
  list-style: none;
  margin-bottom: 16px;
}

.privacy-list li {
  font-size: 14px;
  color: #1d1d1f;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: #f5f5f7;
  border-radius: 8px;
  font-size: 14px;
  color: #1d1d1f;
}

.privacy-icon-small {
  font-size: 16px;
}

.privacy-footer {
  font-size: 12px;
  color: #86868b;
  line-height: 1.4;
}

.privacy-footer a {
  color: #0066cc;
  text-decoration: none;
}

/* Information Section */
.info-grid {
  background-color: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f7;
  font-size: 14px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #86868b;
  flex: 1;
}

.info-value {
  color: #1d1d1f;
  text-align: right;
  flex: 1;
}

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

.info-links a {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
}

.info-links a:hover {
  text-decoration: underline;
}

/* Developer Apps Section */
.developer-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.dev-app {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.dev-app:hover {
  transform: translateY(-2px);
}

.dev-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  flex-shrink: 0;
}

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

.dev-app-name {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.dev-app-category {
  font-size: 14px;
  color: #86868b;
}

.rating-breakdown {
  flex: 1;
}

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

.rating-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #86868b;
}

.bar-container {
  flex: 1;
  height: 4px;
  background-color: #f5f5f7;
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #ff9500;
  border-radius: 2px;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
  .review-header {
    flex-direction: column;
    gap: 8px;
  }

  .review-meta {
    text-align: left;
  }

  .privacy-section {
    flex-direction: column;
    gap: 12px;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
  }

  .info-value {
    text-align: left;
  }

  .info-links {
    flex-direction: column;
    gap: 12px;
  }

  .developer-apps {
    grid-template-columns: 1fr;
  }

  .rating-section {
    flex-direction: column;
    gap: 24px;
  }
}
