
/*-----------------------------------*\
  #RECIPES SECTION (MODERN STYLE)
\*-----------------------------------*/

.recipes-section {
  padding-block: var(--section-padding);
  background-color: var(--alice-blue);
}

.recipes-section .section-title {
  text-align: center;
  margin-block-end: 50px;
  position: relative;
}

.recipes-section .section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--verdigris);
  margin: 12px auto 0;
  border-radius: var(--radius-4);
}

/* ساختار کلی کارت به صورت گرید مدرن */
.recipe-card {
  background-color: var(--white);
  border-radius: var(--radius-12);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  margin-block-end: 40px;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition-2);
  border: 1px solid var(--gainsboro);
}

.recipe-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
  border-color: var(--verdigris);
}

/* بخش تصویر */
.recipe-image {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.recipe-card:hover .recipe-image img {
  transform: scale(1.05);
}

/* محتوای کارت */
.recipe-content {
  padding: 30px;
}

/* توضیحات کوتاه */
.recipe-title {
  font-size: var(--title-sm);
  font-weight: var(--fw-500);
  color: var(--independece);
  line-height: 1.6;
  margin-block-end: 15px;
}

.recipe-content > p {
  font-size: 1.5rem;
  color: var(--gray-web);
  margin-block-end: 20px;
}

/* دکمه مشاهده رسپی */
.toggle-recipe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--verdigris);
  color: var(--white);
  border-radius: var(--radius-6);
  font-weight: var(--fw-700);
  transition: var(--transition-1);
  margin-block-end: 20px;
}

.toggle-recipe-btn:hover {
  background-color: var(--ming);
  color: var(--white);
}

/* جزئیات بازشونده رسپی */
.recipe-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-2) var(--cubic-out);
  background-color: hsl(0, 0%, 98%);
  border-radius: var(--radius-6);
  padding-inline: 0;
}

.recipe-details.active {
  padding: 20px;
  margin-block-start: 20px;
  border: 1px solid var(--gainsboro);
}

.recipe-details h3 {
  font-size: var(--title-sm);
  color: var(--midnight-blue);
  margin-block: 20px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-details h3 i {
  color: var(--verdigris);
}

/* لیست مواد لازم و طرز تهیه */
.recipe-details ul, 
.recipe-details ol {
  padding-inline-start: 20px;
}

.recipe-details li {
  font-size: 1.5rem;
  color: var(--independece);
  margin-block-end: 8px;
  position: relative;
}

.recipe-details ul li {
  list-style-type: square;
}

.recipe-details ol li {
  list-style-type: decimal;
}

/* جدول ارزش غذایی مدرن */
.table-wrap {
  overflow-x: auto;
  margin-block-end: 25px;
  border-radius: var(--radius-6);
  border: 1px solid var(--gainsboro);
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 1.4rem;
}

.nutrition-table th, 
.nutrition-table td {
  padding: 12px 15px;
}

.nutrition-table th {
  background-color: var(--midnight-blue);
  color: var(--white);
  font-weight: var(--fw-700);
}

/* بخش سوالات متداول داخل رسپی */
.faq-section {
  margin-block-end: 25px;
}

.faq-item {
  padding: 15px;
  border-radius: var(--radius-4);
  margin-block-end: 10px;
  border-right: 4px solid var(--verdigris);
  box-shadow: var(--shadow-2);
  background-color: var(--white);
}

.faq-q {
  font-weight: var(--fw-700);
  color: var(--midnight-blue);
  margin-block-end: 5px;
}

.faq-a {
  font-size: 1.4rem;
  color: var(--independece);
}

/* پنل تحلیل متخصص */
.expert-panel {
  background-color: rgba(35, 47, 88, 0.05);
  border: 1px dashed var(--verdigris);
  padding: 20px;
  border-radius: var(--radius-6);
}

.expert-panel h4 {
  color: var(--midnight-blue);
  font-size: var(--title-sm);
  margin-block-end: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expert-panel h4 i {
  color: var(--verdigris);
}

/*-----------------------------------*\
  #RESPONSIVE FOR CARDS
\*-----------------------------------*/

@media (min-width: 992px) {
  .recipe-card {
    grid-template-columns: 0.8fr 1.2fr;
  }
  
  .recipe-image {
    min-height: 100%;
  }
}

/*-----------------------------------*\
  #TOP CATEGORY AREA
\*-----------------------------------*/

.top-catagory-area {
  padding: 60px 0;
}

.top-catagory-area .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-left: 0;
  margin-right: 0;
}

.top-catagory-area .col-lg-6 {
  flex: 1 1 calc(50% - 15px);
  max-width: calc(50% - 15px);
  padding-left: 0;
  padding-right: 0;
}

.single-top-catagory {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-12);
  height: 420px;
}

