/* LANPlayer Guides - Additional Styles */
/* ガイド一覧ページとガイド詳細ページ専用のスタイル */

/* Guide Cards Grid */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.guide-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
}

.guide-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.guide-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.guide-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.guide-card-status {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-accent);
}

.guide-card-status.coming-soon {
  color: var(--color-muted);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.625rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 3px solid var(--color-surface);
  background: var(--color-accent);
  z-index: 1;
}

.timeline-marker.android {
  background: #3ddc84;
}

.timeline-marker.web {
  background: #2f80ed;
}

.timeline-marker.windows {
  background: #0078d4;
}

.timeline-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  margin-bottom: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-content li {
  margin-bottom: 0.5rem;
}

.timeline-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.timeline-content a:hover {
  text-decoration: underline;
}

/* Link Grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.link-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, background 0.2s;
}

.link-card:hover {
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.link-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.link-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* Platform Tabs (for guide detail pages) */
.platform-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--color-border);
}

.platform-tab {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.platform-tab:hover {
  color: var(--color-text);
}

.platform-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
}

/* Step-by-Step Instructions */
.steps {
  counter-reset: step-counter;
  margin: 2rem 0;
}

.step {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2.5rem;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.step h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
}

.step p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Screenshot Placeholder */
.screenshot {
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  color: var(--color-muted);
  font-style: italic;
  font-size: 0.9375rem;
}

/* TOC for guide detail pages */
.guide-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  position: sticky;
  top: 1rem;
}

.guide-toc h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-toc > ul > li {
  margin-bottom: 0.5rem;
}

.guide-toc ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.guide-toc ul ul li {
  margin-bottom: 0.25rem;
}

.guide-toc a {
  color: var(--color-text);
  text-decoration: none;
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  transition: background 0.2s;
}

.guide-toc a:hover {
  background: var(--color-bg);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--color-muted);
  user-select: none;
}

/* Guide Navigation */
.guide-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
}

.guide-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s;
  font-weight: 500;
}

.guide-nav a:hover {
  background: var(--color-bg);
  border-color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .guide-cards {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
  }

  .step {
    padding-left: 3rem;
  }

  .step::before {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .platform-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .platform-tab {
    white-space: nowrap;
    padding: 0.75rem 1rem;
  }

  .guide-nav {
    flex-direction: column;
  }
}

