/* RTS Grilla de Notas - Estilos */

/* Skeleton Loading Animation */
.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #f0f0f0 0%,
        #e0e0e0 20%,
        #f0f0f0 40%,
        #f0f0f0 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.post-thumbnail.loading {
    position: relative;
    background-color: #f0f0f0;
}

.post-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(240, 240, 240, 0.8) 0%,
        rgba(224, 224, 224, 0.8) 20%,
        rgba(240, 240, 240, 0.8) 40%,
        rgba(240, 240, 240, 0.8) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    z-index: 0;
}

section {
    margin: 0!important;
}

section:has(.rts-posts-grid) {
    padding: 1rem 0;
}

.post-card {
    min-height: 250px;
    background-size: cover;
    background-position: center;
    padding: 1.5rem;
    color: white;
    display: flex;
    align-items: flex-end;
}

.post-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 64%);
    z-index: 1;
}

.post-card-content {
    position: relative;
    z-index: 2;
}

.post-card-content h2, 
.post-card-content h3 {
    margin-bottom: 0;
    font-family: var(--bs-body-font-family);
    line-height: 1.2;
}

.post-card-content h3 {
    font-size: clamp(1.6rem, calc(1.5vw + 1rem), 1.85rem);
}

/* TEMPLATES */
@media (min-width: 768px) {
    .tmpl-5 .post-card {
        min-height: 1px;
    }
}

.post-title.text-over-image a {
    color: white;
    display: block;
    text-decoration: none;
}

.post-title.um-title a {
    color: #cd0000;
}

.post-meta {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.post-card-content .post-excerpt {
    font-size: 0.9rem;
    margin-bottom: 0;
    margin-top: .6rem;
}

.post-thumbnail {
    display: block;
    overflow: hidden;
}

.post-category {
    margin-bottom: 0.5rem;
}

.post-category span {
    font-size: 0.85rem;
    text-transform: uppercase;
}

.post-category a {
    color: rgb(139 139 139);
}

.section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #717171;
}

.img-cover {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    object-position: center;
}

.post-card-stacked {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.post-card-stacked h3 {
    font-size: clamp(0.75rem, calc(3vw + 0.3rem), 1.1rem);
}

.post-card-stacked.post-card-featured h3 {
    font-size: clamp(0.75rem, calc(3vw + 0.75rem), 1.6rem);
}

.rts-posts-list {
    margin: 0;
    padding: 0;
    list-style-type: auto;
    list-style-position: inside;
}

.rts-posts-list li {
    margin-bottom: 0.5rem;
}

.rts-posts-list li::marker {
    color: #cd0000;
    font-size: 1rem;
    font-weight: 600;
}

.rts-posts-list a {
    color: inherit;
    text-decoration: none;
    font-size: .8rem;
}

.rts-posts-list a:hover {
    text-decoration: underline;
}

/* Último Momento */
.um-tag {
    background-color: #cd0000;
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.um-img-wrapper {
    border-radius: 4px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
    .post-card {
        min-height: 200px;
    }
    
    .post-card-content h3 {
        font-size: 1.2rem;
    }
}
