/* HowToCook.cc - Recipe Website Styles */

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
  color: #333;
  background-color: #faf9f6;
}

a {
  color: #b54834;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Ad Container */
.ad-container {
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  padding: 20px;
  text-align: center;
  margin: 0;
  min-height: 90px;
}

.ad-container p {
  color: #999;
  font-size: 12px;
}

/* Header */
header {
  background-color: #2c3e50;
  color: white;
  padding: 20px 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  font-size: 28px;
  font-weight: normal;
}

.logo a {
  color: white;
  text-decoration: none;
}

.logo span {
  color: #e74c3c;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: white;
  font-size: 16px;
}

nav a:hover {
  color: #e74c3c;
  text-decoration: none;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 60vh;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero-cooking.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  margin: -40px -20px 40px -20px;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: normal;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.category-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card-image {
  height: 180px;
  background-color: #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background-size: cover;
  background-position: center;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-content {
  padding: 20px;
}

.category-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #2c3e50;
}

.category-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.category-card .btn {
  display: inline-block;
  background-color: #e74c3c;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
}

.category-card .btn:hover {
  background-color: #c0392b;
  text-decoration: none;
}

/* Recipe List */
.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.recipe-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-card-image {
  height: 200px;
  background-color: #95a5a6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  overflow: hidden;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card-content {
  padding: 20px;
}

.recipe-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.recipe-card h3 a {
  color: #2c3e50;
}

.recipe-card .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.recipe-card p {
  font-size: 14px;
  color: #666;
}

/* Recipe Detail Page */
.recipe-detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.recipe-header {
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.recipe-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  font-size: 14px;
}

.recipe-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.recipe-image {
  width: 100%;
  height: 400px;
  background-color: #bdc3c7;
  border-radius: 8px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.recipe-description {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f8f8;
  border-left: 4px solid #e74c3c;
}

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

.recipe-section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.ingredients-list {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

.ingredients-list li {
  padding: 8px 0;
  border-bottom: 1px dotted #ddd;
  font-size: 15px;
}

.ingredients-list li::before {
  content: "• ";
  color: #e74c3c;
  font-weight: bold;
}

.instructions-list {
  list-style: none;
  counter-reset: step;
}

.instructions-list li {
  counter-increment: step;
  padding: 15px 0 15px 60px;
  position: relative;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  line-height: 1.7;
}

.instructions-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 15px;
  width: 40px;
  height: 40px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.tips-box {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
}

.tips-box h3 {
  color: #856404;
  margin-bottom: 10px;
}

.tips-box ul {
  margin-left: 20px;
}

.tips-box li {
  margin-bottom: 8px;
  color: #856404;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 0;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #888;
}

.breadcrumb span {
  margin: 0 8px;
  color: #ccc;
}

/* Category Page */
.category-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #eee;
}

.category-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 15px;
}

.category-header p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #bdc3c7;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #bdc3c7;
  font-size: 14px;
}

.footer-section a:hover {
  color: white;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #34495e;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  nav ul {
    justify-content: center;
  }

  .hero h2 {
    font-size: 28px;
  }

  .recipe-detail {
    padding: 20px;
  }

  .recipe-header h1 {
    font-size: 26px;
  }

  .ingredients-list {
    columns: 1;
  }

  .recipe-image {
    height: 250px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.section-title {
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 30px;
  text-align: center;
}
