/* ============================================
   PRIETO ALIMENTOS - Receitas Page
   ============================================ */

.receitas-header {
    padding-top: calc(var(--navbar-height) + var(--space-3xl));
    padding-bottom: var(--space-2xl);
    background: var(--prieto-white);
}

.receitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
    padding-bottom: var(--space-5xl);
}

/* Recipe Card */
.recipe-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--prieto-dark);
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 50px rgba(180, 180, 180, 0.2),
                0 25px 50px rgba(0, 0, 0, 0.05);
}

.recipe-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8d5c4, #d4b896);
    font-size: 3rem;
}

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

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

.recipe-card-overlay {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.recipe-tag {
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.recipe-tag-time {
    background: rgba(0, 0, 0, 0.5);
    color: var(--prieto-white);
}

.recipe-tag-difficulty {
    background: rgba(200, 16, 46, 0.85);
    color: var(--prieto-white);
}

.recipe-card-body {
    padding: var(--space-lg);
}

.recipe-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.recipe-card-desc {
    font-size: var(--fs-sm);
    color: var(--prieto-gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.recipe-card-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: var(--fs-xs);
    color: var(--prieto-gray-400);
}

.recipe-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recipe-card-meta svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   Recipe Detail Page
   ============================================ */
.recipe-detail-hero {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #e8d5c4, #d4b896);
}

.recipe-detail-hero-bg {
    position: absolute;
    inset: 0;
}

.recipe-detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.recipe-detail-hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-3xl);
    color: var(--prieto-white);
    width: 100%;
}

.recipe-detail-hero-content h1 {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-md);
}

.recipe-detail-meta {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.recipe-detail-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    opacity: 0.8;
}

.recipe-detail-meta-item svg {
    width: 18px;
    height: 18px;
}

/* Recipe Detail Body */
.recipe-detail-body {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 0;
}

/* Ingredients */
.recipe-ingredients {
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-xl));
    align-self: start;
}

.recipe-ingredients h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--prieto-red);
}

.recipe-ingredients ul {
    list-style: none;
}

.recipe-ingredients li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--prieto-gray-200);
    font-size: var(--fs-sm);
    color: var(--prieto-gray-600);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.recipe-ingredients li:hover {
    color: var(--prieto-dark);
    padding-left: var(--space-sm);
}

.recipe-ingredients li .check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--prieto-gray-300);
    flex-shrink: 0;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-ingredients li.checked .check {
    background: var(--prieto-red);
    border-color: var(--prieto-red);
}

.recipe-ingredients li.checked {
    text-decoration: line-through;
    color: var(--prieto-gray-400);
}

/* Steps */
.recipe-steps h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--prieto-red);
}

.recipe-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--prieto-gray-200);
}

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

.recipe-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--prieto-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--prieto-red);
    flex-shrink: 0;
}

.recipe-step-text {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--prieto-gray-600);
}

/* Product suggestion */
.recipe-product-suggestion {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: var(--prieto-gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.recipe-product-suggestion-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--prieto-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.recipe-product-suggestion h4 {
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--prieto-red);
    margin-bottom: var(--space-xs);
}

.recipe-product-suggestion h3 {
    border-bottom: none;
    margin-bottom: var(--space-sm);
    padding-bottom: 0;
    font-size: var(--fs-md);
}

.recipe-product-suggestion p {
    font-size: var(--fs-sm);
    color: var(--prieto-gray-500);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .receitas-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-detail-body {
        grid-template-columns: 1fr;
    }
    
    .recipe-ingredients {
        position: static;
    }
    
    .recipe-product-suggestion {
        flex-direction: column;
        text-align: center;
    }
}
