/**
 * News Pages Styles - Markansaya Radio
 * Estilos para las páginas de noticias
 */

/* HERO DE NOTICIAS - COMPACTO */
.news-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 1rem 2rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: rotate-slow 30s linear infinite;
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.news-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.news-hero h1 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.news-hero-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    font-weight: 400;
}

.news-icon-hero {
    display: none;
}

/* GRID DE NOTICIAS - MÁS COMPACTO */
.news-section {
    padding: 1.5rem 1.5rem;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.news-container {
    max-width: 1400px;
    margin: 0 auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    height: 180px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-orange) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.news-card:hover .news-card-image::before {
    opacity: 0.3;
}

.news-card-image i {
    font-size: 4rem;
    color: #999;
    position: relative;
    z-index: 1;
}

.news-card-body {
    padding: 1.25rem;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--primary-dark);
    font-weight: 600;
}

.news-category {
    display: inline-block;
    background: var(--primary-yellow);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--primary-dark);
}

.news-description {
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.news-read-more:hover {
    gap: 1rem;
    color: var(--secondary-orange);
}

/* CTA SECTION */
.news-cta {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--secondary-orange) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.news-cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    font-weight: 700;
}

.news-cta-text {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-whatsapp {
    background: #25D366;
    color: white;
}

.cta-whatsapp:hover {
    background: #1DA851;
}

.cta-messenger {
    background: #0084FF;
    color: white;
}

.cta-messenger:hover {
    background: #006BD6;
}

/* PAGINACIÓN */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.page-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
}

.page-number:hover {
    border-color: var(--primary-yellow);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.page-number.active {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.page-dots {
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 3rem;
    }

    .news-hero-subtitle {
        font-size: 1.1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 400px;
        margin: 0 auto;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}
