/* ========================================
   レシピ詳細ページ専用スタイル
======================================== */

/* レシピヘッダー */
.recipe-header {
  margin-bottom: 40px;
}

.recipe-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--wasabi-dark);
}

.recipe-meta {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.recipe-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

/* レシピコンテンツ */
.recipe-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recipe-section {
  margin-bottom: 40px;
}

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

.recipe-section h2 {
  font-size: 1.8rem;
  color: var(--wasabi-dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--wasabi-light);
}

/* 材料リスト */
.ingredients-list {
  list-style: none;
  padding: 0;
}

.ingredients-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
}

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

.ingredient-name {
  font-weight: 500;
}

.ingredient-amount {
  color: var(--gray-600);
}

/* 手順リスト */
.steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.steps-list li {
  padding: 20px;
  margin-bottom: 15px;
  background: var(--gray-50);
  border-radius: 8px;
  counter-increment: step-counter;
  position: relative;
  padding-left: 70px;
}

.steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--wasabi-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ========================================
   つくレポセクション
======================================== */
.cook-reports-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 3px solid var(--wasabi-main);
}

.cook-reports-section h2 {
  font-size: 2rem;
  color: var(--wasabi-dark);
  margin-bottom: 30px;
}

.cook-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* つくレポカード */
.cook-report-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cook-report-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cook-report-card:focus {
  outline: 3px solid var(--wasabi-main);
  outline-offset: 2px;
}

.cook-report-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.cook-report-info {
  padding: 15px;
}

.cook-report-date {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.cook-report-status {
  margin-top: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cook-reports-grid {
    grid-template-columns: 1fr;
  }
  
  .recipe-title {
    font-size: 2rem;
  }
  
  .recipe-content {
    padding: 20px;
  }
  
  .steps-list li {
    padding-left: 60px;
  }
  
  .steps-list li::before {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* つくレポがない場合のメッセージ */
.no-reports-message {
  text-align: center;
  padding: 40px 20px;
  background: var(--gray-100);
  border-radius: 8px;
  color: var(--gray-600);
}

.no-reports-message p {
  margin: 0;
  font-size: 1.1rem;
}
