/* ==========================================================================
   Minecraft World - MOD詳細ページ専用スタイル (mod-detail.css)
   ========================================================================== */

/* 1. ヒーローバナー */
.mod-detail-hero {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.mod-detail-hero-content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 2;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--text-main);
  transform: translateX(-4px);
}

.mod-detail-category {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-green);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.mod-detail-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.mod-detail-title .mod-detail-en {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
}

.mod-detail-tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.mod-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.mod-detail-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--border-color);
}

.mod-detail-meta span i {
  color: var(--accent-green);
}

.mod-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.mod-detail-actions .btn {
  padding: 1rem 2.2rem;
}

/* 2. 詳細コンテンツ共通 */
.mod-detail-content {
  padding: 6rem 0;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4rem;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  margin-bottom: 4rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.25rem;
}

.detail-section-header i {
  font-size: 1.8rem;
  color: var(--accent-green);
}

.detail-section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
}

.detail-section > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.detail-section > p:last-of-type {
  margin-bottom: 0;
}

/* 3. 特徴グリッド（バイオーム / 装備） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2.2rem;
  border-radius: 16px;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.feature-card h3 i {
  color: var(--accent-green);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 4. ボスリスト */
.boss-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.boss-item {
  display: flex;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition-normal);
}

.boss-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.boss-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(62, 202, 79, 0.1);
  border: 1px solid rgba(62, 202, 79, 0.3);
  border-radius: 50%;
  color: var(--accent-green);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boss-info {
  flex-grow: 1;
}

.boss-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.boss-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 5. 進行システムフロー */
.progress-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.flow-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 1rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  text-align: center;
  transition: var(--transition-fast);
}

.flow-step.final {
  background: rgba(62, 202, 79, 0.08);
  border-color: rgba(62, 202, 79, 0.4);
  color: var(--accent-green);
  box-shadow: 0 0 15px rgba(62, 202, 79, 0.1);
}

.flow-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 6. 個別MODごとのテーマカラー調整（ページ全体のメタ配色） */
body.theme-blueskies {
  --accent-green: var(--accent-cyan);
  --glow-green: var(--glow-cyan);
}

body.theme-blueskies .boss-number {
  background: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 180, 216, 0.3);
  color: var(--accent-cyan);
}

body.theme-blueskies .flow-step.final {
  background: rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.1);
}

body.theme-aether {
  --accent-green: var(--accent-gold);
  --glow-green: var(--glow-gold);
}

body.theme-aether .boss-number {
  background: rgba(255, 183, 3, 0.1);
  border-color: rgba(255, 183, 3, 0.3);
  color: var(--accent-gold);
}

body.theme-aether .flow-step.final {
  background: rgba(255, 183, 3, 0.08);
  border-color: rgba(255, 183, 3, 0.4);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.1);
}

/* 7. レレスポンシブ対応 */
@media (max-width: 1024px) {
  .mod-detail-title {
    font-size: 2.8rem;
  }
  .feature-grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .mod-detail-hero {
    min-height: 50vh;
    padding: 7rem 0 3rem;
  }
  .mod-detail-title {
    font-size: 2.2rem;
  }
  .mod-detail-title .mod-detail-en {
    font-size: 1.1rem;
  }
  .mod-detail-meta {
    gap: 1rem;
  }
  .mod-detail-meta span {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  .detail-section {
    padding: 2.2rem 1.5rem;
  }
  .detail-section-header h2 {
    font-size: 1.4rem;
  }
  .boss-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }
  .progress-flow {
    flex-direction: column;
    padding: 1.5rem;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 0.25rem 0;
  }
}