.single-top-catagory img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-top-catagory::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.top-cta-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}

.top-cta-content h3 {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.delicious-btn {
  display: inline-block;
  background-color: var(--verdigris);
  color: var(--white) !important;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-6);
  border: none;
  text-decoration: none;
  transition: var(--transition-1);
}

.delicious-btn:hover {
  background-color: var(--midnight-blue);
}

@media (max-width: 768px) {
  .top-catagory-area .col-lg-6 {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/*-----------------------------------*\
  #SINGLE RECIPE PAGE (DARK / GLASS THEME)
  * محدود شده به کلاس اختصاصی صفحه تکی رسپی
\*-----------------------------------*/
/* ===================================
   پس‌زمینه ثابت و داینامیک
   =================================== */

body {
  overflow-x: hidden;
}

body.single-recipe-page {
  position: relative;
  background-color: #0f0f0f;
  color: var(--white);
}

/* تصویر از متغیر --bg-image دریافت می‌شود */



body.single-recipe-page::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  
  background: linear-gradient(rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.70)),
              var(--bg-image, url('../recipes/default-bg.png')) no-repeat center center;
  background-size: cover;
  
  filter: blur(3px);
  -webkit-filter: blur(3px);
  
  z-index: -1;
  pointer-events: none;
}

.bubak {
  background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url('../recipes/quinoa-chicken-bowl-healthy-recipe.png') no-repeat center center / cover;
}

.recipe-hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 60px 20px;
}

.recipe-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 8px 22px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 1.15rem;
  font-weight: 500;
}

.recipe-hero-title {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.recipe-hero-desc {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.35rem;
  line-height: 1.9;
}

.recipe-content-section {
  background: transparent;
  padding: 20px 0 80px 0;
  color: var(--white);
}

.recipe-details-body {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.recipe-block {
  margin-bottom: 50px;
}

.recipe-block h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 12px;
  font-weight: 700;
}

.recipe-block h3 i {
  color: #64b5f6;
  margin-left: 10px;
}

.recipe-list,
.recipe-steps {
  line-height: 2.2;
  font-size: 1.25rem;
  color: var(--white);
}

.recipe-steps {
  padding-right: 25px;
}

/* استایل جدول فقط در صفحات تاریک تکی */
.single-recipe-page .nutrition-table {
  width: 100%;
  text-align: right;
  border-collapse: collapse;
  font-size: 1.2rem;
  color: var(--white);
}

.single-recipe-page .nutrition-table th,
.single-recipe-page .nutrition-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.single-recipe-page .nutrition-table th {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-weight: 700;
}

/* سوالات متداول فقط در صفحات تاریک تکی */
.single-recipe-page .faq-item {
  margin-bottom: 20px;
  background-color: transparent;
  box-shadow: none;
  border-right: none;
}

.single-recipe-page .faq-q {
  font-weight: 700;
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.single-recipe-page .faq-a {
  color: #e0e0e0;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* پنل تحلیل متخصص فقط در صفحات تاریک تکی */
.single-recipe-page .expert-panel {
  background: rgba(33, 150, 243, 0.2);
  border: none;
  border-right: 5px solid #2196f3;
  padding: 25px;
  border-radius: 8px;
}

.single-recipe-page .expert-panel h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.single-recipe-page .expert-panel h4 i {
  color: #64b5f6;
  margin-left: 10px;
}

.single-recipe-page .expert-panel p {
  color: #e0e0e0;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.8;
}