/* Three Column Card Block Frontend Styles */

/* Font families - Use design system fonts */
.apolline-std {
    font-family: 'Libre Baskerville', serif;
}

.related-recipes-block-single .max-w-7xl {
    max-width: 1440px !important;
    padding-inline: 28px;
}

.related-recipes-block-single .ml-auto {
    display: none;
}

.related-recipes-block-single .button-three-col-card {
    display: none;
}

.related-recipes-block-single{
    border-top: 1px solid !important;
}

.related-pages-block-single .container-related-pages {
    max-width: 1440px !important;
}

.sora-font {
    font-family: 'Sora', sans-serif;
}

.azo-sans {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
 
/* Block container */
.three-col-card-block {
    background: var(--color-green-200);
    padding: 80px 28px;
}

/* Responsive layout */
@media (max-width: 768px) {
 
    
    .three-col-card-block h2 {
        font-size: 2.5rem !important;
        line-height: 0.95 !important;
    }
    
    .three-col-card-block .flex-wrap {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .three-col-card-block .text-right {
        text-align: left !important;
        margin-left: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 640px) {
 
    
    .three-col-card-block h2 {
        font-size: 2rem !important;
    }
    
    .three-col-card-block .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

/* Recipe cards */
.recipe-card {
    transition: transform 0.2s ease;
}
.recipe-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 217, 0, 0.2);
    transition: opacity 0.3s ease;
    opacity: 0;
}



.recipe-card img {
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.recipe-card img.fade-in {
    opacity: 1;
}


/* Cook time section */
.recipe-card .border-b {
    border-color: #989371;
}

/* Category tag */
.recipe-card .bg-\[#FBEB8F\] {
    background-color:var(--color-yellow-200);
    border-radius: 0;
    padding: 0 4px;
}

/* CTA Button */
.cta-button {
    transition: all 0.2s ease !important;
    background-color:var(--color-yellow-200);
    border: 1px solid #D4D2C4;
    border-radius: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    max-width: 420px;
    width: 100%;
}

.cta-button:hover {
  transition: all 0.2s ease !important;
  background-color: #5D3525 !important;
  color: var(--color-yellow-200, #FBEB8F) !important ;
}

.cta-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Grid responsive adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .three-col-card-block .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .three-col-card-block .grid .recipe-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }
}


/* Slide */

.splide--mobile-cards {
    position: relative;
}

.splide--mobile-cards .splide__track {
    overflow: hidden;
    border-radius: 0;
}

.splide--mobile-cards .splide__slide {
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.splide__track {
    border-radius: 0;
}
/* Custom Mobile Navigation */
.mobile-carousel-prev,
.mobile-carousel-next {

    background-color: unset;

}


.mobile-carousel-pagination {
    user-select: none;
    min-width: 3rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.5;
}

.mobile-carousel-pagination .current-slide {
    font-weight: 700;
    color: #000000;
}


.recipe-card h3 {
    font-family: 'Apolline Std', serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.17;
    letter-spacing: 0.02em;
    color: #373A19;
    text-transform: capitalize;
}

/* Accessibility improvements */
.recipe-card {
    position: relative;
}

.recipe-card:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .three-col-card-block {
        background: white !important;
        color: black !important;
    }
    
    .cta-button {
        display: none;
    }
    
    .recipe-card {
        break-inside: avoid;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .three-col-card-block {
        background: white;
        color: black;
    }
    
    .recipe-card .border-b {
        border-color: black;
    }
    
    .cta-button {
        background: white;
        border: 2px solid black;
        color: black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .recipe-card,
    .cta-button,
    .recipe-card img {
        transition: none;
    }
    
    .animate-in {
        animation: none;
    }
    
    .recipe-card:hover {
        transform: none;
    }
}