@charset "UTF-8";

/* Estilo General: Suelo de Azulejos de Cocina */
body {
    background-color: #f0f0f0;
    background-image: 
        conic-gradient(from 90deg at 2px 2px, #fff 90deg, #dcdcdc 0);
    background-size: 60px 60px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 10px;
}

/* Encimera de Madera */
#contenedor {
    margin: 10px auto;
    max-width: 1000px;
    background: #5d4037; /* Color Madera */
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 40px,
        rgba(0,0,0,0.1) 41px
    );
    border: 8px solid #3e2723;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 100px rgba(0,0,0,0.3);
    padding: 15px;
    min-height: 80vh;
    position: relative; /* Para posicionar el botón + respecto a esto */
}

/* Pizarra de Menú */
#menu2 {
    background: radial-gradient(circle at center, #2c2c2c 0%, #1a1a1a 100%);
    border: 8px solid #5d4037;
    outline: 4px solid #3e2723;
    padding: 8px;
    border-radius: 2px;
    box-shadow: inset 0 0 30px #000, 0 10px 20px rgba(0,0,0,0.5);
    margin: 0 10px;
    flex: 1;
    display: flex;
    justify-content: center;
}

#menu2 input[type="submit"] {
    background: transparent;
    color: #fff;
    font-family: 'Comic Sans MS', cursive; /* Estilo tiza */
    font-size: 20px;
    border: 1px dashed rgba(255,255,255,0.3);
    margin: 5px 15px;
    cursor: pointer;
    text-shadow: 2px 2px 4px #000;
}

#menu2 input[type="submit"]:hover {
    color: #ffeb3b;
    transform: scale(1.05);
    border-bottom: 2px solid #ffeb3b;
}

/* Estilos del Header y Logo */
.header-cocina {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    gap: 10px;
}

.chef-logo {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.6));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.logo-link:hover .chef-logo {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.8));
}

.btn-plus-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    border: 4px solid #ffca28;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.btn-plus-top:hover {
    transform: scale(1.15) rotate(90deg);
    background: #388e3c;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* Hoja de Receta (Papel) */
#muro, #nueva, .documento, .recipe-view {
    background: #fdf5e6; /* Old Lace / Papel */
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
    color: #333;
    border-radius: 2px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    padding: 20px;
    position: relative;
}

.documento:before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-width: 0 30px 30px 0;
    border-style: solid;
    border-color: #5d4037 #5d4037 #e6dbb9 #e6dbb9;
}

/* Botones estilo Etiquetas Dymo */
.casilla, .aceptar, .botonlibro {
    background-color: #2e7d32; /* Verde por defecto para aceptar/guardar */
    color: white;
    border: none;
    padding: 8px 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 3px;
    box-shadow: 1px 2px 0 #1b5e20;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.2s;
}

.casilla {
    background-color: #b71c1c; /* Rojo para cancelar/cerrar */
    box-shadow: 1px 2px 0 #5f0000;
}

.aceptar:hover, .botonlibro:hover {
    background-color: #388e3c;
    filter: brightness(1.2);
}
.casilla:hover {
    background-color: #d32f2f;
}

/* Estilos Bienvenida "Currada" */
.bienvenida-card {
    background: #fdf5e6;
    border: 2px solid #8d6e63;
    padding: 25px;
    margin: 10px auto;
    max-width: 650px;
    position: relative;
    box-shadow: 10px 10px 0px #3e2723;
    transform: rotate(-0.5deg);
    text-align: center;
}

.chef-hat-main {
    font-size: 60px;
    margin-bottom: 10px;
}

.chef-quote {
    font-family: 'Georgia', serif;
    font-style: italic;
    color: #5d4037;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 15px 0;
    border-left: 4px solid #ffca28;
    padding-left: 15px;
}

.divider-cocina {
    height: 1px;
    background: #8d6e63;
    margin: 20px 0;
    opacity: 0.3;
}

/* Títulos */
h1 {
    color: #ffca28;
    text-shadow: 2px 2px #3e2723;
    font-size: 28px;
    margin-top: 0;
    font-family: 'Georgia', serif;
}

h2 {
    background: #3e2723;
    color: #fff;
    padding: 5px 15px;
    display: inline-block;
    transform: rotate(-1deg);
}

/* Formulario de Nueva Receta */
#nueva textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid #999;
    width: 90%;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.5;
    color: #2c3e50;
}

#nueva select {
    background: #cfd8dc;
    border: 2px solid #546e7a;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
}

/* Texto de las recetas guardadas */
pre {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255,255,255,0.5);
    padding: 15px;
    border-left: 5px solid #8d6e63;
    color: #2c3e50;
}

/* Pie de página */
footer {
    color: #3e2723 !important;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Botón "+" de añadir */
input[name="nuevaReceta"] {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    padding: 0;
    background: #2e7d32;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Tablas y layouts */
table {
    border-collapse: separate;
    border-spacing: 10px;
}

.menu table {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fdf5e6;
    margin: 15% auto; 
    padding: 30px;
    border: 8px solid #5d4037;
    width: 350px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
}

.modal-content h2 {
    background: none;
    color: #b71c1c;
    transform: none;
    padding: 0;
}

/* Inputs del Modal */
.modal-input {
    width: 80%;
    padding: 10px;
    margin: 20px 0;
    border: 2px solid #5d4037;
    text-align: center;
    background: #fff;
    font-family: inherit;
    border-radius: 4px;
}

/* Vista de Receta Generada */
.recipe-view {
    max-width: 800px;
    margin: 10px auto;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

.recipe-header h1 {
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.ingredients-list, .recipe-steps {
    text-align: left;
    margin: 15px auto;
    padding: 15px;
    border-left: 3px solid #8d6e63;
    background: rgba(255,255,255,0.3);
    font-size: 1.1rem;
    max-width: 90%;
}

.ingredients-list {
    color: #2e7d32;
}

.recipe-steps {
    color: #3e2723;
}

.recipe-footer {
    margin-top: 25px;
}

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