/* Minecraft Server Stats - Custom CSS */

:root {
    --mc-green: #00aa00;
    --mc-dark-green: #005500;
    --mc-gray: #aaaaaa;
    --mc-dark-gray: #555555;
    --mc-black: #000000;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

/* Minecraft-style font for branding */
.minecraft-font {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.card-header {
    background-color: #343a40;
    color: white;
    font-weight: 600;
    border-bottom: 3px solid var(--mc-green);
}

.card-header.bg-success {
    background-color: var(--mc-green) !important;
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 170, 0, 0.1);
    cursor: pointer;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.badge.bg-primary {
    background-color: #0066cc !important;
}

/* List groups for leaderboards */
.list-group-numbered {
    counter-reset: section;
}

.list-group-item {
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.list-group-item:hover {
    border-left-color: var(--mc-green);
    background-color: rgba(0, 170, 0, 0.05);
}

.list-group-item:nth-child(1) {
    background-color: rgba(255, 215, 0, 0.1);
    font-weight: 600;
}

.list-group-item:nth-child(2) {
    background-color: rgba(192, 192, 192, 0.1);
    font-weight: 500;
}

.list-group-item:nth-child(3) {
    background-color: rgba(205, 127, 50, 0.1);
    font-weight: 500;
}

/* Server status indicators */
.server-online {
    color: var(--mc-green);
    font-weight: bold;
}

.server-offline {
    color: #cc0000;
    font-weight: bold;
}

/* Stats display */
.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--mc-green);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--mc-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 3px solid var(--mc-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .card-body .row > div {
        margin-bottom: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }
}

/* Player cards grid */
.player-card {
    transition: all 0.3s;
}

.player-card:hover {
    transform: scale(1.02);
}

/* Utility classes */
.text-mc-green {
    color: var(--mc-green) !important;
}

.bg-mc-green {
    background-color: var(--mc-green) !important;
}

/* Loading animation (optional for future use) */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
