/* ===============================================================
   Estilos para la página de un Post Individual (single.php)
   =============================================================== */

/* ==========================================================================
   SINGLE POST - NOTICIAS INDIVIDUALES
   ========================================================================== */

/* Layout principal con sidebar */
.main-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-content-wrapper {
    margin-top: 2rem;
}

.page-main-content {
    max-width: 100%;
}

/* Artículo principal */
.single-post-article {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 2rem;
}

/* Header del post - ancho completo */
.single-post-header {
    padding: 2rem 2rem 1rem;
    width: 100%;
}

/* Layout en dos columnas a partir de la imagen */
.single-post-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    overflow: hidden;
}

.single-post-main {
    min-width: 0;
    overflow: hidden;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #5a6fd8;
}

.current-category {
    color: #495057;
    font-weight: 500;
}

/* Categorías del post */
.post-categories {
    margin-bottom: 1rem;
}

.post-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}

/* Título del post */
.entry-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    margin: 0 0 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

/* Metadatos */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    color: #667eea;
    flex-shrink: 0;
}

/* Imagen destacada */
.post-thumbnail {
    position: relative;
    margin: 0 0 2rem 0;
    overflow: hidden;
    border-radius: 0.5rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 2rem 1rem;
    font-size: 0.875rem;
    font-style: italic;
}

/* Contenido del post */
.entry-content {
    padding: 0;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 2rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1a202c;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.5rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.entry-content h3 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Links de páginas */
.page-links {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
}

.page-links-title {
    font-weight: 600;
    color: #495057;
    margin-right: 1rem;
}

.page-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.page-links a:hover {
    background: #5a6fd8;
}

/* Footer del post */
.entry-footer {
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

/* Tags */
.post-tags {
    margin-bottom: 2rem;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.tags-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.tag-link {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #667eea;
    color: white;
}

/* Botones de compartir */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #495057;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0d8bd9;
    transform: scale(1.1);
}

.share-facebook {
    background: #1877f2;
}

.share-facebook:hover {
    background: #166fe5;
    transform: scale(1.1);
}

.share-whatsapp {
    background: #25d366;
}

.share-whatsapp:hover {
    background: #20bd5a;
    transform: scale(1.1);
}

/* Sección de comentarios */
.comments-section {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

/* Widget Area / Sidebar */
.widget-area {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.widget-area .widget {
    margin-bottom: 2rem;
}

.widget-area .widget:last-child {
    margin-bottom: 0;
}

.widget-area .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.widget-area ul {
    list-style: none;
    padding: 0;
}

.widget-area li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.widget-area li:last-child {
    border-bottom: none;
}

.widget-area a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-area a:hover {
    color: #667eea;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-post-sidebar {
        position: static;
    }
    
    .widget-area {
        position: static;
    }
}

@media (max-width: 768px) {
    .main-content-container {
        padding: 0 0.5rem;
    }
    
    .single-post-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .entry-content {
        padding: 1.5rem 1rem;
        font-size: 1rem;
    }
    
    .entry-footer {
        padding: 1rem;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .widget-area {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .tags-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    	.share-buttons {
		justify-content: center;
		width: 100%;
	}
}

/* ==========================================================================
   WIDGETS PERSONALIZADOS DEL SIDEBAR
   ========================================================================== */

/* Widget: Playas Destacadas */
.featured-playas-widget .featured-playa-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e9ecef;
}

.featured-playas-widget .featured-playa-item:last-child {
	border-bottom: none;
}

.featured-playa-thumb {
	flex-shrink: 0;
}

.featured-playa-thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 0.5rem;
}

.featured-playa-content {
	flex-grow: 1;
}

.featured-playa-title {
	margin: 0 0 0.25rem 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.featured-playa-title a {
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
}

.featured-playa-title a:hover {
	color: #667eea;
}

.featured-playa-provincia {
	font-size: 0.75rem;
	color: #6c757d;
	font-weight: 500;
}

/* Widget: Noticias Recientes */
.recent-posts-widget .recent-post-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #e9ecef;
}

.recent-posts-widget .recent-post-item:last-child {
	border-bottom: none;
}

.recent-post-thumb {
	flex-shrink: 0;
}

.recent-post-thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 0.5rem;
}

.recent-post-content {
	flex-grow: 1;
}

.recent-post-title {
	margin: 0 0 0.25rem 0;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.recent-post-title a {
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
}

.recent-post-title a:hover {
	color: #667eea;
}

.recent-post-date {
	font-size: 0.75rem;
	color: #6c757d;
}

/* Widget: Provincias */
.provincias-widget .provincias-list,
.servicios-widget .servicios-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.provincia-item,
.servicio-item {
	border-bottom: 1px solid #e9ecef;
}

.provincia-item:last-child,
.servicio-item:last-child {
	border-bottom: none;
}

.provincia-link,
.servicio-link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	color: #495057;
	text-decoration: none;
	transition: all 0.2s ease;
}

.provincia-link:hover,
.servicio-link:hover {
	color: #667eea;
	padding-left: 0.5rem;
}

.provincia-name,
.servicio-name {
	font-weight: 500;
}

.provincia-count,
.servicio-count {
	background: #e9ecef;
	color: #6c757d;
	padding: 0.15rem 0.5rem;
	border-radius: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
}

.provincia-link:hover .provincia-count,
.servicio-link:hover .servicio-count {
	background: #667eea;
	color: white;
}

/* Responsive para widgets */
@media (max-width: 768px) {
	.featured-playa-thumb img,
	.recent-post-thumb img {
		width: 50px;
		height: 50px;
	}
	
	.featured-playa-title,
	.recent-post-title {
		font-size: 0.85rem;
	}
	
	.provincia-link,
	.servicio-link {
		padding: 0.5rem 0;
	}
} 