/* ==========================================================================
   ₹99 की रसोई - डिजिटल रेसिपी कुकबुक व वेब रीडर
   ========================================================================== */

:root {
  --bg-main: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-subtle: #19243c;
  --bg-pill: rgba(245, 158, 11, 0.12);
  --border-color: rgba(212, 175, 55, 0.22);
  --border-highlight: rgba(245, 158, 11, 0.45);
  --gold: #d4af37;
  --gold-light: #fbbf24;
  --amber: #f59e0b;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.reader-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* Header & Controls */
.reader-hero {
  text-align: center;
  padding: 24px 16px 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-color);
  color: var(--gold-light);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.reader-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.reader-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Sticky Search & Filter Bar */
.reader-controls {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 0 16px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reader-search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto 14px;
}

.reader-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 20px 12px 44px;
  border-radius: 30px;
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.reader-search-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.reader-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 1.1rem;
}

.reader-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
}

.reader-categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-btn:hover {
  color: #fff;
  border-color: var(--border-color);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #000;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.results-meta {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-subtle);
  margin-top: 8px;
}

/* Recipes Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

/* Single Recipe Card */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.recipe-header {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recipe-num-badge {
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 12px;
}

.recipe-cat-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.recipe-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #070a12;
  position: relative;
}

.recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.recipe-card:hover .recipe-img {
  transform: scale(1.03);
}

.recipe-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recipe-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

/* Quick Info Badges */
.recipe-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.recipe-pill {
  background: var(--bg-card-subtle);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 6px 4px;
  text-align: center;
}

.recipe-pill-label {
  font-size: 0.68rem;
  color: var(--text-subtle);
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.recipe-pill-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ingredients Section */
.recipe-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ingredient-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

/* Cooking Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.step-num {
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Chef Tip & Notes */
.recipe-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.recipe-box b {
  color: var(--gold-light);
}

.recipe-health-box {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.recipe-health-box b {
  color: #34d399;
}

@media (max-width: 768px) {
  .recipes-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .reader-hero h1 {
    font-size: 1.7rem;
  }
  .reader-controls {
    top: 50px;
  }
  .cat-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}