/* Updated CSS for makarony cards to match pizza cards style */

.makarony-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.makarony-card {
    background: linear-gradient(135deg, #bf3131 0%, #7d0a0a 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(125, 10, 10, 0.15);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: none;
    position: relative;
    color: white;
}

.makarony-card:hover {
    box-shadow: 0 8px 30px rgba(191, 49, 49, 0.3);
    transform: translateY(-5px);
}

.makarony-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    column-gap: 15px;
}

.makarony-name {
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

.ingredients-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ingredients-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.ingredients-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.plus-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.plus-icon::before,
.plus-icon::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.plus-icon::before {
    width: 2px;
    height: 16px;
    left: 7px;
    top: 0;
}

.plus-icon::after {
    width: 16px;
    height: 2px;
    left: 0;
    top: 7px;
}

.ingredients-toggle.active {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(180deg);
}

.ingredients-toggle.active .plus-icon {
    transform: rotate(225deg);
}

.ingredients-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: #fff;
    padding: 0 20px;
    color: #333;
    font-size: 1.1em;
    line-height: 1.5;
    border-top: 1px solid #ddd;
}

.makarony-card.active .ingredients-content {
    max-height: 300px;
    padding: 15px 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .makarony-grid {
        padding: 10px;
    }
    .makarony-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .pizza-prices {
        gap: 10px;
    }
    .ingredients-toggle {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .makarony-grid {
        padding: 5px;
    }
    .makarony-name {
        font-size: 1.2em;
    }
    .pizza-prices {
        flex-direction: column;
        gap: 5px;
    }
}

/* Add size labels to price spans like pizza cards */
/* Copied exact pizza price tag styles from pizza_cards.css */

.pizza-prices {
    display: flex;
    gap: 15px;
    font-weight: 600;
    justify-content: flex-start; /* Align all prices to the left */
    position: relative;
}

.pizza-prices span {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    transition: background 0.3s ease;
    min-width: 80px; /* fixed width to align all price tags */
    text-align: center;
    display: inline-block;
    position: relative;
}

.pizza-prices span:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* .pizza-prices span:first-child::after {
    content: "(32cm)";
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: white;
    font-weight: 600;
}

.pizza-prices span:last-child::after {
    content: "(42cm)";
    position: absolute;
    right: -55px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: white;
    font-weight: 600;
} */

/* Heading styles for h2 and h4 to match page consistency */
#makarony h2, #makarony h4 {
    background: linear-gradient(180deg, #8b0000 0%, #bf3131 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    max-width: fit-content;
    margin: 40px auto 50px;
    box-shadow: 0 4px 15px rgba(191, 49, 49, 0.2);
}
