/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Recipe Hero */
.recipe-hero {
    background: linear-gradient(135deg, #2d1b45 0%, #1e293b 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.recipe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.recipe-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.recipe-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 3rem;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.meta-icon {
    font-size: 2rem;
}

.meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.meta-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

/* Recipe Content */
.recipe-content {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.main-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Recipe Image */
.recipe-image-section {
    margin-bottom: 3rem;
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.image-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.recipe-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-container:hover .recipe-main-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-expand-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-expand-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
}

/* Recipe Sections */
.recipe-section {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #7c3aed, transparent);
    margin-left: 1rem;
}

.title-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Ingredients */
.ingredients-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.ingredients-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.ingredient-item:hover {
    border-color: #7c3aed;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

.ingredient-item.optional {
    opacity: 0.8;
    border-left: 4px solid #f59e0b;
}

.ingredient-item.optional::before {
    content: 'Opcional';
    position: absolute;
    top: -8px;
    right: 1rem;
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
}

.ingredient-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    accent-color: #7c3aed;
    cursor: pointer;
}

.ingredient-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
    flex: 1;
}

.ingredient-amount {
    font-weight: 700;
    color: #7c3aed;
    font-size: 0.9rem;
}

.ingredient-name {
    color: #1e293b;
    font-size: 1.1rem;
}

.ingredient-item.checked {
    background: #f0f9ff;
    border-color: #10b981;
}

.ingredient-item.checked .ingredient-name {
    text-decoration: line-through;
    opacity: 0.7;
}

.ingredients-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-shopping-list,
.btn-scale-recipe {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-shopping-list:hover,
.btn-scale-recipe:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Instructions */
.instructions-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.instructions-list {
    list-style: none;
    display: grid;
    gap: 2rem;
}

.instruction-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.instruction-step:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.instruction-step.completed {
    background: #f0f9ff;
    border-color: #10b981;
}

.instruction-step.completed .step-number {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.step-number {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
}

.instruction-step:hover .step-number {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.step-timer,
.step-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1rem;
}

.step-timer {
    background: rgba(251, 146, 60, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.step-tip {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timer-icon,
.tip-icon {
    font-size: 1rem;
}

/* Tips */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #10b981);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tip-card:hover {
    border-color: #7c3aed;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.tip-card:hover::before {
    transform: scaleX(1);
}

.tip-card .tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.tip-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.tip-description {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Sidebar */
.sidebar {
    display: grid;
    gap: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.card-title .title-icon {
    font-size: 1.5rem;
    padding: 0.25rem;
}

/* Nutrition Info */
.nutrition-info {
    display: grid;
    gap: 1rem;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.nutrition-item:last-child {
    border-bottom: none;
}

.nutrition-label {
    color: #64748b;
    font-weight: 500;
}

.nutrition-value {
    font-weight: 700;
    color: #1e293b;
}

/* Benefits */
.benefits-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.benefit-icon {
    font-size: 1.25rem;
    width: 30px;
    text-align: center;
}

.benefit-text {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

/* CTA Card */
.cta-card {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

.cta-card .card-title,
.cta-description {
    position: relative;
    z-index: 2;
}

.cta-card .card-title {
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-buy-overberry {
    background: white;
    color: #7c3aed;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-buy-overberry:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.product-features {
    display: grid;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.feature {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Share Buttons - ATUALIZADO COM ÍCONES CORRETOS */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #374151;
    padding: 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.share-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: transparent;
}

.share-btn.copy:hover {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.share-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Related Recipes */
.related-recipes {
    background: #f8fafc;
    padding: 4rem 2rem;
}

.related-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.related-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.related-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    padding: 1.5rem 1.5rem 0.5rem;
}

.related-category {
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 1.5rem 1.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sidebar {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        position: static;
    }
}

@media (max-width: 768px) {
    .recipe-hero {
        padding: 6rem 1.5rem 3rem;
    }

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

    .recipe-subtitle {
        font-size: 1.1rem;
    }

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

    .meta-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .meta-icon {
        font-size: 1.5rem;
    }

    .recipe-content {
        padding: 3rem 1.5rem;
    }

    .main-content {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-title::after {
        display: none;
    }

    .instruction-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .tips-container {
        grid-template-columns: 1fr;
    }

    .ingredients-actions {
        flex-direction: column;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .recipe-hero {
        padding: 5rem 1rem 2.5rem;
    }

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

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

    .main-content {
        padding: 1.5rem;
    }

    .sidebar-card {
        padding: 1.5rem;
    }

    .recipe-main-img {
        height: 250px;
    }

    .instruction-step {
        padding: 1.5rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}