/* Hub project detail pages & cube-store hub nav overlay */

.hub-back-nav {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  color: #1D1D1F;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.hub-back-nav:hover,
.hub-back-nav:focus-visible {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  outline: none;
}

.hub-back-nav svg {
  width: 16px;
  height: 16px;
}

/* Project detail layout */
.page-hero {
  padding: 100px 24px 48px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.page-hero-image {
  width: min(100%, 520px);
  margin: 0 auto 32px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #fff;
}

.page-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero-image.icon-frame {
  width: 140px;
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.page-hero-image.icon-frame img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 16px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.page-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-primary-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  cursor: pointer;
}

.btn-primary-app:hover,
.btn-primary-app:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary-app svg {
  width: 18px;
  height: 18px;
}

.btn-secondary-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 200ms ease;
  cursor: pointer;
}

.btn-secondary-app:hover,
.btn-secondary-app:focus-visible {
  background: #fff;
  outline: none;
}

.btn-accent-cardswitch { background: linear-gradient(135deg, #667eea, #764ba2); box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35); }
.btn-accent-payment { background: linear-gradient(135deg, #0EA5E9, #0284C7); box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35); }
.btn-accent-car { background: linear-gradient(135deg, #334155, #1E293B); box-shadow: 0 8px 24px rgba(51, 65, 85, 0.35); }
.btn-accent-map { background: linear-gradient(135deg, #EAB308, #F97316); box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35); color: #1D1D1F; }

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.feature-item {
  padding: 24px;
  border-radius: 20px;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.content-block p,
.content-block li {
  color: var(--text-secondary);
  line-height: 1.75;
}

.content-block ul {
  padding-left: 20px;
  margin-top: 12px;
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.screenshot-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.screenshot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.screenshot-card figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

/* Index card preview images */
.bento-card .card-preview {
  width: 100%;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.bento-card .card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bento-card[data-accent="payment"] .card-preview {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(56, 189, 248, 0.08));
}

.bento-card[data-accent="car"] .card-preview {
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.12), rgba(71, 85, 105, 0.08));
}

.bento-card[data-accent="map"] .card-preview {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15), rgba(249, 115, 22, 0.08));
}

.bento-card .card-preview.icon-only img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hub-promo-banner {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.hub-promo-banner a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--card-radius);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow var(--transition);
}

.hub-promo-banner a:hover,
.hub-promo-banner a:focus-visible {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  outline: none;
}

.hub-promo-banner .promo-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-promo-banner .promo-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.hub-promo-banner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hub-promo-banner p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .feature-grid,
  .screenshot-row {
    grid-template-columns: 1fr;
  }
}
