﻿/* ======================== */
/* ESTILOS GENERALES DOTA 2 */
/* ======================== */


/* Contenedor principal */
.container {
    position: relative;
    padding-top: 0px;
    text-align: center;
}

.index .container {
    padding-top: 0;
}

.dota-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.dota-container {
    padding: 20px;
    min-height: 100vh;
    overflow: visible !important; /* Forzar visibilidad */
    color: #fff;
    font-family: 'Radiance', 'Arial', sans-serif;
    max-width: 100%;
    overflow-x: hidden;
}

.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%;
}

.header-title {
    display: inline-block;
    position: relative;
    margin: 0 auto;
}

.title-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f8f8f8;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    background: linear-gradient(to right, #b89859, #e8d8a8, #b89859);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.title-line {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1px;
    z-index: 1;
}

.line-center {
    height: 2px;
    background: linear-gradient(to right, transparent, #b89859, #e8d8a8, #b89859, transparent);
    width: 100%;
    position: absolute;
    top: 0;
}

.line-decorator {
    position: absolute;
    width: 40px;
    height: 4px;
    background: #b89859;
    top: -1px;
}

    .line-decorator.left {
        left: 0;
        transform: translateX(-100%);
    }

    .line-decorator.right {
        right: 0;
        transform: translateX(100%);
    }

/* ===================== */
/* SECCIÓN DE NOTICIAS */
/* ===================== */
.news-section {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

    .section-header .title-text {
        display: inline-block;
        margin: 0 auto;
        z-index: 2;
        position: relative;
    }


    .section-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to right, transparent, #b89859, #e8d8a8, #b89859, transparent);
    }


.parent-container {
    position: relative; /* Necesario para usar absolute dentro */
}

.view-all {
    position: absolute;
    top: 0;
    right: -400px;
    color: #b89859;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

    .view-all:hover {
        color: #e8d8a8;
        border-color: #b89859;
    }

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.view-all:hover .arrow {
    transform: translateX(3px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient( to right, transparent 0%, rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0.52) 40%, rgba(255, 255, 255, 0.05) 60%, transparent 100% );
    transform: skewX(-20deg);
    z-index: 1;
    pointer-events: none;
    animation: solarGlide 2s infinite ease-in-out;
    opacity: 0;
}

@keyframes solarGlide {
    0% {
        left: -60%;
        opacity: 0;
    }

    30% {
        opacity: 0.4;
    }

    70% {
        opacity: 0.4;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}


.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

    .news-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    /* Degradado por defecto (parte inferior a mitad de imagen) */
    .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.1) 20%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.9) 100%);
        z-index: 1;
        transition: all 0.5s ease;
    }

.news-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 2;
    transform: translateY(0);
    transition: all 0.5s ease;
}

.news-title {
    color: #e8d8a8;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.3s;
}

.news-date {
    color: #b89859;
    font-size: 0.8rem;
    margin: 0 0 10px 0;
    opacity: 1;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .news-date::before {
        content: '📅';
        font-size: 0.9rem;
    }

.news-description {
    color: #d1d1d1;
    font-size: 0.9rem;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    line-height: 1.5;
}

.read-more {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #b89859;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .read-more::after {
        content: '→';
        transition: transform 0.3s;
    }

/* Efectos hover */
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(184, 152, 89, 0.3);
    border-color: #b89859;
}

    .news-card:hover .news-image img {
        transform: scale(1.05);
    }

    .news-card:hover .news-image::before {
        height: 100%;
        background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 30%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0.9) 100%);
    }

    .news-card:hover .news-content {
        transform: translateY(-20%);
        background: linear-gradient(to bottom, transparent, rgba(11, 8, 2, 0.9));
    }

    .news-card:hover .news-description {
        max-height: 100px;
        opacity: 1;
        margin: 15px 0 0 0;
    }

    .news-card:hover .read-more {
        opacity: 1;
        transform: translateY(0);
    }

