/* base styles */
body {
    background-color: #E6AACE;
    font-family: 'Copperplate', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    color: #F0F4EF;
}

/* main container */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #344966;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px #344966;
}

/* header styles */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #F0F4EF;
    padding-bottom: 20px;
}

.page-title {
    color: #E6AACE;
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 0 #011627;
    line-height: 1.3;
}

/* cookie decorations */
.page-title::before {
    content: "🍪";
    font-size: 2rem;
    margin-right: 5px;
}

.page-title::after {
    content: "🍪";
    font-size: 2rem;
    margin-left: 5px;
}

/* Serving size selector */
.serving-selector {
    background-color: #BFCC94;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 5px 15px #0D1821;
}

.selector-label {
    display: block;
    color: #0D1821;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.selector-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.selector-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #344966;
    color: #F0F4EF;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector-btn:hover {
    background-color: #E6AACE;
    color: #0D1821;
    transform: scale(1.1);
}

.selector-input {
    width: 80px;
    height: 50px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    border: 3px solid #344966;
    border-radius: 10px;
    background-color: #F0F4EF;
    color: #0D1821;
    padding: 0 5px;
}

.selector-input:focus {
    outline: none;
    border-color: #E6AACE;
}

.selector-input::-webkit-inner-spin-button,
.selector-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.selector-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.selector-note {
    color: #0D1821;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Content sections */
.content-section {
    background-color: #F0F4EF;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.section-title {
    color: #344966;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #E6AACE;
    padding-bottom: 10px;
}

/* List styles - COMBINED into one rule */
.ingredients-list,
.equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #011627;
    margin-bottom: 10px;
    padding: 10px 15px;
    background-color: #E6AACE;
    border-radius: 10px;
    border-left: 5px solid #344966;
    transition: all 0.2s ease;
}

.list-item:hover {
    transform: translateX(10px);
    background-color: #BFCC94;
}

/* Checkbox styles */
.item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #344966;
}

.item-label {
    flex: 1;
    cursor: pointer;
    user-select: none;
}

/* Checked state styles */
.item-checkbox:checked + .item-label {
    text-decoration: line-through;
    opacity: 0.7;
}

.list-item:has(.item-checkbox:checked) {
    background-color: #BFCC94;
    opacity: 0.9;
}

.list-item:has(.item-checkbox:checked):hover {
    background-color: #BFCC94;
    opacity: 1;
}

/* Ingredient amount styling */
.ingredient-amount {
    font-weight: bold;
    color: #344966;
    background-color: #F0F4EF;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
}

.ingredient-unit {
    font-style: italic;
    margin-right: 4px;
}

/* Navigation */
.main-navigation {
    background-color: #BFCC94;
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0 10px;
    box-shadow: 0 5px 15px #0D1821;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-item {
    margin: 5px;
}

.nav-link {
    color: #0D1821;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 30px;
    background-color: #F0F4EF;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    background-color: #E6AACE;
    color: #0D1821;
    transform: translateY(-2px);
}

/* Responsive design for mobile */
@media (max-width: 600px) {
    .page-container {
        padding: 15px;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        display: block;
        text-align: center;
        width: 200px;
    }

    .list-item:hover {
        transform: none;
    }
}