/* Recipe Template Styling */


/* recipe temoplate */
/* Hero Section with Parallax */
#recipe-hero {
  position: relative;
  height: 460px;
  background-size: cover;
  background-position: center 0px;
  background-repeat: no-repeat;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  color: #fff;
}

#recipe-hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.7));*/
  display: flex;
  align-items: center;
  width: 100%;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.recipe-meta .meta-item {
  margin-right: .5rem;
    margin-bottom: 0.5rem;
    font-family: var(--accent-font);
    font-size: .9rem;
    background: #f5f5f5;
    padding: .25rem .75rem;
    border-radius: .75rem;
}
/* Responsive */
@media (min-width: 768px) {
    .recipe-meta .meta-item {
    margin-right: 1rem;
      margin-bottom: 0.5rem;
      font-size: 1.2rem;
  }
}

#related-recipes {
  background-color: var(--mellow-gold);
  width:100%;
}


.recipe-section h3 {
  font-family: var(--accent-font);
  color: var(--dark-green);
  text-transform: inherit;
  font-size: 1.6rem;
}

.recipe-video-btn .btn {
  border: 2px solid #fff;
  color: #fff;
  padding: 0.5rem 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.recipe-video-btn .btn:hover {

}

.recipe-video-btn .btn i {
  margin-right: 0.5rem;
}

/* Hero Video */
.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.hero-video.active {
  display: flex;
}

.hero-video-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 90%;
  width: 90%;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#breadcrumb {
  padding-bottom: 1rem;
}

#breadcrumb .breadcrumb {
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: .75rem;
  display: inline-flex;
}

#breadcrumb .breadcrumb a {
  transition: color 0.2s ease-in-out;
}

#breadcrumb .breadcrumb a:hover {
  color: var(--bright-green);
}

/* Recipe Content with Overlap */
.recipe-content-overlap {
  margin-top: -15rem;
  position: relative;
  padding-bottom: 2rem;
}

.recipe-image-column {
  margin-bottom: -4.5rem;
  z-index: 2;
  position: relative;
}

.recipe-share {
  background-color: #fff;
  border-radius: .75rem;
}

.btn.btn-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: var(--dark-green);
    color: #fff;
    border: none;
}

.btn.btn-social-icon:hover {
    background-color: var(--bright-green);
    color: #fff;
}

/* Share Tools */
.recipe-share-tools {
  margin-bottom: 2rem;
}

.share-label {
  font-weight: bold;
  margin-right: 1rem;
}

.share-buttons .btn-share {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-share.btn-email:hover {
  background-color: #0072c6;
  color: #fff;
}

.btn-share.btn-print:hover {
  background-color: #6c757d;
  color: #fff;
}

.btn-share.btn-facebook:hover {
  background-color: #3b5998;
  color: #fff;
}

.btn-share.btn-pinterest:hover {
  background-color: #bd081c;
  color: #fff;
}

/* Ingredients */
.recipe-ingredients ul {
  list-style-type: none;
  padding-left: 0;
}

.recipe-ingredients  li {
  border-bottom: 1px solid #c9c9c9;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  list-style-type: none;
}

.recipe-ingredients  li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* recommended-product card */
.recommended-product {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 360px;
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: .75rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  z-index: 1000;
  transform: translateX(-120%);
  transition: transform 0.5s ease-in-out;
  opacity: 1;
  will-change: transform;
}

.recommended-product.visible {
  transform: translateX(0);
}

.recommended-product.closed {
  display: none;
}

.close-recommended-product {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}

.close-recommended-product:hover {
  color: #333;
}


.rec-product-image-container {
  background-color: var(--dark-green);
  border-radius: .75rem;
  padding: 1rem;
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.recommended-product h4 {
  font-size: 1.2rem;
  color: var(--dark-green);
}

.rec-product-card {
  display: flex;
  align-items: center;
}

.rec-product-image {
  max-width: 100px;
}

.rec-product-info h5 {
  font-size: 1.2rem;
  color: #777;
  text-transform: initial;
}

/* Directions */
.recipe-directions .directions-content > ul, 
.recipe-directions .directions-content > ol {
  list-style: none;
  counter-reset: directions-counter;
  padding-left: 0;
}

.recipe-directions .directions-content > ul > li, 
.recipe-directions .directions-content > ol > li {
  counter-increment: directions-counter;
  margin-bottom: 1.5rem;
  padding-left: 45px;
  position: relative;
  line-height: 1.5;
}

.recipe-directions .directions-content > ul > li::before,    
.recipe-directions .directions-content > ol > li::before {
  content: counter(directions-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--dark-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Style for nested lists - restore default styling */
.recipe-directions .directions-content ul ul,
.recipe-directions .directions-content ol ol,
.recipe-directions .directions-content ul ol,
.recipe-directions .directions-content ol ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 10px;
}

.recipe-directions .directions-content ul ul li,
.recipe-directions .directions-content ol ol li,
.recipe-directions .directions-content ul ol li,
.recipe-directions .directions-content ol ul li {
  counter-increment: none;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.recipe-directions .directions-content ul ul li::before,
.recipe-directions .directions-content ol ol li::before,
.recipe-directions .directions-content ul ol li::before,
.recipe-directions .directions-content ol ul li::before {
  display: none;
}

/* Categories */
.recipe-categories {
  background-color: #fff;
  margin: 0 -20px -20px -20px; /* Pulls the container to the edges of the parent's padding */
  border-top: 1px solid #eee;
}

.view-all-link {
  margin-left: 0.5rem;
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Categories Popup */
.view-all-box {
  display: none;
  position: absolute;
  z-index: 1000;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  max-width: 300px;
}

.close-view-all {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.view-all-box .title {
  font-weight: bold;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.view-all-box p {
  margin-bottom: 0.5rem;
}

.view-all-box a {
  text-decoration: none;
}

.view-all-box a:hover {
  text-decoration: underline;
}


/* Responsive */
@media (max-width: 991px) {
  #recipe-hero {
    height: 400px;
    background-attachment: scroll;
  }
  
  
  .recipe-content-overlap {
    margin-top: -2rem;
  }
  
}

@media (max-width: 767px) {
  #recipe-hero {
    height: 350px;
  }
  
}
