/* Cooking Mode Styles */
body.cooking-mode {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: #f5f5f5;
    overflow-x: hidden;
}

.cooking-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5f99 100%); /* Navy theme gradient */
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.recipe-title {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cooking-controls {
    display: flex;
    gap: 1rem;
}

.cooking-content {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
}

.ingredients-panel {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    position: sticky;
    top: 120px;
}

.ingredients-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0A1929;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.ingredient-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
}

.ingredient-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

.ingredient-checkbox input[type="checkbox"]:checked + .ingredient-text {
    text-decoration: line-through;
    opacity: 0.5;
}

.ingredient-quantity,
.ingredient-unit {
    font-weight: 600;
    color: #2C5F99;
}

.steps-panel {
    padding-left: 2rem;
}

.step-card {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: none;
    min-height: 400px;
}

.step-card.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-number {
    font-size: 1rem;
    color: #C8593A;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-instruction {
    font-size: 1.8rem;
    line-height: 1.6;
    color: #2D1F12;
    font-weight: 500;
}

.servings-adjuster {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #F5EFE6;
    border-radius: 8px;
}

/* Timer */
.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: #4A3320;
    font-family: 'Courier New', monospace;
}

.timer-controls button {
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .ingredients-panel {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 2rem;
    }

    .steps-panel {
        padding-left: 0;
    }

    .step-instruction {
        font-size: 1.4rem;
    }

    .recipe-title {
        font-size: 1.3rem;
    }
}

/* Keep screen awake hint */
.cooking-content::before {
    content: '';
    position: fixed;
    width: 1px;
    height: 1px;
    opacity: 0;
}
