/* General Styles */
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background-color: #1e1e1e;
    padding: 15px 0;
}

.navbar .logo {
    font-size: 1.8em;
    color: #ffffff;
    text-decoration: none;
}

.navbar .logo span {
    color: #42a5f5;
}

/* Player Header */
.player-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.player-header h1 {
    font-size: 2em;
    margin: 0;
    color: #ffffff;
}

.player-header p {
    margin: 5px 0;
}

.player-header a {
    color: #42a5f5;
    text-decoration: none;
}

.player-header a:hover {
    text-decoration: underline;
}

.player-league {
    text-align: center;
}

.player-league img {
    width: 80px;
    height: 80px;
}

.player-league p {
    margin-top: 5px;
}

/* Tabs */
.village-tabs, .section-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.village-tabs a, .section-tabs a {
    padding: 10px 15px;
    margin-right: 5px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.village-tabs a:hover, .section-tabs a:hover {
    background-color: #2c2c2c;
}

.active {
    background-color: #42a5f5;
    color: #ffffff;
}

/* Content */
.content {
    margin-top: 20px;
}

/* Cards */
.card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.card h2 {
    margin-top: 0;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    color: #ffffff;
}

/* Stats Container */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    width: calc(25% - 20px);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.stat-card h3 {
    margin-top: 0;
    color: #ffffff;
}

.stat-card p {
    font-size: 1.5em;
    margin: 10px 0 0;
}

/* Troop Grid */
.troop-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.troop-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    width: calc(20% - 20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.troop-item img {
    width: 80px;
    height: 80px;
}

.troop-item p {
    margin: 5px 0 0;
}

/* Labels Container */
.labels-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.label-item {
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    width: calc(20% - 10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.label-item img {
    width: 50px;
    height: 50px;
}

.label-item p {
    margin: 5px 0 0;
}

/* Footer */
.footer {
    background-color: #1e1e1e;
    padding: 20px 0;
    text-align: center;
    color: #777;
    border-top: 1px solid #333;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stat-card {
        width: calc(33.33% - 20px);
    }

    .troop-item {
        width: calc(25% - 20px);
    }

    .label-item {
        width: calc(25% - 10px);
    }
}

@media (max-width: 768px) {
    .stat-card {
        width: calc(50% - 20px);
    }

    .troop-item {
        width: calc(33.33% - 20px);
    }

    .label-item {
        width: calc(33.33% - 10px);
    }
}

@media (max-width: 480px) {
    .stat-card, .troop-item, .label-item {
        width: 100%;
    }

    .village-tabs a, .section-tabs a {
        margin-bottom: 5px;
    }
}

/* Achievements */
.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-item {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.achievement-item h3 {
    margin-top: 0;
    color: #ffffff;
}

.achievement-item p {
    margin: 5px 0;
}
