        /* ===== VARIÁVEIS E RESET ===== */
:root {
    --primary: #a52a2a;
    --primary-dark: #d4af37;
    --primary-light: #a52a2a;
    --accent: #d4af37;
    --accent-light: #d4af37;
    --accent-dark: #d4af37;
    --neutral: #F5F1E8;
    --neutral-dark: #E8E1D3;
    --neutral-light: #FDFBF5;
    --text: #3C2F2F;
    --text-light: #7A6A6A;
    --success: #2E8B57;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    --shadow-light: 0 6px 16px rgba(0, 0, 0, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.4s 
cubic-bezier(0.175, 0.885, 0.32, 1.1);

      --main-bg-color: #f8f5f0;
      --header-color: #a52a2a;
      --accent-color: #d4af37;
      --secondary-accent: #c19b76;
      --text-color: #333;
      --light-text: #777;
      --border-color: #8b4513;
      --card-bg: #fefdf9;
      --shadow: 0 10px 30px rgba(0,0,0,0.08);
      --transition: all 0.3s ease;
      --checked-color: #27ae60;
      --ingredient-bg: #fffaf0;
      --step-bg: #fcf8f2;
      --header-bg: #a52a2a;
}

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

    /* ===== BODY E FUNDO ===== */
    body {
      font-family: 'Playfair Display', 'Georgia', serif;
      background-color: var(--main-bg-color);
      color: var(--text-color);
      line-height: 1.7;
      padding: 0;
      max-width: 1400px;
      margin: 0 auto;
      background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23f8f5f0'/%3E%3Cpath d='M0 0l100 100M100 0L0 100' stroke='%23e8e1d3' stroke-width='0.9'/%3E%3C/svg%3E");
      position: relative;
      overflow-x: hidden;
    }
    
    /* ===== CONTAINER PRINCIPAL ===== */
    .main-container {
      max-width: 1200px;
      margin: 0 auto;
      animation: fadeIn 0.8s ease-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ===== CABEÇALHO ===== */
    .recipe-header {
      text-align: center;
      margin-bottom: 5px;
      position: relative;
      padding-top: 20px;
    }


    .recipe-title {
      font-family: 'Playfair Display', serif;
      font-size: 4.5rem;
      font-weight: 800;
      color: var(--primary);
      margin: 15px 0 5px;
      line-height: 1.2;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
      position: relative;
      display: inline-block;
    }


    .recipe-title::before,
    .recipe-title::after {
    content: "✶";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 3rem;
    text-shadow: none;
}

.recipe-title::before {
    left: -55px;
}

.recipe-title::after {
    right: -55px;
}


.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--header-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.back-link:hover {
  color: #d4af37;
  transform: translateX(-5px);
}

/* Ajuste para o container do subtítulo */
.recipe-subtitle {
  margin: 0;
  padding: 15px 30px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}
    /* ===== SEÇÃO PRINCIPAL COM GRID ===== */
    .hero-section {
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 40px;
      margin-bottom: -30px;
    }

    /* ===== IMAGEM COM TAMANHO FIXO ===== */
    .recipe-image-wrapper {
      position: relative;
      border-radius: 5px;
      overflow: hidden;
      box-shadow: var(--shadow);
      height: 458px;
      transition: var(--transition);
    }

    .recipe-image-wrapper:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

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

    .recipe-image-wrapper:hover .recipe-image {
      transform: scale(1.05);
    }

    .image-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 25px;
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .recipe-status {
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: white;
      padding: 8px 18px;
      border-radius: 30px;
      font-weight: 600;
      font-size: 0.95rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .image-credit {
      font-size: 0.9rem;
      opacity: 0.9;
    }

    /* ===== CARTÃO DE INFORMAÇÕES ===== */
    .info-card {
      background: var(--neutral-light);
      padding: 32px 30px;
      border-radius: 5px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(139, 69, 19, 0.1);
      position: relative;
      overflow: hidden;
      height: fit-content;
    }

    .info-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 6px;
      background: var(--primary);
      border-radius: var(--radius) var(--radius) 0 0;
    }

    .info-card-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 2px solid rgba(139, 69, 19, 0.1);
    }

    .info-card-header i {
      color: var(--accent);
      font-size: 1.4rem;
    }

    .info-card-header h2 {
      font-size: 1.5rem;
      color: var(--primary);
      font-weight: 700;
    }

    .info-grid {
      display: grid;
      gap: 25px;
    }

    .info-item {
      display: grid;
      grid-template-columns: 50px 1fr;
      gap: 15px;
      align-items: center;
      padding: 20px 18px;
      background: white;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-light);
      transition: var(--transition);
      border-left: 4px solid var(--accent);
    }

    .info-item:hover {
      transform: translateX(5px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .info-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, var(--accent), var(--accent-dark));
      color: white;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      box-shadow: 0 4px 10px rgba(218, 165, 32, 0.3);
    }

    .info-content {
      display: flex;
      flex-direction: column;
    }

    .info-label {
      font-size: 0.85rem;
      color: var(--text-light);
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }

    .info-value {
      font-size: 1.2rem;
      color: var(--primary-dark);
      font-weight: 700;
    }

   /* ===== CONTAINER PARA INFO-CARD E BOTÃO ===== */
