﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background-color: #111111;
  color: #e8e8e8;
}

/* Hero (homepage only) */
.hero {
  position: relative;
  height: 500px;
  background: url('images/Load%20Cheese%20Fries.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 3.6rem;
  letter-spacing: 4px;
  color: #e8c87a;
  text-shadow: 0 2px 24px rgba(0,0,0,0.9);
}

.hero-content p {
  font-size: 1.1rem;
  color: #ddd;
  margin-top: 14px;
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Header (recipe pages) */
header {
  background-color: #0d0d0d;
  text-align: center;
  padding: 32px 20px 24px;
  border-bottom: 1px solid #222;
}

header h1 {
  font-size: 2.2rem;
  letter-spacing: 3px;
  color: #e8c87a;
}

header p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

/* Nav */
nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #0a0a0a;
  padding: 12px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #1e1e1e;
}

nav a {
  color: #e8c87a;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* Main */
main {
  max-width: 960px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.filter-bar label {
  color: #777;
}

.filter-bar select {
  padding: 8px 14px;
  border: 1px solid #2e2e2e;
  border-radius: 6px;
  background: #1a1a1a;
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  color: #e8e8e8;
}

.filter-bar select:focus {
  outline: none;
  border-color: #e8c87a;
}

/* Cuisine Tag */
.cuisine-tag {
  display: inline-block;
  background-color: #261f08;
  color: #e8c87a;
  font-size: 0.72rem;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* No results */
.no-results {
  text-align: center;
  color: #555;
  font-style: italic;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  border: 1px solid #252525;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.7);
  border-color: rgba(232,200,122,0.3);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 18px 20px 22px;
}

.card-body h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.card-body p {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.55;
}

/* Card Stars */
.card-stars {
  display: flex;
  gap: 2px;
  margin-top: 10px;
}

.card-stars .star-dot {
  font-size: 1rem;
  color: #333;
}

.card-stars .star-dot.filled {
  color: #e8c87a;
}

/* Recipe Page */
.recipe-container {
  max-width: 740px;
  margin: 50px auto;
  padding: 0 20px 80px;
}

.recipe-container img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 32px;
}

.recipe-container h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #f0f0f0;
}

.recipe-container .tagline {
  color: #777;
  font-style: italic;
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.recipe-container h2 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  border-bottom: 2px solid #e8c87a;
  padding-bottom: 6px;
  margin: 32px 0 14px;
  color: #e8c87a;
  font-family: sans-serif;
}

.recipe-container ul {
  list-style: disc;
  padding-left: 22px;
  line-height: 1.95;
  font-size: 0.97rem;
  color: #ccc;
}

.recipe-container ol {
  padding-left: 22px;
  line-height: 2;
  font-size: 0.97rem;
  color: #ccc;
}

.recipe-container ol li {
  margin-bottom: 6px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  color: #777;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid #2e2e2e;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.back-link:hover {
  color: #e8c87a;
  border-color: #e8c87a;
}

/* Star Rating (interactive) */
.recipe-rating {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid #222;
  text-align: center;
}

.recipe-rating h2 {
  border-bottom: none;
  margin-bottom: 18px;
  text-align: center;
}

.star-rating {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.star-rating .star {
  font-size: 2.4rem;
  color: #2e2e2e;
  cursor: pointer;
  transition: color 0.15s, transform 0.12s;
  user-select: none;
  line-height: 1;
}

.star-rating .star:hover,
.star-rating .star.active {
  color: #e8c87a;
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.rating-label {
  font-size: 0.88rem;
  color: #555;
  font-style: italic;
  min-height: 1.2em;
}

/* Comments Section */
.comments-section {
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid #222;
}

.comments-section > h2 {
  text-align: left;
  margin-bottom: 24px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.no-comments {
  color: #444;
  font-style: italic;
  font-size: 0.9rem;
}

.comment {
  background: #161616;
  border: 1px solid #232323;
  border-radius: 10px;
  padding: 18px 20px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.comment-header strong {
  color: #e8c87a;
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.78rem;
  color: #484848;
  font-style: italic;
  font-family: sans-serif;
}

.comment p {
  color: #bbb;
  font-size: 0.93rem;
  line-height: 1.6;
}

.comment-different {
  margin-top: 12px;
  padding: 10px 14px;
  background: #1c1800;
  border-left: 3px solid #e8c87a;
  border-radius: 0 6px 6px 0;
  font-size: 0.87rem;
  color: #aaa;
  line-height: 1.55;
}

.comment-different strong {
  color: #e8c87a;
}

/* Comment Form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  font-family: sans-serif;
}

.form-group input,
.form-group textarea {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 14px;
  color: #e8e8e8;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #e8c87a;
}

.submit-btn {
  align-self: flex-start;
  background: #e8c87a;
  color: #111;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.12s;
}

.submit-btn:hover {
  background: #f5d98a;
  transform: translateY(-1px);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.85rem;
  color: #444;
  border-top: 1px solid #1a1a1a;
  margin-top: 40px;
}
