﻿/* ======================== */
/* ESTILOS DOTA 2 ÉPICOS */
/* ======================== */

.notice-container {
    padding: 40px 20px;
    min-height: 100vh;
    color: #fff;
    font-family: 'Radiance', 'Arial', sans-serif;

    position: relative;
    overflow: hidden;
}

    /* Efecto de partículas doradas (simulado con CSS) */
    .notice-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 40%, rgba(232, 216, 168, 0.03) 0%, transparent 5%), radial-gradient(circle at 80% 60%, rgba(232, 216, 168, 0.03) 0%, transparent 5%);
        pointer-events: none;
        z-index: 0;
        animation: particleGlow 8s infinite alternate;
    }
.news-card-link {
    display: block;
    text-decoration: none !important; /* Elimina el subrayado */
    color: inherit !important; /* Hereda el color del padre */
    outline: none !important; /* Elimina el outline al hacer focus */
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}

@keyframes particleGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

/* ===================== */
/* ENCABEZADO ÉPICO */
/* ===================== */
.section-header {
    margin: 60px auto 40px;
    position: relative;
    width: 100%;
    max-width: 1400px;
    text-align: center;
    z-index: 2;
}

.title-text {
    font-size: 3rem;
    font-weight: bold;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 0 0 15px rgba(232, 216, 168, 0.5);
    background: linear-gradient(to right, #b89859, #e8d8a8, #b89859);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
    display: inline-block;
    padding: 0 30px;
    margin: 0 auto;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 10px rgba(232, 216, 168, 0.3);
    }

    100% {
        text-shadow: 0 0 20px rgba(232, 216, 168, 0.8), 0 0 30px rgba(184, 152, 89, 0.5);
    }
}

.title-line {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, #b89859, #e8d8a8, #b89859, transparent);
    z-index: 1;
    box-shadow: 0 0 15px rgba(184, 152, 89, 0.5);
}

.line-decorator {
    position: absolute;
    width: 60px;
    height: 4px;
    background: #b89859;
    top: -1px;
    box-shadow: 0 0 10px rgba(184, 152, 89, 0.8);
}

    .line-decorator.left {
        left: 0;
        transform: translateX(-100%);
    }

    .line-decorator.right {
        right: 0;
        transform: translateX(100%);
    }

/* ===================== */
/* GRID DE NOTICIAS ÉPICO */
/* ===================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.news-card {
    background: rgba(11, 8, 2, 0.7);
    border: 1px solid transparent;
    border-image: linear-gradient(to bottom right, #3d3524, #b89859, #3d3524) 1;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    height: 420px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

    .news-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(184, 152, 89, 0.1) 0%, transparent 50%);
        z-index: 1;
        opacity: 0;
        transition: opacity 0.4s;
    }

.news-image {
    height: 100%;
    overflow: hidden;
    position: relative;
    transform: translateZ(30px);
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .news-image::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60%;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 90%);
        z-index: 1;
        transition: all 0.6s ease;
    }

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(50px);
}

.news-title {
    color: #e8d8a8;
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.4s;
    font-weight: 600;
}

.news-date {
    color: #b89859;
    font-size: 0.85rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

    .news-date::before {
        content: '⚡';
        font-size: 0.9rem;
    }

.news-description {
    color: #d1d1d1;
    font-size: 0.95rem;
    margin: 15px 0;
    line-height: 1.6;
    max-height: 72px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    opacity: 0.9;
}

.read-more {
    color: #b89859;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 3px;
}

    .read-more::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 1px;
        background: #e8d8a8;
        transition: width 0.4s ease;
    }

    .read-more:hover::after {
        width: 100%;
    }

/* Efectos hover épicos */
.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(184, 152, 89, 0.2), 0 5px 15px rgba(0, 0, 0, 0.5);
    border-image: linear-gradient(to bottom right, #b89859, #e8d8a8, #b89859) 1;
}

    .news-card:hover::before {
        opacity: 1;
    }

    .news-card:hover .news-image img {
        transform: scale(1.08) rotate(0.5deg);
    }

    .news-card:hover .news-image::before {
        height: 100%;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 90%);
    }

    .news-card:hover .news-content {
        transform: translateY(-10px) translateZ(50px);
    }

/* Efecto de borde dorado al hacer hover */
.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184, 152, 89, 0.8), transparent);
    box-shadow: 0 0 15px rgba(184, 152, 89, 0.8);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.6s;
}

.news-card:hover::after {
    opacity: 1;
}

/* ===================== */
/* PAGINACIÓN ESTILIZADA */
/* ===================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 60px auto 0;
    padding: 30px 0;
    position: relative;
    z-index: 2;
}

.pagination-button {
    background: linear-gradient(to bottom, rgba(184, 152, 89, 0.2), rgba(110, 81, 14, 0.3));
    color: #e8d8a8;
    border: 1px solid #b89859;
    padding: 10px 25px;
    font-family: 'Radiance', 'Arial', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

    .pagination-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(232, 216, 168, 0.2), transparent);
        transition: all 0.6s;
    }

    .pagination-button:hover {
        background: linear-gradient(to bottom, rgba(184, 152, 89, 0.3), rgba(110, 81, 14, 0.4));
        box-shadow: 0 0 15px rgba(184, 152, 89, 0.4);
        transform: translateY(-2px);
    }

        .pagination-button:hover::before {
            left: 100%;
        }

.page-info {
    color: #d1d1d1;
    font-size: 1rem;
    min-width: 150px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    font-weight: 500;
}

/* ==================== */
/* EFECTOS ESPECIALES */
/* ==================== */
/* Efecto de brillo al azar (similar a Dota) */
@keyframes randomGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(184, 152, 89, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(232, 216, 168, 0.6);
    }
}

/* Aplicar a algunas tarjetas aleatoriamente */
.news-card:nth-child(3n+1) {
    animation: randomGlow 6s infinite alternate;
}

.news-card:nth-child(3n+2) {
    animation: randomGlow 8s infinite alternate-reverse;
}

.news-card:nth-child(3n+3) {
    animation: randomGlow 7s infinite alternate;
}

/* ==================== */
/* DISEÑO RESPONSIVO */
/* ==================== */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .title-text {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .title-text {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .notice-container {
        padding-top: 30px;
    }

    .title-text {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .news-card {
        height: 380px;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .title-text {
        font-size: 1.6rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    .news-card {
        height: 350px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
    }
}
