/* ============================================================
   DC Masala - Recipes Page & Recipe Details CSS
   recipes-page.css
   Font: Gotham (Bold 700, Medium 500, Book 400)
   ============================================================ */

/* === Recipes Page Hero === */
.recipes-hero {
  background: linear-gradient(135deg, #1a0800 0%, #3E1F00 45%, #6B1818 100%);
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.recipes-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(255,193,7,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(230,126,34,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 90%, rgba(192,57,43,0.15) 0%, transparent 50%);
}
.recipes-hero-content { position: relative; z-index: 2; }

/* === Search & Filter Bar === */
.recipe-filter-bar {
  background: white;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 8px 40px var(--shadow-strong);
  border: 1px solid var(--border-light);
  position: relative; z-index: 10;
  margin-top: -40px;
  margin-bottom: 48px;
}
.recipe-search-wrap {
  position: relative; flex: 1; min-width: 260px;
}
.recipe-search-wrap input {
  width: 100%; padding: 13px 20px 13px 48px;
  border: 2px solid var(--border-light);
  border-radius: 50px; font-size: 0.9rem;
  font-family: 'Gotham', sans-serif; font-weight: 400;
  color: var(--text-dark);
  transition: var(--transition); outline: none;
  background: var(--off-white);
}
.recipe-search-wrap input:focus {
  border-color: var(--yellow); background: white;
  box-shadow: 0 0 0 4px rgba(255,193,7,0.12);
}
.recipe-search-wrap .s-icon {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 1.1rem;
}
.recipe-filter-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.recipe-filter-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  font-family: 'Gotham', sans-serif; white-space: nowrap;
}
.filter-chip {
  padding: 7px 18px; border-radius: 50px;
  border: 1.5px solid var(--border-light);
  background: var(--off-white);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
  font-family: 'Gotham', sans-serif; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.filter-chip:hover { border-color: var(--yellow); color: var(--dark-brown); background: var(--yellow-light); }
.filter-chip.active {
  background: var(--yellow); border-color: var(--yellow);
  color: var(--dark-brown); font-weight: 700;
  box-shadow: 0 3px 12px rgba(255,193,7,0.35);
}
.filter-chip .chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
.recipe-count-bar {
  padding-top: 14px; margin-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.recipe-count-bar span {
  font-size: 0.82rem; color: var(--text-muted);
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
.recipe-count-bar strong { color: var(--dark-brown); font-weight: 700; }
.sort-select {
  padding: 6px 14px; border-radius: 50px;
  border: 1.5px solid var(--border-light);
  background: var(--off-white); font-size: 0.8rem;
  color: var(--text-dark); outline: none;
  font-family: 'Gotham', sans-serif; font-weight: 400;
  cursor: pointer; transition: var(--transition);
}
.sort-select:focus { border-color: var(--yellow); }

/* === Recipe Card (Full) === */
.recipe-full-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 22px var(--shadow-warm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.recipe-full-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 60px var(--shadow-strong);
  border-color: rgba(255,193,7,0.25);
}
.recipe-full-card .r-img {
  position: relative; height: 220px; overflow: hidden;
  flex-shrink: 0;
}
.recipe-full-card .r-img .r-emoji-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  transition: transform 0.5s ease;
}
.recipe-full-card:hover .r-emoji-bg { transform: scale(1.1) rotate(-3deg); }
/* Gradient overlays per masala */
.bg-chaat   { background: linear-gradient(135deg, #2C7A2C, #5cb85c); }
.bg-chicken { background: linear-gradient(135deg, #7a2c00, #c0392b); }
.bg-biryani { background: linear-gradient(135deg, #1a1a00, #8B6914); }
.bg-garam   { background: linear-gradient(135deg, #4a0000, #8B1A1A); }
.bg-sambar  { background: linear-gradient(135deg, #1a3a00, #5d7a1a); }
.bg-pavbhaji{ background: linear-gradient(135deg, #7a1a00, #E67E22); }
.bg-turmeric{ background: linear-gradient(135deg, #5a4200, #c8a200); }
.bg-kitchen { background: linear-gradient(135deg, #003a5a, #1a7a9a); }
.bg-default { background: linear-gradient(135deg, #3E1F00, #6B3A1F); }

/* Overlay badges */
.r-time-tag {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 50px; padding: 5px 13px;
  font-size: 0.72rem; font-weight: 700;
  color: var(--dark-brown); display: flex; align-items: center; gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-family: 'Gotham', sans-serif;
}
.r-diff-tag {
  position: absolute; bottom: 12px; left: 12px;
  border-radius: 50px; padding: 5px 13px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  font-family: 'Gotham', sans-serif;
}
.r-diff-tag.easy   { background: #e9f7ef; color: #28a745; border: 1px solid #c3e6cb; }
.r-diff-tag.medium { background: #fef3e2; color: #E67E22; border: 1px solid #fdd8a5; }
.r-diff-tag.hard   { background: #fdecea; color: var(--chili-red); border: 1px solid #f5c2bd; }
.r-save-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  color: var(--text-muted); font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.r-save-btn:hover, .r-save-btn.saved {
  background: var(--chili-red); color: white;
  border-color: var(--chili-red); transform: scale(1.1);
}
.r-masala-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--dark-brown);
  border-radius: 50px; padding: 4px 12px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.5px;
  font-family: 'Gotham', sans-serif;
  box-shadow: 0 2px 10px rgba(255,193,7,0.5);
}
/* Card body */
.recipe-full-card .r-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.recipe-full-card h5 {
  font-size: 1.08rem; margin-bottom: 8px; color: var(--dark-brown); line-height: 1.3;
  font-family: 'Gotham', sans-serif; font-weight: 700;
}
.recipe-full-card .r-desc {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 14px;
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
.r-meta-row {
  display: flex; gap: 14px; align-items: center;
  font-size: 0.76rem; color: var(--text-muted);
  font-family: 'Gotham', sans-serif; font-weight: 400;
  padding: 12px 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light); margin-bottom: 14px;
}
.r-meta-row span { display: flex; align-items: center; gap: 4px; }
.r-meta-row i { color: var(--yellow); }
.recipe-full-card .r-footer { padding: 0 22px 20px; }

/* === Featured Recipe Banner === */
.featured-recipe-banner {
  background: var(--gradient-hero);
  border-radius: 24px; overflow: hidden;
  padding: 0; margin-bottom: 50px;
  position: relative; box-shadow: 0 12px 50px var(--shadow-strong);
}
.featured-recipe-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,193,7,0.12), transparent 60%);
}
.featured-recipe-inner { padding: 48px 44px; position: relative; z-index: 2; }
.featured-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--dark-brown);
  border-radius: 50px; padding: 5px 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; font-family: 'Gotham', sans-serif;
  margin-bottom: 16px;
}
.featured-recipe-emoji { font-size: 8rem; text-align: center; line-height: 1; }

/* === No Results === */
.r-no-results { display: none; text-align: center; padding: 60px 20px; }
.r-no-results.show { display: block; }

/* ============================================================
   RECIPE DETAILS PAGE
   ============================================================ */

/* Hero */
.recipe-detail-hero {
  min-height: 70vh;
  position: relative; display: flex; align-items: flex-end;
  overflow: hidden;
}
.recipe-detail-hero .hero-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20rem; opacity: 0.12; z-index: 0;
  user-select: none; pointer-events: none;
  animation: gentleFloat 7s ease-in-out infinite;
}
.recipe-detail-hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.recipe-detail-hero .hero-content {
  position: relative; z-index: 2;
  padding: 60px 0 40px; width: 100%;
}
.recipe-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
}
.recipe-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25); border-radius: 50px;
  padding: 6px 16px; font-size: 0.78rem; color: white;
  font-family: 'Gotham', sans-serif; font-weight: 500;
}
.recipe-hero-badge.highlight { background: var(--yellow); color: var(--dark-brown); border-color: var(--yellow); }
.recipe-detail-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: white; font-weight: 700; margin-bottom: 12px; line-height: 1.1;
  font-family: 'Gotham', sans-serif;
}
.recipe-detail-title span { color: var(--yellow); }

/* === Sticky Info Panel === */
.recipe-info-sticky {
  position: sticky; top: 90px;
}
.info-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 8px 40px var(--shadow-strong);
  border: 1px solid var(--border-light);
}
.info-card-header {
  background: var(--gradient-yellow);
  padding: 20px 24px;
}
.info-card-header h6 {
  font-family: 'Gotham', sans-serif; font-size: 1rem;
  font-weight: 700; color: var(--dark-brown); margin: 0;
}
.info-stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.info-stat {
  padding: 16px 20px; text-align: center;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.info-stat:nth-child(even) { border-right: none; }
.info-stat:nth-last-child(-n+2) { border-bottom: none; }
.info-stat .i-icon { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.info-stat .i-val {
  font-size: 1rem; font-weight: 700; color: var(--dark-brown);
  display: block; font-family: 'Gotham', sans-serif;
}
.info-stat .i-label {
  font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; font-family: 'Gotham', sans-serif; font-weight: 400;
}

/* === Ingredients Panel === */
.ingredient-list-panel {
  background: white; border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px var(--shadow-warm);
  overflow: hidden; margin-top: 20px;
}
.panel-header {
  padding: 18px 22px; background: var(--cream);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.panel-header h6 {
  font-family: 'Gotham', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--dark-brown); margin: 0;
}
.ingredient-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-bottom: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer;
}
.ingredient-item:last-child { border-bottom: none; }
.ingredient-item:hover { background: var(--yellow-light); }
.ingredient-item .i-name {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--dark-brown); font-weight: 500;
  font-family: 'Gotham', sans-serif;
}
.ingredient-item .i-name::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
  border: 2px solid rgba(255,193,7,0.3);
}
.ingredient-item .i-qty {
  font-size: 0.82rem; font-weight: 700;
  color: var(--chili-red); font-family: 'Gotham', sans-serif;
  background: var(--cream); border-radius: 50px;
  padding: 2px 10px; white-space: nowrap;
}

/* === Steps === */
.steps-section { padding: 50px 0; }
.step-item {
  display: flex; gap: 22px; margin-bottom: 36px;
  position: relative;
}
.step-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 21px; top: 50px; bottom: -22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
}
.step-number {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  background: var(--gradient-yellow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Gotham', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--dark-brown);
  box-shadow: 0 4px 15px rgba(255,193,7,0.4);
  position: relative; z-index: 1;
}
.step-content {
  background: white; border-radius: 16px; padding: 20px 24px;
  border: 1px solid var(--border-light); flex: 1;
  box-shadow: 0 2px 12px var(--shadow-warm);
  transition: var(--transition);
}
.step-content:hover {
  border-color: rgba(255,193,7,0.3);
  box-shadow: 0 6px 25px var(--shadow-warm);
  transform: translateX(4px);
}
.step-content h6 {
  font-size: 0.9rem; font-weight: 700; color: var(--dark-brown);
  margin-bottom: 8px; display: flex; align-items: center; gap: 8px;
  font-family: 'Gotham', sans-serif;
}
.step-content h6 .step-tag {
  background: var(--yellow-light); border: 1px solid rgba(255,193,7,0.4);
  border-radius: 50px; padding: 1px 8px; font-size: 0.65rem;
  color: var(--dark-brown); letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Gotham', sans-serif; font-weight: 700;
}
.step-content p {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin: 0;
  font-family: 'Gotham', sans-serif; font-weight: 400;
}

/* === Tips Panel === */
.tips-panel {
  background: linear-gradient(135deg, #fff8dc, #fff3cd);
  border: 1px solid var(--yellow); border-radius: 20px;
  padding: 28px 28px; margin-top: 30px;
  position: relative; overflow: hidden;
}
.tips-panel::before {
  content: '💡';
  position: absolute; right: 20px; top: 10px;
  font-size: 4rem; opacity: 0.15;
}
.tips-panel h6 {
  font-family: 'Gotham', sans-serif; font-weight: 700;
  color: var(--dark-brown); font-size: 1rem; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.tips-panel ul { padding-left: 0; margin: 0; }
.tips-panel ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-dark);
  line-height: 1.65; padding: 6px 0;
  border-bottom: 1px dashed rgba(255,193,7,0.4);
  font-family: 'Gotham', sans-serif; font-weight: 400;
}
.tips-panel ul li:last-child { border-bottom: none; }
.tips-panel ul li::before {
  content: '✦'; color: var(--yellow); flex-shrink: 0; margin-top: 2px;
}

/* === Share Buttons === */
.share-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--border-light);
  align-items: center;
}
.share-bar span {
  font-size: 0.82rem; color: var(--text-muted);
  font-family: 'Gotham', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  transition: var(--transition); cursor: pointer;
  border: 1.5px solid; font-family: 'Gotham', sans-serif; text-decoration: none;
}
.share-btn.wa  { border-color: #25D366; color: #25D366; }
.share-btn.wa:hover  { background: #25D366; color: white; }
.share-btn.fb  { border-color: #1877F2; color: #1877F2; }
.share-btn.fb:hover  { background: #1877F2; color: white; }
.share-btn.tw  { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.tw:hover  { background: #1DA1F2; color: white; }
.share-btn.cp  { border-color: var(--border-light); color: var(--text-muted); }
.share-btn.cp:hover  { background: var(--cream); color: var(--dark-brown); border-color: var(--dark-brown); }

/* === Nutrition strip === */
.nutrition-strip {
  background: var(--dark-brown); border-radius: 16px;
  padding: 20px 24px; margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 0; overflow: hidden;
}
.nutr-item {
  flex: 1; min-width: 70px; text-align: center;
  padding: 10px 8px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.nutr-item:last-child { border-right: none; }
.nutr-val {
  font-family: 'Gotham', sans-serif; font-size: 1.3rem;
  font-weight: 700; color: var(--yellow); display: block;
}
.nutr-label {
  font-size: 0.65rem; color: rgba(255,255,255,0.55); text-transform: uppercase;
  letter-spacing: 1px; font-family: 'Gotham', sans-serif; font-weight: 400;
}

/* === Responsive === */
@media (max-width: 991px) {
  .recipe-filter-bar { margin-top: 20px; }
  .recipe-info-sticky { position: static; }
  .recipe-detail-hero { min-height: 50vh; }
}
@media (max-width: 767px) {
  .featured-recipe-inner { padding: 32px 24px; }
  .recipe-detail-hero .hero-bg { font-size: 12rem; }
  .info-stat-grid { grid-template-columns: 1fr 1fr; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 575px) {
  .recipe-filter-bar { padding: 16px 18px; }
  .step-item::before { display: none; }
}

/* ============================================================
   RECIPE DETAILS — additional styles (v2)
   ============================================================ */

/* Breadcrumb inside dark hero */
.breadcrumb-custom {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-family: 'Gotham', sans-serif; font-weight: 400;
}
.breadcrumb-custom a { color: var(--yellow); text-decoration: none; transition: var(--transition); }
.breadcrumb-custom a:hover { color: white; }
.breadcrumb-custom .current { color: rgba(255,255,255,.85); }

/* Prev/Next product nav (reused for recipes) */
.product-nav-arrows {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.product-nav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: white; border: 1px solid var(--border-light);
  border-radius: 14px; padding: 14px 20px;
  text-decoration: none; transition: var(--transition);
  box-shadow: 0 3px 14px var(--shadow-warm);
  font-family: 'Gotham', sans-serif; font-weight: 500;
}
.product-nav-btn:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 30px var(--shadow-strong);
  transform: translateY(-3px);
}
.product-nav-btn i { color: var(--yellow); font-size: 1.2rem; }

/* btn-details (used on related recipe cards) */
.btn-details {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--dark-brown); color: var(--yellow) !important;
  border-radius: 50px; padding: 10px 22px;
  font-size: .82rem; font-weight: 700;
  font-family: 'Gotham', sans-serif;
  text-decoration: none; transition: var(--transition);
}
.btn-details:hover {
  background: var(--yellow); color: var(--dark-brown) !important;
  transform: translateX(4px);
}

/* Gentle float animation for hero emoji */
@keyframes gentleFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}