/* ============================================================
   NGS STORE — CONCEPT 1: APP STORE & STUDIO GRID HOMEPAGE
   100% Exact 1:1 Pixel Match to Concept 1 Mockup
   ============================================================ */

.store-canvas {
  background: #f8fafc;
  padding: 2.25rem 0 4.5rem;
  min-height: calc(100vh - 70px);
}

[data-theme="dark"] .store-canvas {
  background: #070d18;
}

.store-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Common Section Titles */
.store-section {
  margin-bottom: 2.75rem;
}

.store-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.25;
}

[data-theme="dark"] .store-section-title {
  color: #f8fafc;
}

/* ============================================================
   1. SPOTLIGHT CARD (Wide Hero App Banner)
   ============================================================ */
.store-spotlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .store-spotlight-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .store-spotlight-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.35rem 1.5rem;
    gap: 1.25rem;
  }
}

.spotlight-left {
  flex-shrink: 0;
}

.spotlight-icon-wrap {
  display: block;
  text-decoration: none;
}

.spotlight-app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
  display: block;
}

.spotlight-right {
  flex: 1;
  min-width: 0;
}

.spotlight-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.spotlight-app-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-app-name a {
  color: #0f172a;
  text-decoration: none !important;
}

[data-theme="dark"] .spotlight-app-name,
[data-theme="dark"] .spotlight-app-name a {
  color: #f8fafc;
}

.store-version-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

[data-theme="dark"] .store-version-badge {
  background: #1e293b;
  border-color: #334155;
  color: #94a3b8;
}

.spotlight-app-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
  margin: 0.4rem 0 1.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .spotlight-app-desc {
  color: #94a3b8;
}

.spotlight-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.spotlight-meta-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: #64748b;
}

[data-theme="dark"] .spotlight-meta-left {
  color: #94a3b8;
}

.star-gold {
  color: #f59e0b;
  font-size: 0.95rem;
}

.btn-spotlight-dl {
  background: #059669;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 1.6rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-spotlight-dl:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* ============================================================
   2. OFFICIAL DESKTOP APPLICATIONS (Spacious 3-Column Grid)
   ============================================================ */
.store-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.75rem;
}

@media (max-width: 960px) {
  .store-apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .store-apps-grid {
    grid-template-columns: 1fr;
  }
}

.store-app-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.25rem 1.05rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .store-app-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.store-app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

[data-theme="dark"] .store-app-card:hover {
  border-color: #334155;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.store-app-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

.store-app-icon-wrap {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
}

.store-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  display: block;
}

.store-app-title-col {
  flex: 1;
  min-width: 0;
}

.store-app-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.store-app-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.store-app-title a {
  color: #0f172a;
  text-decoration: none !important;
}

[data-theme="dark"] .store-app-title,
[data-theme="dark"] .store-app-title a {
  color: #f8fafc;
}

.store-app-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

.star-rating {
  color: #f59e0b;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.rating-val {
  color: #64748b;
  font-weight: 600;
  font-size: 0.76rem;
}

[data-theme="dark"] .rating-val {
  color: #94a3b8;
}

.store-app-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0.45rem 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

[data-theme="dark"] .store-app-desc {
  color: #94a3b8;
}

.btn-store-download {
  width: 100%;
  height: 38px;
  background: #059669;
  color: #ffffff !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.2);
}

.btn-store-download:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* ============================================================
   3. USER GUIDES & TUTORIALS (Spacious 3-Column Grid)
   ============================================================ */
.store-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

@media (max-width: 960px) {
  .store-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .store-guides-grid {
    grid-template-columns: 1fr;
  }
}

.store-guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .store-guide-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.store-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

[data-theme="dark"] .store-guide-card:hover {
  border-color: #334155;
}

.store-guide-banner-wrap {
  width: 100%;
  height: 155px;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .store-guide-banner-wrap {
  border-bottom-color: #1e293b;
}

.store-guide-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.store-guide-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.store-guide-card:hover .store-guide-banner-img {
  transform: scale(1.02);
}

.store-guide-banner-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.store-guide-content {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-guide-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.store-guide-title a {
  color: #0f172a;
  text-decoration: none !important;
}

[data-theme="dark"] .store-guide-title,
[data-theme="dark"] .store-guide-title a {
  color: #f8fafc;
}

.store-guide-meta-line {
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

[data-theme="dark"] .store-guide-meta-line {
  color: #94a3b8;
}

.meta-dot {
  color: #cbd5e1;
}

.store-guide-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.store-tag-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
}

[data-theme="dark"] .store-tag-pill {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.store-guide-footer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.store-read-more-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: #059669;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.store-read-more-link:hover {
  color: #047857;
  text-decoration: underline !important;
}
