/* Base Styles */
body {
    background-color: #101820;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

.no-stats-message {
    color: #bbbbbb;
    font-size: 1.2rem;
    padding: 30px;
    background-color: #1c1f26;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.player-banner {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    background-color: #1a1f2b;
    padding: 30px;
    gap: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.player-info-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 260px;
    text-align: center;
}

.player-image {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    border: 3px solid #00bfff;
    background-color: #fff;
}

.player-meta {
    text-align: left;
    margin-top: 12px;
    max-width: 320px;
}

.player-meta h1 {
    font-size: 2rem;
    color: #00bfff;
}

.team-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.team-logo {
    max-width: 80px;
    height: auto;
}

/* Navigation Links */
.navigation-links {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.navigation-links a {
    color: #00bfff;
    margin: 0 10px;
    text-decoration: none;
}

.navigation-links a:hover {
    text-decoration: underline;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #00bfff;
    background-color: #1c1f26;
    border: 1px solid #2c2f36;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
}

.nav-tabs .nav-link.active {
    background-color: #00bfff;
    color: #000;
}

/* Accordion Cards */
.card {
    margin-bottom: 20px;
    border: 1px solid #2c2f36;
    background-color: #1c1f26;
    border-radius: 6px;
}

.card-header {
    background-color: #00bfff;
    color: #000;
    padding: 10px 20px;
    font-weight: bold;
}

.card-body {
    padding: 20px;
}

/* Summary Cards */
.summary-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.summary-card {
    background-color: #2a2f39;
    color: #00bfff;
    padding: 12px 16px;
    border-radius: 6px;
    flex: 0 0 auto;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.summary-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

.summary-label {
    font-size: 0.75rem;
    color: #bbbbbb;
}

/* Rankings */
.ranking-box {
    background-color: #2a2f39;
    border-radius: 8px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    flex: 0 0 auto;
    max-width: 960px;
}

.ranking-box h4 {
    color: #00bfff;
    margin-bottom: 12px;
    font-size: 1.2rem;
    text-align: center;
}

.ranking-card-container.horizontal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 0;
}

.ranking-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    padding: 16px;
    width: 180px;
    min-width: 160px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 0 0 auto;
}

.ranking-label {
    font-size: 0.9rem;
    color: #bbbbbb;
}

.ranking-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #00e0ff;
}

.ranking-value .of-total {
    font-size: 0.8rem;
    color: #888;
    margin-left: 6px;
}

.ranking-stat {
    font-size: 0.85rem;
    color: #aaaaaa;
}

.rank-up {
    color: #00ff5a;
    font-size: 1.2rem;
    margin-left: 6px;
}

.rank-down {
    color: #ff5555;
    font-size: 1.2rem;
    margin-left: 6px;
}

.rank-same {
    color: #cccccc;
    font-size: 1.2rem;
    margin-left: 6px;
}

/* Table Styling */
.table {
    width: 100%;
    font-size: 0.9rem;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #2c2f36;
    color: #e0e0e0;
}

.table thead {
    background-color: #1f1f1f;
    color: #00e0ff;
    font-weight: bold;
    text-transform: uppercase;
}

.table tbody tr:nth-child(even) {
    background-color: #1c1f26;
}

.table tbody tr:nth-child(odd) {
    background-color: #171a20;
}

.table tbody tr:hover {
    background-color: #2a2f39;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .summary-card {
        flex: 1 1 45%;
        font-size: 0.9rem;
    }

    .player-image {
        width: 90px;
        height: 90px;
    }

    .player-meta h1 {
        font-size: 1.5rem;
    }

    .player-banner {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .ranking-card {
        width: 45%;
        flex: 1 1 45%;
    }

    .ranking-card-container.horizontal {
        flex-direction: column;
        align-items: center;
    }

    .player-info-column, .ranking-box {
        text-align: center;
        align-items: center;
    }

    .team-logo {
        height: 40px;
    }

    .summary-value {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .ranking-card {
        width: 100%;
        flex: 1 1 100%;
    }
}
