﻿======================== */
/* ESTILOS GENERALES - RANKING */
/* ======================== */
.dota-container {
    padding: 20px;
    min-height: 100vh;
    color: #fff;
    font-family: 'Radiance', 'Arial', sans-serif;
    background-size: cover;
}

.dota-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.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%);
    }

/* ===================== */
/* CONTENEDOR DE RANKINGS */
/* ===================== */
.rankings-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ranking-box {
    flex: 1;
    background: rgba(11, 8, 2, 0.85);
    border: 1px solid #3d3524;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

    .ranking-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(184, 152, 89, 0.3);
        border-color: #b89859;
    }

.faction-header {
    padding: 18px;
    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;
    position: relative;
}

    .faction-header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, #b89859, transparent);
        box-shadow: 0 0 10px rgba(184, 152, 89, 0.5);
    }

.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: 12px;
}

.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: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 3px currentColor);
}

.human-icon {
    background-image: url('../Images/Nation/human.png');
}

.karus-icon {
    background-image: url('../Images/Nation/karus.png');
}

/* ===================== */
/* TABLA DE RANKING */
/* ===================== */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #d1d1d1;
    font-size: 0.95rem;
}

    .ranking-table th {
        background: linear-gradient(to bottom, #3d3524, #2a251a);
        color: #e8d8a8;
        padding: 14px 12px;
        text-align: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
        position: sticky;
        top: 0;
    }

    .ranking-table td {
        padding: 12px;
        border-bottom: 1px solid #2a251a;
        vertical-align: middle;
    }

    .ranking-table tr:nth-child(even) {
        background-color: rgba(45, 40, 30, 0.4);
    }

    .ranking-table tr:hover {
        background-color: rgba(184, 152, 89, 0.15);
    }

.knight-rank-container {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre iconos y texto */
}

.player-name-image {
    /* Tus estilos existentes para el icono de rango */
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid rgba(184, 152, 89, 0.3);
}

    .player-name-image:hover {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(184, 152, 89, 0.6);
        border-color: #b89859;
    }

/* ===================== */
/* ESTADOS Y MENSAJES */
/* ===================== */
.no-data-message {
    padding: 30px;
    text-align: center;
    color: #b89859;
    font-style: italic;
    font-size: 1.1rem;
}

/* ===================== */
/* EFECTOS ESPECIALES */
/* ===================== */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(184, 152, 89, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(184, 152, 89, 0.6);
    }

    100% {
        box-shadow: 0 0 5px rgba(184, 152, 89, 0.3);
    }
}

.human-faction {
    animation: glow 4s infinite alternate;
}

.karus-faction {
    animation: glow 4s infinite alternate-reverse;
}

/* ==================== */
/* DISEÑO RESPONSIVO */
/* ==================== */
@media (max-width: 1200px) {
    .rankings-container {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .rankings-container {
        flex-direction: column;
        gap: 30px;
    }

    .ranking-box {
        width: 100%;
    }

    .title-text {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .dota-container {
        padding: 15px;
    }

    .title-text {
        font-size: 1.8rem;
    }

    .ranking-title {
        font-size: 1.3rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 576px) {
    .title-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }

    .ranking-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }

    .faction-icon {
        width: 24px;
        height: 24px;
    }

    .ranking-table {
        font-size: 0.85rem;
    }

    .player-name-image {
        width: 24px;
        height: 24px;
    }
}




.class-image {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    border: 1px solid #3d3524;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

    .class-image:hover {
        transform: scale(1.1);
        box-shadow: 0 0 8px rgba(184, 152, 89, 0.5);
    }