.read-more:hover {
    color: #e8d8a8;
    text-shadow: 0 0 5px rgba(232, 216, 168, 0.3);
}

    .read-more:hover::after {
        transform: translateX(3px);
    }

/* 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 10px rgba(184, 152, 89, 0.5);
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover::after {
    opacity: 1;
}

/* ===================== */
/* SECCIÓN DE RANKINGS */
/* ===================== */
.rankings-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    overflow-x: auto; /* Habilitar scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: #b89859 rgba(11, 8, 2, 0.7); /* Color del scroll */
}

.ranking-box {
    flex: 1;
    background: rgba(11, 8, 2, 0.7);
    border: 1px solid #3d3524;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

    .ranking-box:hover {
        box-shadow: 0 0 30px rgba(184, 152, 89, 0.3);
    }

.faction-header {
    padding: 15px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(184, 152, 89, 0.2), rgba(0, 0, 0, 0.5));
    border-bottom: 1px solid #3d3524;
}

.ranking-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.human-faction .ranking-title {
    color: #ed5565;
    text-shadow: 0 0 8px rgba(237, 85, 101, 0.6);
}

.karus-faction .ranking-title {
    color: #5d9cec;
    text-shadow: 0 0 8px rgba(93, 156, 236, 0.6);
}

.faction-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.human-icon {
    background-image: url('Images/human-icon.png');
}

.karus-icon {
    background-image: url('Images/karus-icon.png');
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #d1d1d1;
}

    .ranking-table th {
        background: linear-gradient(to bottom, #3d3524, #2a251a);
        color: #e8d8a8;
        padding: 12px 8px;
        text-align: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.9rem;
        letter-spacing: 1px;
        border-bottom: 1px solid #b89859;
    }

    .ranking-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #2a251a;
    }

    .ranking-table tr:nth-child(even) {
        background-color: rgba(45, 40, 30, 0.5);
    }

    .ranking-table tr:hover {
        background-color: rgba(184, 152, 89, 0.1);
    }

    .ranking-table .knight-rank-container {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .ranking-table img {
        border-radius: 3px;
        border: 1px solid #3d3524;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    }

        .ranking-table img[src=""] {
            display: none;
        }

.player-name-image {
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 3px;
    border: 1px solid rgba(184, 152, 89, 0.3);
}

    .player-name-image:hover {
        transform: scale(1.05);
        box-shadow: 0 0 10px rgba(184, 152, 89, 0.5);
    }

    .player-name-image[src=""] {
        display: none;
    }

.ui-tooltip {
    background: rgba(11, 8, 2, 0.9);
    border: 1px solid #b89859;
    color: #e8d8a8;
    font-family: 'Radiance', 'Arial', sans-serif;
    padding: 5px 10px;
    border-radius: 3px;
}


/* Responsive */
@media (max-width: 1200px) {
    .news-grid {
        width: calc(350px * 3 + 25px * 2); /* 3 cards */
    }
}

/* Contenedor del carrusel */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 20px;
}

/* Animación para el desplazamiento automático del grid */
.news-grid {
    display: flex;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    justify-content: center;
}


.news-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 25px 0;
    margin-left: 135px; /* Ajuste para alineación */
}


.news-card {
    flex: 0 0 calc(25% - 19px); /* 4 tarjetas por fila */
    min-width: 250px; /* Ancho mínimo */
    box-sizing: border-box;
    scroll-snap-align: start;
    background: rgba(11, 8, 2, 0.7);
    border: 1px solid #3d3524;
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}


@media (max-width: 768px) {

    .rankings-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .title-text {
        font-size: 1.8rem;
    }
}
 /* Elimina cualquier estilo de visited */
    .news-card-link:visited {
        color: inherit !important;
    }

    /* Estilo para hover (opcional) */
    .news-card-link:hover {
        transform: translateY(-5px);
    }

    /* Elimina el efecto de active/focus */
    .news-card-link:active, 
    .news-card-link:focus {
        outline: none !important;
        border: none !important;
    }