/* General */
/* General Styles */

body {
    margin: 0;
    padding: 0;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #fff;
    background-color: #000; /* Fondo negro */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Encabezado */
h1, h2, h3, h4, h5, h6 {
    text-align: center;
    color:  rgb(226, 180, 142);
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;

}

a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

a:hover {
    color: #00bcd4; /* Color turquesa al pasar el mouse */
}

/* Navbar */
/* Estilos básicos para el navbar */
nav {
    background-color:#000;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.2);
   position: relative;
    width: 100%;
}

nav h1 {
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    letter-spacing: 3px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1em;
    position: relative; /* Necesario para dropdown */
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 0.5em 1em;
    display: block;
}

nav ul li a:hover {
    background-color: #444;
}

/* Dropdown menu */
nav ul li ul {
    display: none; /* Ocultar inicialmente */
    position: absolute; /* Necesario para superponer */
    top: 100%; /* Aparece debajo del elemento padre */
    left: 0;
    background-color: #333; /* Fondo oscuro */
    list-style: none;
    padding: 0;
    margin: 0;
}
nav ul li ul li a {
    white-space: nowrap; /* Evita que el texto se corte */
    padding: 0.5rem 1rem; /* Espaciado interno para hacerlo más amigable */
}
nav ul li:hover ul {
    display: block; /* Mostrar al pasar el cursor */
}

/* 🔹 Menú en pantallas grandes */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* 🔹 Enlaces de navegación */
.nav-links li a {
    text-decoration: none;
    color: white;
    padding: 0.5em 1em;
    display: block;
}

/* Sections */
.AdmiUser{
    padding: 10px;
    margin-bottom: 2rem;
}
/* Sección de administración de contenidos */
.ContAdm {
    text-align: center;
    margin-top: 20px;
}

.ContAdm .actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ContAdm button {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.ContAdm button:first-child {
    background-color: #28a745;
    color: white;
}

.ContAdm button:last-child {
    background-color: #007bff;
    color: white;
}

/* Main Content */
main {
    padding: 2rem;
    text-align: center;
    align-content: center;
    flex: 1; /* Ocupará el espacio restante */
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgb(110, 108, 108);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.card .img-card {
    width: 100%;
    height: 250px; /* Mantiene todas las imágenes con la misma altura */
    object-fit: cover; /* Evita distorsión recortando la imagen si es necesario */
    display: block;
    border-radius: 8px 8px 0 0; /* Opcional: redondea la parte superior de la imagen */
}

.card p {
    padding: 1rem;
    font-size: 0.9rem;
    color: #ccc;
}


/* Footer */
footer {
    background: #111;
    text-align: center;
    padding: 1rem;
    width: 100%;
    font-size: 0.8rem;
    color: rgb(231, 227, 227);
    margin-bottom: auto;
}

/* Contact form */
.form-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: #222;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background: #333;
    color: #fff;
    font-size: 1rem;
}

.form-container textarea {
    height: 150px; /* Más alto para un mejor espacio de escritura */
    resize: vertical;
}

.form-container button {
    display: block;
    margin-left: auto; /* Lo alinea a la derecha */
    padding: 10px 20px;
    background: #007bff;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-container button:hover {
    background: #0056b3;
}



/* Form Styles */
form {
    max-width: 400px;
    margin: 2rem auto;
    background: #111;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

form input, form select, form button {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    color: #fff;
    background: #00bcd4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button {
    background: #00bcd4;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #0097a7;
}

form input:focus, form select:focus {
    outline: 2px solid #00bcd4;
}

/* Contenedor general */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 15px;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}


/* Títulos */
.container h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #00bcd4;
    text-align: center;
}

/* Tabla de Administrador */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-table th, .admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #ccc;
}

.admin-table th {
    background: #222;
    color: #00bcd4;
}

.admin-table tr:hover {
    background: #333;
}

.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


.admin-table .delete, .admin-table .edit {
        padding: 5px;
        font-size: 12px;
    }

