/* 
 * PUBLICZNE PRZEPISY - Style dla publicznego widoku przepisu
 * Apetyty.art - 2025
 */

/* PODSTAWOWE STYLE */
body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* NOWE STYLE NAVBAR */
.navbar-container {

    padding: 12px 0;
    margin-bottom: 30px;
    position: relative;
    z-index: 100;
    border-bottom: 2px solid #967259;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 40px;
    width: 166px;
    transition: transform 0.3s ease;
}

.navbar-brand a:hover .navbar-logo {
    transform: scale(1.05);
}

/* Usunięty tekstowy element navbar-title */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-link {
    color: #305A48;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.navbar-link:hover {
    color: #7D5F4A;
}

.navbar-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #967259;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.navbar-link:hover:after {
    width: 100%;
}

.navbar-button {
    background-color: #967259;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.navbar-button:hover {
    background-color: #7D5F4A;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Responsywność na urządzeniach mobilnych */
@media (max-width: 768px) {
    .navbar-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }
    
    .navbar-button {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}
/* --- KONIEC NAVBAR --- */

/* NOWY, UPROSZCZONY STYL DLA PODGLĄDU PRZEPISU */

/* Styles dla sekcji sugerowanych przepisów */
.suggested-recipes-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f9f5f2;
    border-radius: 12px;
    border: 1px solid rgba(150, 114, 89, 0.2);
}

/* Slider sugerowanych przepisów */
.suggested-recipes-slider {
    margin-top: 1.5rem;
    padding: 0 2rem;
    position: relative;
}

.suggested-recipes-row {
    margin: 0 -0.5rem;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Kolumna dla małych kafelków przepisów */
.col-recipe-card {
    flex: 0 0 210px;
    max-width: 210px;
    margin: 0 14px 24px 14px;
    padding: 0;
    display: flex;
}

.suggested-recipe-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    padding: 0 0.5rem;
}

.suggested-recipe-card:hover {
    transform: translateY(-5px);
}

.suggested-recipe-card .card {
    border: 1px solid #e5d5c2;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(150, 114, 89, 0.06);
    transition: box-shadow 0.3s, border-color 0.3s;
    background: #fff;
    overflow: hidden;
    min-width: 0;
    min-height: 100%;
    width: 210px;
}

.suggested-recipe-card .card-body {
    padding: 1rem 1.1rem 0.8rem 1.1rem !important;
}

.suggested-recipe-img-container {
    height: 140px;
    overflow: hidden;
}

.suggested-recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.suggested-recipe-card .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #967259;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8rem;
}

.small-card-title {
    font-size: 0.9rem;
    height: 2.4rem;
    margin-bottom: 0.3rem;
}

.small-card-text {
    font-size: 0.8rem;
}

.small-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.recipe-tag-badge {
    background-color: #f0e6e0;
    color: #967259;
    border: 1px solid #967259;
    border-radius: 12px;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.recipe-category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(150, 114, 89, 0.1);
    color: #967259;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.suggested-recipe-card .card-text {
    font-size: 0.9rem;
    color: #777;
}

/* Kontrolki slidera sugerowanych przepisów */
.suggested-slider-arrow {
    width: 40px;
    height: 40px;
    top: 45%;
    background-color: rgba(150, 114, 89, 0.7);
}

.suggested-carousel-indicators {
    bottom: -10px;
}

.suggested-carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #967259;
    opacity: 0.5;
}

.suggested-carousel-indicators .active {
    opacity: 1;
}

/* KONIEC STYLI DLA PRZEPISU */

/* Sekcja sugerowanych przepisów */
.suggested-recipes-section {
    margin-top: 2rem;
}

.suggested-recipes-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px; /* Zmniejszone marginesy dla lepszego wykorzystania przestrzeni */
    justify-content: center; /* Wyśrodkowanie kart na małych ekranach */
}

.col-recipe-card {
    flex: 0 0 calc(50% - 16px); /* Zmniejszone marginesy */
    max-width: calc(50% - 16px);
    padding: 8px; /* Zmniejszone padding dla lepszego wykorzystania przestrzeni */
}

