/* ==========================================================================
   Product Detail Page — Shared Styles
   Used by: BarNoR, Toukan, Bonvue, Oyako Games, Toukan CLI (ja/en)
   Import in frontmatter: import '../../styles/product-detail.css';
   ========================================================================== */

/* Page Header
   ========================================================================== */

.page-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.page-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  color: var(--gold);
}

.page-header .subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

/* Content Area
   ========================================================================== */

.product-detail-content {
  max-width: 800px;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
}

.intro p {
  margin: 0;
}

.product-detail-content h2 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.product-detail-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.product-detail-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--gold);
}

.price-tag {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

/* Features List
   ========================================================================== */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.features li:last-child {
  border-bottom: none;
}

.features strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.features span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Use Cases
   ========================================================================== */

.use-cases {
  padding-left: 1.5rem;
  margin: 0;
}

.use-cases li {
  padding: 0.5rem 0;
  line-height: 1.6;
  color: var(--text-primary);
}

/* Plan Comparison Table
   ========================================================================== */

.plan-comparison {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.plan-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.plan-comparison th,
.plan-comparison td {
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border-card);
}

.plan-comparison thead th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--gold);
}

.plan-comparison tbody th {
  font-weight: normal;
  color: var(--text-primary);
}

.plan-comparison td:first-child,
.plan-comparison th:first-child {
  text-align: left;
}

.plan-comparison tbody tr:last-child th,
.plan-comparison tbody tr:last-child td {
  border-bottom: none;
}

/* App / Site Info
   ========================================================================== */

.app-info {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.app-info dl {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.8rem 1rem;
  margin: 0;
}

.app-info dt {
  font-weight: 600;
  color: var(--gold);
}

.app-info dd {
  margin: 0;
  color: var(--text-primary);
}

.app-info a {
  color: var(--gold-hover);
  text-decoration: none;
}

.app-info a:hover {
  text-decoration: underline;
}

/* CTA Section
   ========================================================================== */

.cta-section {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-store-badge {
  height: 48px;
  width: auto;
  transition: opacity 0.3s;
}

.app-store-badge:hover {
  opacity: 0.8;
}

.btn-primary {
  background-color: var(--gold);
  color: white;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #cf6b1c;
}

/* Related Links
   ========================================================================== */

.links-section {
  margin-top: 3rem;
}

.links-section h2 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin-bottom: 1rem;
}

.link-item {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--text-secondary);
  color: var(--gold);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.link-item:hover {
  background-color: var(--gold-hover);
  color: white;
  transform: translateX(4px);
}

/* Responsive
   ========================================================================== */

@media (max-width: 600px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .app-info dl {
    grid-template-columns: 1fr;
  }

  .app-info dt {
    margin-top: 0.5rem;
  }

  .plan-comparison {
    overflow-x: auto;
  }
}
