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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 60px; /* dla scroll btn */
}

header {
  background-color: #1e1e1e;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #333;
}

.recipe-nav {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 25px;
}

.recipe-nav a {
  color: #a1c9f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.recipe-nav a:hover,
.recipe-nav a:focus {
  color: #63a4ff;
  outline: none;
}

main {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

.recipe {
  margin-bottom: 50px;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
}

.recipe h2 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1.9rem;
  color: #63a4ff;
  text-align: center;
}

/* Slider */
.image-slider {
  position: relative;
  max-width: 100%;
  height: 250px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 10px #222;
}

.image-slider img {
  position: absolute;
  width: 100%;
  height: 250px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  border-radius: 8px;
  top: 0;
  left: 0;
}

.image-slider img.active {
  opacity: 1;
  position: relative;
}

/* Ingredients */
.ingredients-wrapper {
  margin-bottom: 15px;
}

.ingredients-wrapper label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #a1c9f1;
}

.weight-input {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #222;
  color: #eee;
  font-weight: 600;
  margin-bottom: 12px;
}

.weight-input:focus {
  outline: none;
  border-color: #63a4ff;
  box-shadow: 0 0 6px #63a4ff;
}

.ingredients-list {
  list-style-type: none;
  background-color: #222;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 8px #000;
  color: #cce0ff;
  font-weight: 600;
  line-height: 1.4;
}

.ingredients-list li {
  margin-bottom: 8px;
}

/* Instructions */
.instructions {
  background-color: #1c1c1c;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 10px #111;
  font-size: 1rem;
  color: #ddd;
  white-space: pre-wrap;
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #63a4ff;
  color: #121212;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(99, 164, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  z-index: 200;
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
  background-color: #85b9ff;
  outline: none;
}

/* Responsive */
@media (max-width: 600px) {
  .recipe-nav {
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
  }
  
  .image-slider {
    height: 180px;
  }

  .ingredients-list {
    font-size: 0.9rem;
  }
}


.hero-chef {
  position: relative;
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
}

.hero-chef img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 80, 0, 0.5);
}

.hero-chef h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2.5rem;
  text-shadow: 0 0 10px #000, 0 0 20px #ff6600;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 8px;
}


.modal {
  display: none;
  position: fixed;
  z-index: 300;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.75);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #444;
  width: 80%;
  max-width: 600px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 20px #ff5500;
  position: relative;
}

.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-content h2 {
  color: #ffae42;
  font-size: 2rem;
  text-shadow: 0 0 10px #000;
}

.close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #fff;
}
