/* ========================================
   SINGLE RECIPE CARD - FULL DISPLAY
   ======================================== */

.recipe-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  animation: fadeInUp 0.6s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Recipe Header with Image */
.recipe-header {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

.recipe-card:hover .recipe-image {
  /* Disabled scale to prevent layout breaking */
  /* transform: scale(1.05); */
}

.recipe-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 32px;
}

.recipe-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.recipe-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.recipe-meta span {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Recipe Macros Section */
.recipe-macros {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid var(--glass-border);
}

.recipe-macros .macro-item {
  padding: 28px;
  text-align: center;
  border-right: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
  background: transparent;
  border-radius: 0;
}

.recipe-macros .macro-item:last-child {
  border-right: none;
}

.recipe-macros .macro-item:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: none;
}

.recipe-macros .macro-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--neon-orange);
  line-height: 1;
  margin-bottom: 8px;
}

.recipe-macros .macro-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Recipe Sections */
.recipe-section {
  padding: 32px;
  border-bottom: 1px solid var(--glass-border);
}

.recipe-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Ingredients List */
.ingredients-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border-left: 3px solid var(--neon-orange);
  transition: var(--transition-smooth);
}

.ingredient-item:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(4px);
}

.ingredient-amount {
  font-weight: 700;
  color: var(--neon-orange);
  min-width: 80px;
  font-size: 0.95rem;
}

.ingredient-name {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-blue));
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
}

.add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  transition: left 0.3s;
  z-index: -1;
}

.add-to-cart-btn:hover::before {
  left: 0;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.6), var(--glow-orange);
}

.cart-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Instructions List */
.instructions-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  counter-increment: step-counter;
  transition: var(--transition-smooth);
}

.instruction-step:hover {
  background: rgba(255, 107, 53, 0.05);
  transform: translateX(4px);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-blue));
  color: #000;
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.step-number::before {
  content: counter(step-counter);
}

.step-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 8px;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
}

.tip-item {
  padding: 12px 16px;
  margin-bottom: 10px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--neon-orange);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: var(--transition-smooth);
}

.tip-item:hover {
  background: rgba(255, 107, 53, 0.15);
  transform: translateX(4px);
}

/* Recipe Tags */
.recipe-tags {
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recipe-tag {
  padding: 8px 16px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-blue);
  text-transform: lowercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.recipe-tag:hover {
  background: rgba(102, 126, 234, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive - Recipe Card */
@media (max-width: 768px) {
  .recipe-header {
    height: 300px;
  }

  .recipe-title {
    font-size: 1.8rem;
  }

  .recipe-macros {
    grid-template-columns: repeat(2, 1fr);
  }

  .recipe-macros .macro-item {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .recipe-macros .macro-item:nth-child(2n) {
    border-right: none;
  }

  .recipe-section {
    padding: 24px;
  }

  .section-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .recipe-header {
    height: 250px;
  }

  .recipe-title {
    font-size: 1.5rem;
  }

  .recipe-meta {
    flex-direction: column;
    gap: 8px;
  }

  .recipe-macros {
    grid-template-columns: 1fr;
  }

  .recipe-macros .macro-item {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .recipe-macros .macro-item:last-child {
    border-bottom: none;
  }

  .ingredient-amount {
    min-width: 60px;
  }

  .instruction-step {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    align-self: flex-start;
  }
}