/* Estilos específicos para páginas de Detalhes dos Apps (Showcase) */

.app-hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%);
}

.app-hero-layout {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.app-hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(99, 102, 241, 0.25);
  background: var(--bg-secondary);
  flex-shrink: 0;
  object-fit: cover;
}

.app-hero-info {
  flex: 1;
  min-width: 280px;
}

.app-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.app-hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.app-hero-tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.app-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Screenshots Gallery Showcase */
.showcase-section {
  padding: 3.5rem 0;
}

.gallery-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.screenshots-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) rgba(255, 255, 255, 0.05);
}

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

.screenshots-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-full);
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-full);
}

.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.screenshot-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #11141c;
}

/* Description & Content */
.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding-bottom: 5rem;
}

.app-description-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 1rem;
}

.app-description-box h2,
.app-description-box h3 {
  color: #ffffff;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.app-description-box h2:first-child,
.app-description-box h3:first-child {
  margin-top: 0;
}

.app-description-box p {
  margin-bottom: 1.25rem;
}

.app-description-box ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.app-description-box li {
  margin-bottom: 0.5rem;
}

/* Sidebar Info Card */
.app-meta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 5rem;
}

.meta-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  color: var(--text-muted);
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.meta-value {
  color: var(--text-primary);
  font-weight: 600;
}

.meta-value a {
  color: #818cf8;
  text-decoration: none;
}

.meta-value a:hover {
  text-decoration: underline;
}

.meta-cta-box {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .app-meta-card {
    position: static;
  }
  .app-hero-layout {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .app-badges-row,
  .app-hero-actions {
    justify-content: center;
  }
  .app-hero-icon {
    width: 96px;
    height: 96px;
  }
}
