/* Recipe Cards Styles */

/* Recipe Cards Container - match flipbook width */
.container.hero-container {
    background-color: #20481c !important;
}

#recipesSection {
   background-color: #20481c !important; 
}

.container.recipes-container {
    --center: #44823e;
  /* svetlija zelena u sredini */
  --corner: #143211;
  /* tamna zelena u uglovima */

  /* 4 radijalna gradijenta u uglovima + osnovna boja u centru */
  background: radial-gradient(140% 110% at 0% 0%, var(--corner) 0 15%, transparent 85%),
    radial-gradient(140% 110% at 100% 0%, var(--corner) 0 15%, transparent 85%),
    radial-gradient(140% 110% at 0% 100%, var(--corner) 0 15%, transparent 85%),
    radial-gradient(140% 110% at 100% 100%, var(--corner) 0 15%, transparent 85%), var(--center);

  /* Estetika kutije (opciono) */
  border-radius: 20px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
  /* blago zatamnjenje ivica */
  padding: 2rem;
}

.recipe-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    border: 4px solid var(--recipe-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.recipe-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.recipe-card {
    transition: all 0.5s ease;
    margin-bottom: 30px;
}

.recipe-preview {
    transition: all 0.5s ease;
}

.recipe-card.expanded .recipe-preview {
    display: none !important;
}

.recipe-expanded-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.recipe-card.expanded .recipe-expanded-content {
    display: block !important;
    opacity: 1;
    animation: fadeIn 0.5s ease;
    margin: 2rem;
}

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

.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 1rem;
}

.expanded-header .recipe-category-badge:first-child {
    margin: 0;
}

.expanded-header .recipe-category-badge:last-child {
    margin: 0;
}

.expanded-image-wrapper {
    max-width: 750px;
    margin: 0 auto 30px;
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid #f5c06e;
}

.expanded-image {
    width: 100%;
    height: auto;
    display: block;
}

.expanded-title {
    color: #f5c06e;
    font-size: 36px;
    font-weight: 700;
    margin: 30px 0;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.title-divider {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5c06e, transparent);
    margin: 30px auto;
}

.expanded-content-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.sastojci-section {
    padding-right: 20px;
}

.sastojci-title {
    color: #f5c06e;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.sastojci-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.sastojak-item {
    color: #f5c06e;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.content-text {
    color: #f5d59a;
    font-size: 16px;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 20px;
}

.content-text h1, .content-text h2, .content-text h3 {
    color: #f5c06e;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-text ul, .content-text ol {
    color: #f5d59a;
    margin-bottom: 20px;
}

.additional-image-wrapper {
    max-width: 450px;
    margin-left: auto;
    border-radius: 25px;
    overflow: hidden;
    border: 4px solid #f5c06e;
    margin-top: 40px;
}

.additional-image {
    width: 100%;
    height: auto;
    display: block;
}

.social-links-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(245, 192, 110, 0.05);
    border-radius: 15px;
    border: 2px solid rgba(245, 192, 110, 0.2);
}

.social-title {
    color: #f5c06e;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    background: #f5c06e;
    color: #20481c;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 192, 110, 0.5);
    color: #20481c;
}

.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(245, 192, 110, 0.3);
}

.post-date-footer {
    color: #f5c06e;
    font-size: 16px;
    font-weight: 500;
}

.recipe-close-btn {
    font-family: "Forevs", sans-serif;
    background: #f5c06e;
    color: #20481c;
    border: none;
    border-radius: 25px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.recipe-close-btn:hover {
    background: #f5d59a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 192, 110, 0.4);
}

.recipe-read-btn {
    cursor: pointer;
    border: none;
    background: transparent;
    background-color: #f5c06e;
    padding: 0.7rem 1.7rem;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.recipe-read-btn .btn-text {
    font-family: "Forevs", sans-serif;
    transition: color 0.3s ease;
    font-weight: 500;
    /* max-width: 5rem; */
    text-align: left;
    color: #6d3a1b;
}

.btn-arrow-wrapper {
    background: #f5c06e;
    border: 3px solid #f5c06e;
    border-radius: 50px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.recipe-read-btn:hover .btn-arrow-wrapper {
    background: #f5d59a;
    border-color: #f5d59a;
    transform: translateX(5px);
}

.recipe-read-btn .btn-arrow {
    stroke: #20481c;
    transition: transform 0.3s ease;
}

.recipe-read-btn:hover .btn-arrow {
    transform: translateX(3px);
}

@media (min-width: 320px) {
    .container.recipes-container {
        padding: 1.5rem 1.5rem 0.1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .recipe-read-btn {
    }
    
    .recipe-read-btn .btn-text {
        font-size: 1rem;
    }
    
}

@media (min-width: 768px) {
    .container.recipes-container {
        padding: 2rem 2rem 0.2rem 2rem;
        margin-bottom: 2rem;
    }

    .recipe-read-btn .btn-text {
        font-size: 1.3rem;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .recipe-card.expanded .recipe-expanded-content {
        margin: 1rem;
    }

    .expanded-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 0.5rem;
    }

    .expanded-title {
        font-size: 24px;
        margin: 20px 0;
    }

    .sastojci-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .expanded-content-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sastojci-section {
        padding-right: 0;
    }

    .sastojci-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sastojak-item {
        font-size: 14px;
    }

    .content-text {
        font-size: 14px;
    }

    .content-text h1, .content-text h2, .content-text h3 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    
    .additional-image-wrapper {
        margin-left: 0;
        max-width: 100%;
        margin-top: 20px;
    }

    .footer-section {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-top: 30px;
        padding-top: 20px;
    }

    .post-date-footer {
        font-size: 14px;
    }

    .recipe-close-btn {
        padding: 10px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .recipe-read-btn {
        font-size: 14px;
        gap: 10px;
    }

    .btn-arrow-wrapper {
        padding: 8px 15px;
    }

    .social-links-section {
        padding: 20px;
        margin: 20px 0;
    }

    .social-title {
        font-size: 16px;
    }

    .social-link {
        font-size: 12px;
        padding: 8px 15px;
    }
}

@media (max-width: 576px) {
    .container.hero-container {
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .expanded-title {
        font-size: 20px;
    }

    .sastojci-title {
        font-size: 18px;
    }

    .content-text {
        font-size: 13px;
        line-height: 1.6;
    }

    .expanded-image-wrapper,
    .additional-image-wrapper {
        border-radius: 15px;
        border-width: 3px;
    }
}

@media (min-width: 992px) {
    .container.recipes-container {
        padding: 3rem 3rem 0.5rem 3rem;
        margin-bottom: 3rem;
    }
}