/* Estilos Base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fffaf0;
    color: #000000;
    line-height: 1.6;
}

hr {
    background-color: #000000;
}

h1, h2 {
    color: #000000;
    text-align: center;
    margin-top: 20px;
}

img {
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

/*Header */
header {
    background-color: #ff6600;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.logo-container img {
    height: 140px;
}
/* Navegación y Dropdown */
nav {
    position: absolute;
    top: 10px;
    left: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 10px;
}

.perfil-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid white;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
}

.dropdown-content a {
    padding: 12px 16px;
    color: #000000;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #ffffff;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* Pestañas y Buscador */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 110px 0;
    background-color: #ff6600;
    margin-top: 5px;
}

.tabs {
    display: flex;
    margin: 0;
}

.tab {
    padding: 10px 30px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    background-color: #ff6600;
    border: none;
    border-radius: 5px 5px 0 0;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.tab:hover {
    color: #ff6600;
    background-color: #ffffff;
}

.buscador {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buscador input {
    padding: 8px px;
    height: 31px;
    border: 2px solid #ff6600;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    margin: 0 15px 0 15px;
}

.buscador input:focus {
    border-color: #e65c00;
    box-shadow: 0 0 5px rgba(230, 92, 0, 0.5);
}

.buscador button {
    padding: 0 15px;
    height: 35px;
    background-color: #ffffff;
    color: #0b0000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.buscador button:hover {
    background-color: #e65c00;
    color: white;
}
/* Filtro de Búsqueda */
.select-box {
    position: relative;
    width: 120px;
}

.select-multiple {
    width: 100%;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    background-color: white;
    border: 2px solid #ff6600;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
}

.colors-checks {
    display: none;
    position: absolute;
    top: 100%;
    left: -50%;
    width: 200px;
    background-color: white;
    border: 2px solid #ff6600;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.colors-checks label {
    display: flex;
    height: 25px;
    align-items: center;
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
}

.colors-checks label:hover {
    background-color: #fff5eb;
}

.form-control-color {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #00000000;
}
/*contenido principal*/
main {
    padding: 20px;
    text-align: center;
}

.receta {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);

}

.receta img {
    width: 100%;
    border-radius: 10px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
}
.auth-links {
    position: absolute;
    top: 10px;
    right: 0;
    display: flex;
    gap: 0px; 
}

.auth-links a {
    padding: 5px 15px;
    font-size: 14px;
    border: 1px solid gray;
    border-radius: 0; 
    background-color: white;
    color: black;
    text-decoration: none;
    font-weight: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 110px;
    box-shadow: none;
}

.auth-links a:first-child {
    border-right: none; 
}

.auth-links a:hover {
    background-color: #f1f1f1;
}
.ver-mas {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #6a11cb, #2575fc); 
    border-radius: 25px; 
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.ver-mas:hover {
    transform: scale(1.1); 
    background: linear-gradient(45deg, #2575fc, #6a11cb); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}
.recetas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px;
    justify-content: flex-start;
    background-color: #000000; /* fondo oscuro */
}

.receta {
    background-color: #ffffff; 
    color: #000000; 
    border-radius: 10px;
    padding: 20px ; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    text-decoration: none;
}

.receta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

.receta img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    height: 160px;
}

.receta h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.receta p {
    font-size: 14px;
    line-height: 1.5;
    color: #000000;
}

.ver-mas {
    margin-top: auto;
    align-self: center;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s;
}

.ver-mas:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #2575fc, #6a11cb);
}
.seccion-recetas
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25%, 30%));
    gap: 20px;
    padding: 15px;
    width: 100%;
}
/*detalles de recetas*/
.receta-detalle {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff9f0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.updates, .files, .descripcion {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 5px;
}

.receta-imagen {
    max-width: 95%;
    height: auto;
    border-radius: 5px;
}

.admin-options {
    margin-top: 20px;
    text-align: right;
}

.btn-editar, .btn-eliminar {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    margin-left: 10px;
}

.btn-editar { background: #f39c12; }
.btn-eliminar { background: #e74c3c; }
/*Paginacion */
.pagination {
            margin: 20px 0;
            text-align: center;
        }
        .pagination a {
            display: inline-block;
            padding: 8px 16px;
            margin: 0 4px;
            text-decoration: none;
            color: #333;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .pagination a.active {
            background-color: #ff6600;
            color: white;
            border: 1px solid #ff6600;
        }
        .pagination a:hover:not(.active) {
            background-color: #ddd;
        }
.comentar
{
    width: 95%;
    border-width: 0 0 1px 0;
    border-style: none none solid none;
    border-top: transparent transparent #000 transparent;
    font-size: 20px;
    font-family: inherit;
    resize: none;
    overflow: auto;
}
/* Agrega esto al final de tu archivo styles.css */

/* Estilos para el buscador */
.buscador {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.buscador input[type="text"] {
    padding: 8px 15px;
    height: 35px;
    border: 2px solid #ff6600;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    width: 250px;
}

.buscador input[type="text"]:focus {
    border-color: #e65c00;
    box-shadow: 0 0 5px rgba(230, 92, 0, 0.5);
}

.buscador button {
    padding: 0 15px;
    height: 35px;
    background-color: #ffffff;
    color: #0b0000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

.buscador button:hover {
    background-color: #e65c00;
    color: white;
}

/* Estilos para el dropdown de ingredientes */
.select-box {
    position: relative;
    width: 150px;
}

.select-multiple {
    width: 100%;
    padding: 8px 15px;
    font-size: 14px;
    color: #333;
    background-color: white;
    border: 2px solid #ff6600;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
}

.colors-checks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background-color: white;
    border: 2px solid #ff6600;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.colors-checks label {
    display: flex;
    height: 25px;
    align-items: center;
    padding: 8px 10px;
    margin: 0;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 3px;
}

.colors-checks label:hover {
    background-color: #fff5eb;
}

.colors-checks input[type="checkbox"] {
    margin-right: 10px;
}