/**
 * Estilos para la página de post individual
 */

/* Contenedor principal */
.site-main {
    padding-top: 30px;
    padding-bottom: 60px;
}

/* Artículo */

/* Cabecera del artículo */
.entry-header {
    margin-bottom: 30px;
    margin-left: 100px !important;
    margin-right: 100px !important;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

.entry-excerpt p {
    font-size: 1.4rem;
    line-height: 1.2;
    color: #555;
    margin-bottom: 30px;
}

/* Meta información */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.entry-meta > div,
.entry-meta > span {
    margin-right: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Estilos para las categorías en la meta información */
.entry-meta .post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
}

.entry-meta .post-categories li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.entry-meta .post-categories a,
.entry-meta .post-categories a.category-link {
    background-color: #f43f5e !important; /* Color rosa */
    color: white !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: 0;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
    vertical-align: middle;
}

.entry-meta .post-categories a:hover,
.entry-meta .post-categories a.category-link:hover {
    background-color: #e11d48 !important; /* Color rosa más oscuro */
    text-decoration: none;
}

.posted-by img {
    border-radius: 50%;
    margin-right: 8px;
}

/* Imagen destacada */
.post-thumbnail {
    margin-bottom: 30px;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Contenido del artículo */
.entry-content {
    border-top: 1px solid #eee;
    padding-top: 10px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
}

.entry-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin-top: 1.3em;
    margin-bottom: 0.7em;
}

.entry-content ul,
.entry-content ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.entry-content blockquote {
    border-left: 4px solid #f43f5e;
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #555;
}

/* Pie del artículo */
.entry-footer {
    border-top: 1px solid #eee;
    padding-top: 30px;
    margin-top: 30px;
}

.post-tags {
    margin-bottom: 30px;
}

.tag-links a {
    display: inline-block;
    background-color: #f5f5f5;
    color: #666;
    padding: 5px 10px;
    margin-right: 8px;
    margin-bottom: 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.3s;
}

.tag-links a:hover {
    background-color: #f43f5e;
    color: white !important;
}

/* Navegación entre posts */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-previous,
.nav-next {
    flex: 0 0 48%;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 15px;
    background-color: #f9f9f9;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    background-color: #f0f0f0;
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #333;
}

.nav-next {
    text-align: right;
}

/* Estructura de columnas */
.post-content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.post-content-column {
    flex: 1;
    min-width: 300px;
}

/* Columna lateral */
.sidebar-column {
    width: 320px;
    min-width: 320px;
    flex-shrink: 0;
}

/* Posts relacionados */
.related-posts,
.recent-galleries {
    margin-bottom: 40px;
}

.related-posts h2,
.recent-galleries h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f43f5e;
    color: #333;
}

.related-posts-grid,
.galleries-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.related-post,
.gallery-item {
    margin-bottom: 20px;
}

.post-thumbnail-link,
.gallery-thumbnail-link {
    display: block;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.post-thumbnail-link img,
.gallery-thumbnail-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail-link:hover img,
.gallery-thumbnail-link:hover img {
    transform: scale(1.05);
}

.post-info {
    padding: 10px 0;
}

.post-title,
.gallery-title {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

.post-title a,
.gallery-title a {
    color: #333;
    text-decoration: none;
}

.post-title a:hover,
.gallery-title a:hover {
    color: #f43f5e !important;
}

.post-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Icono de galería */
.gallery-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Estructura de columnas */
.post-content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1270px;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0 15px;
}

.post-content-column {
    flex: 1;
    min-width: 300px;
    max-width: calc(100% - 350px);
}

/* Columna lateral */
.sidebar-column {
    width: 320px;
    flex-shrink: 0;
}

/* Estilos para pantallas grandes */
@media (min-width: 1200px) {
    .post-content-columns {
        padding: 0;
    }
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .post-content-columns {
        flex-direction: column;
        padding: 0 15px;
    }

    .post-content-column,
    .sidebar-column {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-basis: 100% !important;
    }

    .sidebar-column {
        margin-top: 40px;
        order: 2;
    }

    .post-content-column {
        order: 1;
    }

    .entry-title {
        font-size: 2rem;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-previous,
    .nav-next {
        flex: 0 0 100%;
        margin-bottom: 15px;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .related-posts-grid,
    .galleries-grid {
        grid-template-columns: 1fr;
    }

    .entry-title {
        font-size: 1.8rem;
    }

    .entry-content {
        font-size: 1rem;
    }
}
