/* Grid Random Show Post - Estilos */

.grsp-description {
    margin-bottom: 20px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* Grid Layout Personalizado - 6 Posts en 4 Columnas */
.grsp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Post 1: 2 filas, 1 columna */
.grsp-item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Post 2: 1 fila, 1 columna */
.grsp-item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Post 3: 2 filas, 1 columna */
.grsp-item-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
}

/* Post 4: 1 fila, 1 columna */
.grsp-item-4 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

/* Post 5: 1 fila, 1 columna */
.grsp-item-5 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Post 6: 1 fila, 1 columna */
.grsp-item-6 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* Estilos de los items del grid */
.grsp-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 100%;
}

.grsp-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Categoría del post */
.grsp-post-category {
    position: absolute;
    top: 30px;
    right: 30px;
    background: var(--accent-color);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.grsp-grid-item:hover .grsp-post-category {
    background: var(--accent-hover);
}

/* Imagen del post */
.grsp-post-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.grsp-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grsp-grid-item:hover .grsp-post-image img {
    transform: scale(1.1);
}

/* Contenido del post */
.grsp-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    transition: background 0.3s ease;
}

.grsp-grid-item:hover .grsp-post-content {
    background: rgba(0,0,0,0.85);
}

.grsp-post-title {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 5px;
}

.grsp-post-title a {
    color: #fff;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

.grsp-post-title a:hover {
    color: var(--accent-color);
}

.grsp-post-duration {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .grsp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grsp-item-1 {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .grsp-item-2 {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .grsp-item-3 {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
    }
    
    .grsp-item-4 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .grsp-item-5 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .grsp-item-6 {
        grid-column: 3 / 4;
        grid-row: 3 / 4;
    }
}

@media (max-width: 768px) {
    .grsp-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        grid-auto-rows: 250px !important;
    }
    
    .grsp-item-1,
    .grsp-item-2,
    .grsp-item-3,
    .grsp-item-4,
    .grsp-item-5,
    .grsp-item-6 {
        grid-column: 1 / 2;
        grid-row: auto;
    }
    
    .grsp-post-title {
        font-size: 16px;
        line-height: 20px;
    }
    
    .grsp-post-content {
        padding: 15px;
    }
    
    .grsp-post-category {
        top: 15px;
        right: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

