/* Categories Show Post - Tema 1 - Estilos */

/* Solo aplicar estos estilos cuando el tema 1 esté activo */
.csp-theme-1 .csp-description {
    font-size: 0.8rem;
    line-height: 1.5rem;
    margin-bottom: 2rem;
}

.csp-theme-1 .csp-cta {
    padding: 20px;
    text-align: center;
}

.csp-theme-1 .csp-cta a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
}

.csp-theme-1 .csp-cta a:hover {
    background-color: var(--accent-dark);
    color: var(--text-dark);
}

/* Grid Layout */
.csp-theme-1 .csp-grid {
    display: grid;
    gap: 20px;
}

.csp-theme-1 .csp-grid.csp-columns-1 {
    grid-template-columns: 1fr;
}

.csp-theme-1 .csp-grid.csp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.csp-theme-1 .csp-grid.csp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.csp-theme-1 .csp-grid.csp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.csp-theme-1 .csp-grid-item {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid var(--border-color);
}

.csp-theme-1 .csp-grid-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Carrusel Layout */
.csp-carousel {
    position: relative;
    overflow: hidden;
}

.csp-carousel-wrapper {
    overflow: hidden;
    border-radius: 8px;
}

.csp-carousel-track {
    display: flex;
}

.csp-carousel-item {
    min-width: 100%;
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    border: 1px solid var(--border-color);
}

.csp-carousel-item:last-child {
    margin-right: 0;
}

/* Controles del carrusel */
.csp-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.csp-carousel-prev,
.csp-carousel-next {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-carousel-prev:hover,
.csp-carousel-next:hover {
    background: var(--primary-dark);
}

/* Contenido de los posts */
.csp-theme-1 .csp-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--gray-light);
}

.csp-theme-1 .csp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.csp-theme-1 .csp-grid-item:hover .csp-post-image img {
    transform: scale(1.05);
}

.csp-theme-1 .csp-post-content {
    padding: 20px 25px;
    position: absolute;
    bottom: -110px;
    left: 20px;
    right: 20px;
    border-radius: 10px;
}

.csp-theme-1 .csp-grid-item:hover .csp-post-content {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    bottom: 20px;
}

.csp-theme-1 .csp-grid-item:hover .csp-post-title a {
    color: var(--primary-lighter);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.csp-theme-1 .csp-grid-item:hover .csp-post-title {
    padding-bottom: 0;
}

.csp-theme-1 .csp-post-title {
    font-size: 20px;
    line-height: 26px;
    padding-bottom: 40px;
}

.csp-theme-1 .csp-post-title a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.csp-theme-1 .csp-post-title a:hover {
    color: var(--primary-lighter);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.csp-theme-1 .csp-post-duration {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}

.csp-theme-1 .csp-post-excerpt {
    color: var(--text-light);
    line-height: 18px;
    font-size: 14px;
    padding-top: 10px;
}

.csp-theme-1 .csp-read-more {
    text-align: right;
    position: absolute;
    top: 20px;
    right: -200px;
}

.csp-theme-1 .csp-grid-item:hover .csp-read-more {
    right: 20px;
}

.csp-theme-1 .csp-read-more a {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .csp-theme-1 .csp-grid.csp-columns-4,
    .csp-theme-1 .csp-grid.csp-columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .csp-theme-1 .csp-grid.csp-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .csp-theme-1 .csp-post-content {
        padding: 15px;
    }
    
    .csp-theme-1 .csp-post-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .csp-theme-1 .csp-grid {
        grid-template-columns: 1fr !important;
    }
    
    .csp-theme-1 .csp-carousel-item {
        min-width: 100%;
    }
    
    .csp-theme-1 .csp-post-content {
        padding: 12px;
    }
    
    .csp-theme-1 .csp-post-title {
        font-size: 15px;
    }
}