/* Acciones */
.admin-table .delete {
    background-color: red;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.admin-table .edit {
    background-color: blue;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 3px;
    cursor: pointer;
}


/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-buttons button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: #00bcd4;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}

.action-buttons button:hover {
    background: #0097a7;
}

.action-buttons .delete {
    background: #d32f2f;
}

.action-buttons .delete:hover {
    background: #b71c1c;
}

/* Perfil del usuario */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00bcd4;
}

.profile h3 {
    font-size: 1.2rem;
    color: rgb(231, 227, 227);
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
}

.profile p {
    font-size: 0.9rem;
    color: #ccc;
}
/* Perfil privado */
.user-profile {
    width: 90%;
    max-width: 70%vw;
    margin: 40px auto;
    padding: 20px;
    background: #777373;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #f9f9f9;
}

.user-profile h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f9f9f9;
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #444;
    margin-bottom: 10px;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: rgb(255, 255, 255);
}

.profile-info p {
    font-size: 1rem;
    margin: 5px 0;
    color: rgb(255, 255, 255);
}

.profile-info blockquote {
    font-style: italic;
    background: #5f5c5c;
    padding: 10px;
    border-left: 4px solid #444;
    margin: 10px 0;
}


/* Formulario CRUD de imágenes */
.upload-form {
    margin-top: 2rem;
    padding: 2rem;
    background: #222;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.upload-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.upload-form input[type="file"] {
    margin-bottom: 1rem;
    color: #fff;
}

.upload-form button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background: #00bcd4;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.upload-form button:hover {
    background: #0097a7;
}

.admin-table button {
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 3px;
}

.admin-table button:hover {
    background-color: #e7e7e7;
}
.block-post { color: orange; }
.block-user { color: red; }
.delete-user { color: crimson; }

/* User-Gallery */

.gallery-personal{
    background: #333;
}

.gallery-section .posts {
    display: flex;
    flex-direction: row;
    padding: 100px;
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
}


.posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    max-height: 400px; /* Ajusta el tamaño según sea necesario */
    border: 1px solid #ddd;
    padding: 1rem;
}
.post {
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #333;
}
/* General styles for the shared gallery */
.shared-gallery {
    margin: 0 auto; /* Center the section */
    padding: 20px;
    text-align: center; /* Center-align text */
    background-color:#555;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shared-gallery h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #f9f9f9;
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
    
}

/* Styles for the author's section */
.author-section {
    margin-bottom: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.author-section h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f9f9f9;
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;

}
author-profile{
    min-height: 100%; /* Asegura que el contenido principal ocupe al menos el 100% de la altura */
    display: flex;
    flex-direction: column; /* Organiza el contenido de arriba hacia abajo */

}

author-profile h4{
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #f9f9f9;
    font-family: 'UnifrakturCook', 'Cinzel Decorative', cursive;
}

/* Profile image */
.user-profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Circular image */
    margin: 0 auto 20px auto;
    display: block; /* Center the image */
    object-fit: cover; /* Ensure the image fills the circle */
    border: 3px solid #ddd;
}

/* Artworks grid */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 20px; /* Spacing between items */
    margin-top: 20px;
    flex-grow: 1; /* Permite que el grid crezca y ocupe el espacio disponible */
}

.artwork-card {
    padding: 15px;
    background-color: rgba(51, 51, 51, 0.801);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.artwork-card:hover {
    transform: scale(1.03);
}

.artwork-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.artwork-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

/* Likes section */
.likes-section {
    margin-top: 10px;
    text-align: center;
}

.likes-section p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #777;
}

/* Like user list */
.likes-list {
    display: flex;
    justify-content: center;
    gap: 8px; /* Space between user profiles */
    flex-wrap: wrap; /* Wrap profiles to the next line if needed */
    margin-top: 8px;
}

.like-user {
    text-decoration: none;
    color: #555;
    text-align: center;
}