@media (min-width: 768px) {
    .col-recipe-card {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

@media (min-width: 992px) {
    .col-recipe-card {
        flex: 0 0 calc(25% - 16px);
        max-width: calc(25% - 16px);
    }
}

@media (min-width: 1200px) {
    .suggested-recipes-row {
        justify-content: flex-start; /* Wyrównanie do lewej na dużych ekranach */
    }
    
    .col-recipe-card {
        flex: 0 0 calc(20% - 16px); /* 5 kart w rzędzie na bardzo dużych ekranach */
        max-width: calc(20% - 16px);
    }
}

/* Styles dla slidera zdjęć */
.recipe-image-slider-container {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#recipeImageSlider {
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
}

.recipe-slider-image {
    object-fit: cover;
    height: 300px;
    width: 100%;
    border-radius: 12px;
}

.recipe-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #967259 #f0f0f0;
}

.thumbnail-item {
    flex: 0 0 70px;
    height: 50px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: #967259;
    transform: translateY(-2px);
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators [data-bs-target] {
    background-color: #967259;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(150, 114, 89, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(150, 114, 89, 0.9);
    opacity: 1;
}

.slider-arrow i {
    color: white;
    font-size: 1.2rem;
}
/* Główna sekcja przepisu z sekcjami składników i kroków */
.recipe-main-section {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin: 2.5rem 0 1.5rem 0;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
}
.recipe-main-section > [class^="col-"] {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


.ingredients-section, .steps-section {
    background: #F8F4F0;
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(150,114,89,0.07);
    padding: 1.3rem 1.2rem 1.3rem 1.2rem;
    height: 100%;
    border: 1.5px solid #96725922;
    box-sizing: border-box;
}

/* Dostosowanie szerokości sekcji składników */
.ingredients-section {
    flex: 1 1 320px;
    min-width: 240px;
    max-width: 340px;
}

/* Dostosowanie szerokości sekcji kroków */
.steps-section {
    width: 100%;
    max-width: calc(100% - 340px);
    min-width: 320px;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.ingredient-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.ingredient-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    padding: 0.8rem 0;
    font-size: 1.09rem;
    border-bottom: 1px solid #e2e6e3;
    line-height: 1.4;
}
.ingredient-item:last-child {
    border-bottom: none;
}
.ingredient-item i {
    color: #967259;
    margin-right: 0.7rem;
    font-size: 1.1rem;
}
.ingredient-name {
    font-weight: 600;
    color: #7D5F4A;
    flex: 1 1 auto;
    margin-right: 8px;
}
.ingredient-amount {
    color: #967259;
    font-size: 0.95rem;
    white-space: nowrap;
}
.steps-section .step-item {
    background: #fff;
    border-radius: 0.8rem;
    margin-bottom: 1.3rem;
}
.steps-section .step-number {
width: 36px;
height: 36px;
min-width: 36px; /* Zapobiega zmniejszaniu szerokości */
min-height: 36px; /* Zapobiega zmniejszaniu wysokości */
border-radius: 50%;
background-color: #967259;
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
margin-right: 1rem;
flex-shrink: 0; /* Zapobiega kurczeniu się */
}
.steps-section .step-info {
color: #967259;
font-size: 0.99rem;
margin-top: 0.35rem;
}
.recipe-section-title {
    color: #967259;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.7rem;
    letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
    .recipe-main-section {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1.3rem;
    }
    .ingredients-section, .steps-section {
        max-width: 100%;
        padding: 1.3rem 1rem;
    }
}

@media (min-width: 992px) {
    .recipe-main-section {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .ingredients-section {
        /* szerokość z Bootstrapa (col-lg-4) */
        flex: unset;
        max-width: unset;
    }
    .steps-section {
        /* szerokość z Bootstrapa (col-lg-8) */
        flex: unset;
        max-width: unset;
        min-width: 0;
    }
}
@media (max-width: 767.98px) {
    .steps-section .step-item {
        padding: 0.7rem 0.7rem;
    }
    .ingredients-section {
        margin-bottom: 1.2rem;
    }
}

.recipe-header {
    background: transparent !important;
    border-radius: 12px;
    box-shadow: none !important;
    border: none !important;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Usuwam górny gradient */
.recipe-header::before {
    display: none !important;
}


.recipe-title {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

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

.recipe-header:hover .recipe-title::after {
    width: 0;
}

.recipe-meta {
    color: #6c757d;
    margin-bottom: 1rem;
}

.recipe-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recipe-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.recipe-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-image-container:hover .recipe-image {
    transform: scale(1.03);
}

.recipe-section {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recipe-section:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.recipe-section-title {
    color: #967259;
    margin-bottom: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(150, 114, 89, 0.2);
}

.ingredient-item {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 0px solid #967259;
}

.ingredient-item:hover {
    background-color: rgba(150, 114, 89, 0.05);
    transform: translateX(5px);
    border-left: 3px solid #967259;
    padding-left: 15px;
}

.ingredient-item i {
    transition: transform 0.3s ease;
}

.ingredient-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.step-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #967259;
    background-color: rgba(150, 114, 89, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.step-item:hover {
    transform: translateX(5px);
    background-color: rgba(150, 114, 89, 0.1);
    box-shadow: 0 5px 15px rgba(150, 114, 89, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #967259;
    color: white;
    font-weight: bold;
    margin-right: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(150, 114, 89, 0.2);
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 10px rgba(150, 114, 89, 0.3);
}

.nutritional-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.nutritional-item {
    flex: 1;
    min-width: 100px;
    padding: 1rem;
    background-color: rgba(150, 114, 89, 0.05);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nutritional-item:hover {
    background-color: rgba(150, 114, 89, 0.1);
    transform: translateY(-5px);
    border-bottom: 2px solid #967259;
}

.nutritional-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #967259;
    transition: all 0.3s ease;
}

.nutritional-item:hover .nutritional-value {
    transform: scale(1.1);
}

.nutritional-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.tag-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 30px;
    background-color: rgba(150, 114, 89, 0.1);
    color: #967259;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tag-pill:hover {
    background-color: #967259;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.recipe-footer {
    margin-top: 3rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding: 20px 0;
    border-top: 1px solid rgba(150, 114, 89, 0.1);
}

.btn-primary {
    background-color: #967259;
    border-color: #967259;
}

.btn-primary:hover {
    background-color: #d4a276;
    border-color: #d4a276;
}

.btn-outline-primary {
    color: #967259;
    border-color: #967259;
}

.btn-outline-primary:hover {
    background-color: #967259;
    border-color: #967259;
    color: white;
}

.nav-btn {
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

a {
    color: #967259;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #d4a276;
    text-decoration: none;
}
