/**
 * ====================================================================
 * ARQUIVO: /wp-content/themes/cozinha-inventiva-kadence/assets/css/cooking-mode.css
 * ====================================================================
 * 
 * MODO COZINHA - TELA CHEIA PARA COZINHAR
 * 
 * O QUE FAZ:
 * - Interface fullscreen (tela cheia)
 * - Fundo escuro elegante
 * - Fonte grande e legível
 * - Navegação entre ingredientes e preparo
 * - Checkboxes interativos
 * - Timer visual
 * 
 * ====================================================================
 */

/**
 * ============================================================
 * 1. CONTAINER PRINCIPAL DO MODO COZINHA
 * ============================================================
 */
.ci-cooking-mode-overlay {
    /* Posicionamento */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    
    /* Visual */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    
    /* Inicialmente escondido */
    display: none;
    opacity: 0;
    
    /* Animação suave */
    transition: opacity 0.3s ease;
    
    /* Scroll interno */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Quando ativo */
.ci-cooking-mode-overlay.active {
    display: block;
    opacity: 1;
}

/**
 * ============================================================
 * 2. CONTEÚDO INTERNO
 * ============================================================
 */
.ci-cooking-mode-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
}

/**
 * ============================================================
 * 3. HEADER DO MODO COZINHA
 * ============================================================
 */
.ci-cooking-mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.ci-cooking-mode-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* Botão fechar */
.ci-cooking-mode-close {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ci-cooking-mode-close:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.05);
}

/**
 * ============================================================
 * 4. NAVEGAÇÃO (Ingredientes / Modo de Preparo)
 * ============================================================
 */
.ci-cooking-mode-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 12px;
}

.ci-cooking-mode-nav-button {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ci-cooking-mode-nav-button.active {
    background: linear-gradient(135deg, #C65D3B 0%, #A64D2B 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(198, 93, 59, 0.4);
}

.ci-cooking-mode-nav-button:hover:not(.active) {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

/**
 * ============================================================
 * 5. SEÇÕES (Ingredientes e Instruções)
 * ============================================================
 */
.ci-cooking-mode-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.ci-cooking-mode-section.active {
    display: block;
}

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

/**
 * ============================================================
 * 6. INGREDIENTES COM CHECKBOXES
 * ============================================================
 */
.ci-cooking-ingredients {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ci-cooking-ingredients h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #A4B952;
}

.ci-ingredient-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ci-ingredient-item:hover {
    background: rgba(0,0,0,0.3);
    transform: translateX(5px);
}

/* Checkbox customizado */
.ci-ingredient-checkbox {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 3px solid #A4B952;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.ci-ingredient-checkbox.checked {
    background: #A4B952;
}

.ci-ingredient-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

/* Texto do ingrediente */
.ci-ingredient-text {
    flex: 1;
    color: #ffffff;
    line-height: 1.4;
}

.ci-ingredient-item.checked .ci-ingredient-text {
    text-decoration: line-through;
    opacity: 0.5;
}

/**
 * ============================================================
 * 7. INSTRUÇÕES DE PREPARO
 * ============================================================
 */
.ci-cooking-instructions {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ci-cooking-instructions h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #C65D3B;
}

.ci-instruction-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 16px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ci-instruction-item:hover {
    background: rgba(0,0,0,0.3);
    transform: scale(1.02);
}

/* Número do passo */
.ci-instruction-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #C65D3B 0%, #A64D2B 100%);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
}

/* Texto da instrução */
.ci-instruction-text {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ffffff;
}

/**
 * ============================================================
 * 8. TIMER (se existir)
 * ============================================================
 */
.ci-cooking-timer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #C65D3B 0%, #A64D2B 100%);
    color: #ffffff;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(198, 93, 59, 0.4);
    z-index: 1000000;
}

/**
 * ============================================================
 * 9. RESPONSIVIDADE MOBILE
 * ============================================================
 */

/* Tablet */
@media (max-width: 768px) {
    .ci-cooking-mode-content {
        padding: 30px 15px;
    }
    
    .ci-cooking-mode-title {
        font-size: 1.5rem;
    }
    
    .ci-ingredient-item,
    .ci-instruction-text {
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .ci-cooking-mode-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .ci-cooking-mode-close {
        width: 100%;
    }
    
    .ci-cooking-mode-nav-button {
        font-size: 1rem;
        padding: 14px 16px;
    }
    
    .ci-cooking-ingredients,
    .ci-cooking-instructions {
        padding: 20px 15px;
    }
    
    .ci-ingredient-item {
        font-size: 1rem;
        padding: 12px;
    }
    
    .ci-instruction-item {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }
    
    .ci-instruction-text {
        font-size: 1rem;
    }
    
    .ci-cooking-timer {
        bottom: 15px;
        right: 15px;
        padding: 15px 20px;
        font-size: 1.2rem;
    }
}

/**
 * ============================================================
 * 10. ANIMAÇÕES EXTRAS
 * ============================================================
 */

/* Pulse para botão ativo */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(198, 93, 59, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(198, 93, 59, 0.6);
    }
}

.ci-cooking-mode-nav-button.active {
    animation: pulse 2s infinite;
}

/**
 * ============================================================
 * FIM DO ARQUIVO
 * ============================================================
 */