/* Like button */
.like-button {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.like-button:hover {
    background-color: #0056b3;
}
#like-user-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%; /* Asegúrate de que esto se mantenga */
}


 
/* Link to profile */
.author-section a {
    display: inline-block;
    margin-top: 15px;
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.author-section a:hover {
    color: #0056b3;
}


.post_description2{
    border-radius: 20%;
    padding: 50%, 10%;
    color:rgb(65, 61, 61);
    background-color:rgba(255, 255, 255, 0.941);
}

/* Media Queries para Responsividad */

/* Responsive Design */

/* Botón Hamburguesa (oculto en escritorio) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1rem;
    color: white;
    cursor: pointer;
}

/* Mensajes de éxito */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Ajustes para móviles */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block; /* Mostrar el botón hamburguesa en móviles */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: #000;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 1000;
        transform: translateY(-200%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        transform: translateY(0); /* Mostrar menú cuando se activa */
        display: flex; /* Mostrar cuando el usuario haga clic */
    }

    nav ul {
        display: none; /* Oculta el menú por defecto */
        flex-direction: column;
        width: 85%;
        background-color: #222;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 1rem;
        text-align: center;
    }

    nav.active ul {
        display: flex; /* Muestra el menú cuando está activo */
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li ul {
        position: static; /* Evita que el dropdown se desborde */
        width: 100%;
        background-color: #333;
    }
 
    section {
        min-height: 100%; /* Asegura que la sección ocupe al menos el 100% de la altura */
        display: flex;
        flex-direction: column; /* Organiza el contenido de arriba hacia abajo */
    }
    .artwork {
        width: 45vw; /* Ajusta el ancho para pantallas pequeñas */
    }

    .artwork img {
        width: 100%; /* La imagen ocupará el 100% del ancho del contenedor */
        height: auto; /* Mantiene la relación de aspecto */
    }
/* Filtros */
    .filters {
        background-color: white;
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .filters form {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filters label {
        font-weight: bold;
    }

    .filters select, .filters button {
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
    

    .ContAdm button {
            font-size: 14px;
            padding: 8px;
        }
}
@media screen and (max-width: 768px) {
    .artworks-grid {
        grid-template-columns: 1fr; /* Muestra las tarjetas en una columna */
    }
    .artwork-card {
        background-color: rgba(51, 51, 51, 0.801);
        padding: 15px; /* Más espacio en las tarjetas para pantallas más pequeñas */
    }

/* Estilo para la galería en dispositivos más pequeños */
    .shared-gallery {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .artworks-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Ajusta el tamaño de las tarjetas */
        gap: 20px;
    }

    .artwork-card {
        background-color: rgba(51, 51, 51, 0.801);
        border-radius: 8px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
    }

    .artwork-card img {
        width: 100%;
        height: auto;
        object-fit: cover; /* Mantiene la proporción de la imagen */
        border-radius: 8px;
    }

    .artwork-card:hover {
        transform: scale(1.05); /* Efecto de hover para las tarjetas */
    }
}


/* Móviles */
@media screen and (max-width: 480px) {
section {
    min-height: 100%; /* Asegura que la sección ocupe al menos el 100% de la altura */
    display: flex;
    flex-direction: column; /* Organiza el contenido de arriba hacia abajo */
    }
    
    .container {
        width: 95%;
    }

    .card {
        width: 100%;
    }

    .card .content h3 {
        font-size: 16px;
    }

    .card .content p {
        font-size: 12px;
    }
    
    .filters {
        padding: 10px;
    }
section .AdmUser{
         width: 100%;
         height: auto;
         align-content: center;
     }

    .role{
        width: 10%;
        margin: 1rem;
        padding: 1 rem;
    }
    table.admin-table{
        width: 1vw;
    }

    .admin-table th, .admin-table td {
        font-size: 6px;
        width: 10%;
    }

    .admin-table .delete, .admin-table .edit {
        font-size: 5px;
        padding: 4px;
    }

    .ContAdm .actions {
        flex-direction: column;
    }

    .ContAdm button {
        font-size: 12px;
        padding: 6px;
    }
}