.info-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  top: -71px;
}

.print-button-container {
  display: flex;
  justify-content: flex-end;
}

.print-btn {
  padding: 10px 20px;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.print-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
}

/* ===== BOTÃO PARA MOBILE ===== */
.mobile-print-container {
  display: none; /* Escondido por padrão */
}

.mobile-only {
  display: none; /* Escondido por padrão */
}

.desktop-only {
  display: flex; /* Visível por padrão */
}

/* ===== VERSÃO RESPONSIVA ===== */

/* Dispositivos móveis (até 768px) */
@media (max-width: 768px) {
  /* Remover o top negativo para mobile */
  .info-card-wrapper {
    top: 0;
    gap: 25px;
  }
  
  /* Esconder botão desktop e mostrar botão mobile */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-print-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    order: 2; /* Coloca o botão entre imagem e info-card */
  }
  
  .mobile-only {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    justify-content: center;
  }
  
  /* Reorganizar ordem dos elementos no grid */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }
  
  .recipe-image-wrapper {
    order: 1;
  }
  
  .mobile-print-container {
    order: 2;
  }
  
  .info-card-wrapper {
    order: 3;
    margin-top: 0;
  }
  
  .print-button-container {
    justify-content: center;
  }
  
  .print-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
  }
}

/* Tablets (769px a 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .info-card-wrapper {
    gap: 18px;
    top: -71px;
  }
  
  /* Garantir que o mobile button fique escondido */
  .mobile-print-container {
    display: none;
  }
  
  .desktop-only {
    display: flex;
  }
}

/* Desktop (acima de 1024px) */
@media (min-width: 1025px) {
  /* Garantir que o mobile button fique escondido */
  .mobile-print-container {
    display: none;
  }
  
  .desktop-only {
    display: flex;
  }
}

