:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #0a84ff;
  --card-bg: #1c1c1e;
  --card-border: #2c2c2e;
  --secondary-text: #8e8e93;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.store-hero {
  padding: 4rem 1.5rem;
  background: linear-gradient(to bottom, #1a1a1a, #000000);
  text-align: center;
  border-bottom: 1px solid #333;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.brand {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-text {
  font-size: 1.5rem;
  color: #fff;
}

.logo-sub {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.store-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0.5rem 0 1rem;
  background: linear-gradient(90deg, #fff, #888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 1.25rem;
  color: var(--secondary-text);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.btn-primary {
  background-color: #fff;
  color: #000;
}

.btn-secondary {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-primary:hover, .btn-secondary:hover {
  opacity: 0.8;
}

/* Main Content */
.store-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.category-section {
  margin-bottom: 3rem;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.category-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.see-all {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Horizontal Scroll Container */
.app-scroll-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  /* Hide scrollbar for cleaner look */
  scrollbar-width: none; 
}
.app-scroll-container::-webkit-scrollbar {
  display: none;
}

/* App Card */
.app-card {
  flex: 0 0 280px;
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--card-border);
  transition: transform 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  background-color: #252527;
}

.app-icon {
  font-size: 3.5rem;
  background: #333;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.app-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-meta {
  color: var(--secondary-text);
  font-size: 0.85rem;
}

.app-rating {
  font-size: 0.9rem;
  color: #8e8e93;
}

.stars {
  color: #ff9500;
}

.reviews {
  font-size: 0.8rem;
  color: #636366;
}

.app-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.app-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-get {
  background-color: rgba(255,255,255,0.1);
  color: var(--accent-color);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-get:hover {
  background-color: rgba(255,255,255,0.2);
}

/* Footer */
.store-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
  border-top: 1px solid #333;
  margin-top: 2rem;
}

/* Detail Page Styles */
.detail-header {
  padding: 1rem 1.5rem 2rem;
  background: linear-gradient(to bottom, #1c1c1e, #000);
}

.nav-container {
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  text-decoration: none;
  font-size: 1.1rem;
}

.app-hero {
  display: flex;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  align-items: flex-start;
}

.app-icon.large {
  width: 118px;
  height: 118px;
  font-size: 5rem;
  border-radius: 26px;
  flex-shrink: 0;
}

.app-hero-info h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.subtitle {
  color: var(--secondary-text);
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.btn-get.primary {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1.8rem;
  font-size: 1rem;
}

.offer-in-app {
  font-size: 0.7rem;
  color: var(--secondary-text);
}

.detail-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.5rem 0;
  border-bottom: 1px solid #333;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-item.border-left {
  border-left: 1px solid #333;
}

.stat-value {
  font-weight: 700;
  font-size: 1.4rem;
  color: #8e8e93;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.content-section {
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
}

.content-section:last-child {
  border-bottom: none;
}

.description {
  line-height: 1.6;
  font-size: 1.05rem;
}

.screenshot-placeholder {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.screen-box {
  width: 220px;
  height: 390px;
  background-color: #1c1c1e;
  border-radius: 12px;
  flex-shrink: 0;
  border: 1px solid #333;
}

.app-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.big-rating {
    font-size: 4rem;
    font-weight: 700;
}
.out-of {
    font-size: 1rem;
    color: var(--secondary-text);
    font-weight: 600;
}

/* Legacy Test API Page Styles */
.testapi-body {
  background-color: #f4f6f8;
  color: #16202a;
}

.testapi-body header.hero {
  background: linear-gradient(135deg, #0a84ff, #7b47ff);
  color: #fff;
  padding: 4rem clamp(1.5rem, 4vw, 6rem);
  text-align: left;
  border-bottom: none;
}

.testapi-body header h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  background: none;
  -webkit-text-fill-color: initial;
}

.testapi-body .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.testapi-body main {
  padding: 2.5rem clamp(1.5rem, 4vw, 6rem);
  background: #fff;
  max-width: none;
  margin: 0;
}

.testapi-body h2, 
.testapi-body h3 {
  color: #16202a;
}

.testapi-body .panel {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background-color: #f8fafc;
  color: #16202a;
}

.testapi-body form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: #16202a;
}

.testapi-body textarea {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  padding: 0.75rem;
  font-family: inherit;
  resize: vertical;
  background-color: #fff;
  color: #16202a;
}

.testapi-body select {
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  margin-bottom: 1rem;
  display: block;
}

.testapi-body .hint {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 1rem;
}

.testapi-body button {
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: #0a84ff;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.testapi-body button.secondary {
  background: transparent;
  color: #0a84ff;
  border: 1px solid #0a84ff;
  margin-right: 0.5rem;
}

.testapi-body pre {
  background-color: #f5f5f7;
  color: #111827;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.testapi-body code {
  background: #e2e8f0;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  color: #0f172a;
}

.testapi-body footer {
  padding: 2rem clamp(1.5rem, 4vw, 6rem);
  text-align: center;
  color: #475569;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
  border: 1px solid #333;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Reviews */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.total-reviews {
  color: var(--secondary-text);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.review-card {
  background-color: #1c1c1e;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #333;
}

.review-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.review-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-date {
  color: var(--secondary-text);
  font-size: 0.8rem;
}

.review-stars {
  color: #ff9500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #e5e5e5;
  margin: 0;
}
