/* ============================================
   YURTS.DEV v2 — Project Detail Page Styles
   Extends the base Monochrome Premium theme
   ============================================ */

@import url('../styles.css');

/* ---------- Project Hero ---------- */
.project-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  min-height: 80vh;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.app-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.project-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--text-primary);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  width: fit-content;
}

.tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
}

.disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Store badges */
.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition), transform var(--transition);
}

.store-badge:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.store-badge.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.web-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: border-color var(--transition), transform var(--transition);
}

.web-badge:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Hero right: phone mockup */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-mockup img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* ---------- Section Common ---------- */
.project-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.project-section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

/* ---------- About Section ---------- */
.project-about {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.project-about h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.project-about p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
}

/* ---------- Features Bento Grid ---------- */
.project-features {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.project-features h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Tech Stack Pills ---------- */
.project-tech {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.project-tech h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-tech .tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #71717a;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
}

.project-tech .tech-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ---------- Screenshots Gallery ---------- */
.project-screenshots {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.project-screenshots h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.screenshots-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.screenshots-scroll .phone-mockup {
  flex-shrink: 0;
  width: 240px;
  scroll-snap-align: start;
}

/* ---------- Discover More Apps ---------- */
.discover-apps {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--border-subtle);
}

.discover-apps h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* App card styles for discover section */
.app-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.app-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

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

.app-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.app-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-card-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-card-description {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.app-card-platforms {
  display: flex;
  gap: 6px;
}

.platform-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-card-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.app-card-price.free {
  color: #4ade80;
}

.app-card-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.app-store-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}

.app-store-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ---------- Project Page Navbar ---------- */
.navbar .nav-back {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15px;
  transition: opacity var(--transition);
}

.navbar .nav-back:hover {
  opacity: 0.8;
}

.navbar .nav-back svg {
  color: var(--text-secondary);
  transition: transform var(--transition);
}

.navbar .nav-back:hover svg {
  transform: translateX(-3px);
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-right .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-right .nav-link:hover {
  color: var(--text-primary);
}

/* ---------- Project Page Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 32px 0;
}

.footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer .footer-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer .footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: auto;
    padding: 120px 24px 60px;
  }

  .hero-right {
    order: -1;
  }

  .phone-mockup {
    width: 240px;
  }

  .project-hero h1 {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 768px) {
  .project-hero {
    padding: 100px 24px 48px;
    text-align: center;
    align-items: center;
  }

  .hero-left {
    align-items: center;
  }

  .tagline {
    text-align: center;
  }

  .store-badges {
    justify-content: center;
  }

  .project-hero h1 {
    font-size: 32px;
  }

  .phone-mockup {
    width: 200px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .discover-grid {
    grid-template-columns: 1fr;
  }

  .project-about h2,
  .project-features h2,
  .project-tech h2,
  .project-screenshots h2,
  .discover-apps h2 {
    font-size: 24px;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-right .nav-link:first-child {
    display: none;
  }

  .screenshots-scroll .phone-mockup {
    width: 200px;
  }

  .footer .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .project-hero h1 {
    font-size: 28px;
  }

  .app-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }

  .phone-mockup {
    width: 180px;
  }

  .feature-card {
    padding: 24px;
  }
}
