/* ==========================================================================
   CWC.PLUS • LUXURY EDITORIAL CULINARY UI / UX STYLESHEET
   ========================================================================== */

:root {
  --bg-main: #0b0d11;
  --bg-card: #13171f;
  --bg-elevated: #1b202c;
  --bg-glass: rgba(19, 23, 31, 0.85);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gold-primary: #e5a93c;
  --gold-hover: #f59e0b;
  --gold-glow: rgba(229, 169, 60, 0.2);
  
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 60, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(229, 169, 60, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.cwc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.brand-monogram {
  color: var(--text-primary);
}

.brand-plus {
  color: var(--gold-primary);
  margin-left: 2px;
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-search-bar input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.9rem;
  padding: 10px 40px 10px 38px;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.nav-search-bar input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-shortcut {
  position: absolute;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-unlock {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-unlock:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary-bundle {
  background: linear-gradient(135deg, #e5a93c 0%, #d97706 100%);
  color: #0b0d11;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.btn-primary-bundle:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* ── HERO HEADER ── */
.cwc-hero {
  padding: 50px 24px 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(229, 169, 60, 0.08) 0%, transparent 65%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-pill.gold {
  color: var(--gold-primary);
  border-color: var(--border-gold);
  background: var(--gold-glow);
}

/* ── FILTER SECTION ── */
.filter-section {
  position: sticky;
  top: 65px;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.volume-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  white-space: nowrap;
}

.volume-pills, .category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.volume-pills::-webkit-scrollbar, .category-pills::-webkit-scrollbar {
  display: none;
}

.vol-pill, .cat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.vol-pill:hover, .cat-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.vol-pill.active, .cat-pill.active {
  background: var(--gold-primary);
  color: #0b0d11;
  border-color: var(--gold-primary);
  font-weight: 700;
}

/* ── RECIPE GRID ── */
.recipe-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.results-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── RECIPE CARD ── */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.recipe-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card), 0 0 20px rgba(229, 169, 60, 0.15);
}

.card-media-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.card-badge-vol {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 13, 17, 0.8);
  backdrop-filter: blur(8px);
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
}

.card-badge-video {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(220, 38, 38, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-info {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
  flex: 1;
}

.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.meta-lock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.meta-lock-status.unlocked {
  color: var(--accent-emerald);
}

.meta-lock-status.locked {
  color: var(--gold-primary);
}

/* ── RECIPE DRAWER / MODAL ── */
.recipe-modal-backdrop, .access-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.recipe-modal-backdrop.open, .access-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.recipe-drawer {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.recipe-modal-backdrop.open .recipe-drawer {
  transform: translateX(0);
}

.drawer-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(11, 13, 17, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: #ffffff;
  color: #0b0d11;
}

.drawer-header-media {
  position: relative;
  width: 100%;
  background: #000000;
}

.drawer-header-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

.drawer-header-media iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.drawer-body {
  padding: 30px;
}

.drawer-meta-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badge-vol {
  background: var(--gold-glow);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-cat, .badge-time {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.drawer-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 20px;
}

/* Portion Scaler */
.portion-scaler-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.scaler-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.scaler-btns {
  display: flex;
  gap: 6px;
}

.scaler-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.scaler-btn.active {
  background: var(--gold-primary);
  color: #0b0d11;
  font-weight: 700;
  border-color: var(--gold-primary);
}

/* Ingredients & Steps */
.section-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 30px;
}

.ing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.ing-item input[type="checkbox"] {
  accent-color: var(--gold-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--gold-glow);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Paywall Locked Box */
.paywall-box {
  background: linear-gradient(180deg, rgba(229, 169, 60, 0.08) 0%, rgba(19, 23, 31, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  margin-top: 20px;
}

.paywall-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
  margin-bottom: 12px;
}

.paywall-title {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.paywall-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-buy-vol {
  width: 100%;
  background: linear-gradient(135deg, #e5a93c 0%, #d97706 100%);
  color: #0b0d11;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}

.btn-buy-vol:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-buy-bundle {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-buy-bundle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Access Modal */
.access-modal-backdrop {
  justify-content: center;
  align-items: center;
}

.access-card {
  width: 90%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
}

.access-icon {
  font-size: 2.5rem;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.access-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.access-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.input-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.input-group input:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.btn-check-access {
  width: 100%;
  background: var(--gold-primary);
  color: #0b0d11;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
}

#access-status-msg {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cwc-nav {
    padding: 10px 16px;
  }
  .nav-search-bar {
    display: none;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .recipe-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .drawer-body {
    padding: 20px;
  }
}

/* ── EDITORIAL PLACEHOLDER CARDS (FOR TEXT-ONLY RECIPES) ── */
.placeholder-media {
  background: radial-gradient(circle at 50% 50%, #1e2433 0%, #11141c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.placeholder-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold-primary);
  opacity: 0.85;
}

.placeholder-graphic i {
  font-size: 2.5rem;
  filter: drop-shadow(0 0 12px rgba(229, 169, 60, 0.3));
}

.placeholder-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-placeholder-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 50%, #1e2433 0%, #11141c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 3.5rem;
}
