﻿/* ======================== */
/* ESTILOS CLAN RANKING */
/* ======================== */

.dota-container {
    max-width: 1200px;
    margin: 0 auto;
    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 ranking */
.rankings-container {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ranking-box {
    width: 100%;
    max-width: 1100px;
    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;
    color: #e8d8a8;
    text-shadow: 0 0 8px rgba(184, 152, 89, 0.6);
}

.clan-icon {
    background-image: url('../Images/clan-icon.png');
    filter: drop-shadow(0 0 3px rgba(184, 152, 89, 0.6));
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ranking-content {
    padding: 15px;
    overflow-x: auto;
}

.nation-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
}

.nation-image, .grade-image {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(184, 152, 89, 0.3);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    object-fit: cover;
}

    .nation-image:hover, .grade-image:hover {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(184, 152, 89, 0.6);
        border-color: #b89859;
    }

.leader-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    padding-left: 10px;
}


.leader-class-image,
.leader-rank-image {
    width: 20px; /* Reducido de 28px a 24px */
    height: 20px; /* Reducido de 28px a 24px */
    /* Mantener el resto de propiedades igual */
    border-radius: 4px;
    border: 1px solid rgba(184, 152, 89, 0.3);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    object-fit: cover;
}

    .leader-class-image:hover, .leader-rank-image:hover {
        transform: scale(1.1);
        box-shadow: 0 0 12px rgba(184, 152, 89, 0.6);
        border-color: #b89859;
    }

.clan-link {
    color: #e8d8a8;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(184, 152, 89, 0.3);
}

    .clan-link:hover {
        color: #f8f8f8;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }

/* Table specific styles */
    .ranking-table {
    width: 100%;
    border-collapse: collapse;
    color: #d1d1d1;
    font-size: 0.95rem;
    margin: 0 auto;
}

    .ranking-table th {
        background: linear-gradient(to bottom, #3d3524, #2a251a);
        color: #e8d8a8;
        padding: 14px 12px;
        text-align: center;
        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;
        text-align: center;
    }

    .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);
    }

    /* Special styling for clan points */
    .ranking-table td:nth-child(6),
    .ranking-table td:nth-child(7) {
        font-family: 'Courier New', monospace;
        font-weight: bold;
        color: #e8d8a8;
        text-shadow: 0 0 5px rgba(184, 152, 89, 0.3);
    }

/* No data message */
.no-data-message {
    padding: 30px;
    text-align: center;
    color: #b89859;
    font-style: italic;
    font-size: 1.1rem;
    background: rgba(11, 8, 2, 0.3);
    border-radius: 4px;
    margin: 20px auto;
    max-width: 800px;
}

/* Animation for clan ranking box */
@keyframes clanGlow {
    0% {
        box-shadow: 0 0 10px rgba(184, 152, 89, 0.2);
        border-color: #3d3524;
    }

    50% {
        box-shadow: 0 0 20px rgba(184, 152, 89, 0.4);
        border-color: #b89859;
    }

    100% {
        box-shadow: 0 0 10px rgba(184, 152, 89, 0.2);
        border-color: #3d3524;
    }
}

.ranking-box {
    animation: clanGlow 5s infinite;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dota-container {
        padding: 20px 40px;
    }
}

@media (max-width: 992px) {
    .ranking-table {
        font-size: 0.9rem;
    }

    .nation-image, .grade-image,
    .leader-class-image, .leader-rank-image {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .dota-container {
        padding: 20px 30px;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 10px 8px;
    }

        .ranking-table th:nth-child(4),
        .ranking-table td:nth-child(4),
        .ranking-table th:nth-child(7),
        .ranking-table td:nth-child(7) {
            display: none;
        }
}

@media (max-width: 576px) {
    .dota-container {
        padding: 15px;
    }

    .ranking-table {
        font-size: 0.8rem;
    }

        .ranking-table th:nth-child(5),
        .ranking-table td:nth-child(5) {
            display: none;
        }

    .leader-container {
        flex-direction: column;
        gap: 5px;
    }

    .nation-container {
        flex-direction: column;
        gap: 5px;
    }

    .title-text {
        font-size: 1.8rem;
    }
}