/* Impressão */
@media print {
  .print-button-container,
  .mobile-print-container {
    display: none !important;
  }
}

    /* ===== SEÇÕES DE CONTEÚDO ===== */
    .content-section {
      background: var(--neutral-light);
      border-radius: var(--radius);
      padding: 35px;
      margin-bottom: 40px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(139, 69, 19, 0.1);
      position: relative;
      overflow: hidden;
    }

    .section-header {
      display: flex;
      align-items: center;
      gap: 15px;
      margin-bottom: 30px;
      padding-bottom: 15px;
      border-bottom: 2px solid rgba(139, 69, 19, 0.15);
    }

    .section-icon {
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: white;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      box-shadow: 0 4px 10px rgba(139, 69, 19, 0.3);
    }

    .section-title {
      font-size: 1.8rem;
      color: var(--primary);
      font-weight: 700;
      flex: 1;
    }

    .section-count {
      background: var(--accent);
      color: white;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 600;
    }

    /* ===== INGREDIENTES ===== */
    .ingredients-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 15px;
    }

    .ingredient-item {
      background: white;
      padding: 18px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-light);
      display: flex;
      align-items: center;
      gap: 15px;
      transition: var(--transition);
      border: 2px solid transparent;
      position: relative;
      overflow: hidden;
    }

    .ingredient-item::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--primary);
      opacity: 0;
      transition: var(--transition);
    }

    .ingredient-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

    .ingredient-item:hover::before {
      opacity: 1;
    }

    .ingredient-checkbox {
      appearance: none;
      width: 24px;
      height: 24px;
      border: 2px solid var(--neutral-dark);
      border-radius: 6px;
      position: relative;
      cursor: pointer;
      flex-shrink: 0;
      transition: var(--transition);
    }

    .ingredient-checkbox:checked {
      background: var(--success);
      border-color: var(--success);
    }

    .ingredient-checkbox:checked::after {
      content: "✓";
      position: absolute;
      color: white;
      font-size: 14px;
      font-weight: bold;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    .ingredient-text {
      font-size: 1.1rem;
      color: var(--text);
      flex: 1;
      transition: var(--transition);
    }

    .ingredient-checkbox:checked ~ .ingredient-text {
      color: var(--text-light);
      text-decoration: line-through;
    }

    /* ===== MODO DE PREPARO ===== */
    .steps-container {
      counter-reset: step-counter;
    }

    .step-item {
      background: white;
      padding: 28px 28px 28px 100px;
      border-radius: var(--radius-sm);
      margin-bottom: 20px;
      box-shadow: var(--shadow-light);
      position: relative;
      counter-increment: step-counter;
      transition: var(--transition);
      border-left: 4px solid transparent;
    }

    .step-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
      border-left-color: var(--accent);
    }


    .step-number {
      position: absolute;
      left: 25px;
      top: 50%;
      transform: translateY(-50%);
      width: 55px;
      height: 55px;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 1.4rem;
      box-shadow: 0 6px 20px rgba(139, 69, 19, 0.3);
      font-family: 'Playfair Display', serif;
    }

    .step-content {
      font-size: 1.1rem;
      line-height: 1.8;
      color: var(--text);
    }

    .step-item:last-child {
      margin-bottom: 0;
    }

    /* ===== BOTÕES DE AÇÃO ===== */
   .action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: 2px solid var(--header-color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--header-color);
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--header-color);
  transition: var(--transition);
  z-index: -1;
  border-radius: 50px;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  color: white;
  box-shadow: 0 5px 15px rgba(165, 42, 42, 0.3);
  transform: translateY(-2px);
}

/* Versões com cores diferentes */
.btn-primary {
  border-color: var(--header-color);
  color: var(--header-color);
}

.btn-primary:before {
  background: var(--header-color);
}

.btn-secondary {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:before {
  background: var(--accent-color);
}

.btn-secondary:hover {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  border-color: var(--header-color);
  color: var(--header-color);
}

.btn-outline:before {
  background: var(--header-color);
}


    /* ===== ANIMAÇÕES EXTRAS ===== */
    .fade-in {
      animation: fadeIn 0.8s ease-out;
    }

    .slide-up {
      animation: slideUp 0.6s ease-out;
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* ===== DECORAÇÕES ===== */
    .decoration-leaf {
      position: fixed;
      font-size: 4rem;
      color: rgba(218, 165, 32, 19%);
      z-index: -1;
      pointer-events: none;
    }

    .leaf-1 { top: 10%; left: 5%; transform: rotate(45deg); }
    .leaf-2 { top: 20%; right: 5%; transform: rotate(-30deg); }
    .leaf-3 { bottom: 20%; left: 8%; transform: rotate(60deg); }
    .leaf-4 { bottom: 10%; right: 10%; transform: rotate(-45deg); }

    /* ===== BADGE DE CATEGORIA ===== */
.category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.category-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.category-doce {
    background: linear-gradient(135deg, #d4af37, #c19b76);
    color: whitesmoke;
}

.category-salgado {
    background: linear-gradient(135deg, #a52a2a, #8b4513);
    color: whitesmoke;
}

.category-badge i {
    font-size: 1rem;
}

@keyframes pulse {
    0% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    }
    100% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}