/* ---------------- Font ---------------- */
/* Custom font import for special headings or logo */
@font-face {
  font-family: 'MyFont';
  src: url('fonts/RusticRoadway.otf');
}

/* ---------------- Global Styles ---------------- */
body {
  font-family: 'Poppins', sans-serif; /* Default font */
  margin: 0;                          /* Remove default margin */
  background: #fafafa;                /* Light background */
  color: black;                        /* Default text color */
  line-height: 1.6;                    /* Improve readability */
}

/* Links styling */
a {
  text-decoration: none;               /* Remove underline */
  color: black;                        /* Default link color */
}

/* Headings */
h1, h2, h3 {
  margin: 0 0 10px 0;                  /* Bottom margin for spacing */
  color: black;                        /* Heading color */
}

/* Paragraph spacing */
p {
  line-height: 1.6;
}

/* ---------------- Navigation ---------------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Soft shadow */
  flex-wrap: wrap;
  position: sticky;  /* Nav sticks to top on scroll */
  top: 0;
  z-index: 1000;     /* Stay on top of other elements */
}

/* Logo text styling */
.logo {
  font-size: 3rem;
  font-weight: bold;
}

/* Navigation links container */
.nav-links {
  display: flex;
  gap: 30px;
}

/* Nav link text */
.nav a {
  font-weight: 500;
}

/* ---------------- Recipe Cards / Grid ---------------- */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, fit-content(100%)));
  gap: 30px;
  padding: 50px 20px;
  max-width: 1200px;
  margin: auto;
}

/* Individual card styling */
.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}

/* Hover effect for cards */
.card:hover {
  transform: translateY(-8px);
}

/* Card image container */
.card-img {
  position: relative;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

/* Card images */
.card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Zoom effect on hover */
.card-img:hover img {
  transform: scale(1.1);
}

/* Overlay for hover effect */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px 15px 0 0;
}

/* Show overlay on hover */
.card-img:hover .overlay {
  opacity: 1;
}

/* Card content section */
.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
}

.card-content p {
  color: #666;
  margin-bottom: 10px;
}

/* Buttons and links inside cards */
.card-content a,
.view-btn {
  color: #ff6b6b;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

/* Button styling */
.view-btn {
  padding: 10px 20px;
  background-color: #ff6b6b;
  color: white;
  border-radius: 25px;
}

/* Button hover effect */
.view-btn:hover {
  background-color: #ff4c4c;
}

/* ---------------- Recipe Page ---------------- */
.recipe-container {
  padding: 15px;
  max-width: 900px;
  margin: 40px auto;
}

.recipe-img {
  width: 100%;
  max-height: 400px;    
  object-fit: contain;  
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Sections for ingredients / instructions */
.recipe-section {
  background: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.recipe-section h2 {
  color: #ff6b6b;
  margin-top: 0;
}

/* Stack ingredients/instructions vertically by default */
.recipe-grid.recipe-columns {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Lists inside recipe sections */
.recipe-section ul,
.recipe-section ol {
  margin: 10px 0 0 20px;
}

/* ---------------- About Page ---------------- */
.about-container {
  max-width: 700px;
  margin: 60px auto;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  border-radius: 15px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

/* Boxes for philosophy or social media */
.about-box {
  background: white;
  padding: 20px;
  margin: 15px 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.about-box:hover {
  transform: translateY(-5px);
}

.about-container h1 {
  font-size: 2.2rem;
}

/* Special font for logo or headings */
.otfFont {
  font-family: 'MyFont', sans-serif;
  color: blue;
  font-size: 1.2em;
}

/* ---------------- Footer ---------------- */
.footer {
  text-align: center;
  padding: 25px 0;
  background: #fafafa;
  color: #555;
  font-size: 0.9rem;
}

.footer a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ff4c4c;
}

/* ---------------- Responsive ---------------- */
@media (min-width: 768px) {
  .recipe-grid.recipe-columns {
    flex-direction: row;
    gap: 20px;
  }

  .recipe-section.ingredients,
  .recipe-section.instructions {
    flex: 1;
    min-width: 280px;
  }
}

@media (min-width: 1200px) {
  .recipe-grid {
    grid-template-columns: repeat(4, 1fr); /* 4-column layout on large screens */
  }
}