/* Categories Show Post - Tema 3 - Estilos */

/* Solo aplicar estos estilos cuando el tema 3 esté activo */
.csp-theme-3 .csp-description {
    font-size: 0.8rem;
    line-height: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color-secondary);
}

.csp-theme-3 .csp-cta {
    padding: 20px;
    text-align: center;
}

.csp-theme-3 .csp-cta a {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.csp-theme-3 .csp-cta a:hover {
    background-color: var(--accent-dark);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Grid Layout - Tema 3 */
.csp-theme-3 .csp-grid {
    display: grid;
    gap: 25px;
}

.csp-theme-3 .csp-grid.csp-columns-1 {
    grid-template-columns: 1fr;
}

.csp-theme-3 .csp-grid.csp-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.csp-theme-3 .csp-grid.csp-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.csp-theme-3 .csp-grid.csp-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.csp-theme-3 .csp-grid-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.csp-theme-3 .csp-grid-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Contenido de los posts - Tema 3 */
.csp-theme-3 .csp-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    z-index: 0;
}

.csp-theme-3 .csp-post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.csp-theme-3 .csp-grid-item:hover .csp-post-image::before {
    opacity: 0;
}

.csp-theme-3 .csp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.csp-theme-3 .csp-grid-item:hover .csp-post-image img {
    transform: scale(1.15);
}

/* Badge de duración sobre la imagen */
.csp-theme-3 .csp-post-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}

/* Contenido debajo de la imagen - Tema 3 */
.csp-theme-3 .csp-post-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    position: relative;
}

.csp-theme-3 .csp-post-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
    font-weight: 600;
}

.csp-theme-3 .csp-post-title a {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    transition: color 0.3s ease;
    display: block;
}

.csp-theme-3 .csp-post-title a:hover {
    color: var(--primary-color);
}

.csp-theme-3 .csp-post-excerpt {
    color: var(--text-color-secondary);
    line-height: 1.7;
    font-size: 14px;
    flex: 1;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Línea divisoria decorativa */
.csp-theme-3 .csp-post-content::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 15px 0;
}

/* Footer con enlace CTA */
.csp-theme-3 .csp-post-footer {
    margin-top: auto;
    padding-top: 15px;
}

.csp-theme-3 .csp-post-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.csp-theme-3 .csp-post-footer a::after {
    content: '→';
    transition: transform 0.3s ease;
}

.csp-theme-3 .csp-post-footer a:hover {
    gap: 12px;
}

.csp-theme-3 .csp-post-footer a:hover::after {
    transform: translateX(4px);
}

/* Responsive Design - Tema 3 */
@media (max-width: 768px) {
    .csp-theme-3 .csp-grid.csp-columns-4,
    .csp-theme-3 .csp-grid.csp-columns-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .csp-theme-3 .csp-grid.csp-columns-2 {
        grid-template-columns: 1fr;
    }
    
    .csp-theme-3 .csp-post-content {
        padding: 20px;
    }
    
    .csp-theme-3 .csp-post-title {
        font-size: 18px;
    }
    
    .csp-theme-3 .csp-post-duration {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .csp-theme-3 .csp-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .csp-theme-3 .csp-post-content {
        padding: 18px;
    }
    
    .csp-theme-3 .csp-post-title {
        font-size: 17px;
    }
    
    .csp-theme-3 .csp-post-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .csp-theme-3 .csp-post-duration {
        top: 8px;
        right: 8px;
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .csp-theme-3 .csp-post-footer {
        padding-top: 12px;
    }
}
