/* Map MVP System CSS2 Stylesheet */
/* Compatible with older browsers and CS 1.6 MOTD display */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background-color: #2a5298; /* Fallback for older browsers */
    margin: 0;
    padding: 20px;
    color: #ffffff;
}

.mvp-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    color: #333333;
}

.mvp-title {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    background-color: #ee5a24; /* Fallback */
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 20px;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.map-info {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    display: block; /* CSS2 compatibility */
}

.map-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
    float: left;
}

.map-duration {
    font-weight: bold;
    color: #27ae60;
    font-size: 16px;
    float: right;
}

.mvp-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 14px;
}

.mvp-table thead {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    background-color: #2c3e50; /* Fallback */
}

.mvp-table th {
    color: #ffffff;
    padding: 15px 8px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #4a6741;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mvp-table th:last-child {
    border-right: none;
}

.mvp-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.mvp-table tbody tr:hover {
    background-color: #f8f9fa;
}

.mvp-row.mvp-first {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    background-color: #ffed4e; /* Fallback */
    font-weight: bold;
}

.mvp-row.mvp-top3 {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    background-color: #e67e22; /* Fallback */
    color: #ffffff;
}

.mvp-table td {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e9ecef;
    font-size: 13px;
}

.mvp-table td:last-child {
    border-right: none;
}

/* Column specific styling */
.rank-col, .rank-cell {
    width: 8%;
    font-weight: bold;
}

.name-col, .name-cell {
    width: 20%;
    text-align: left !important;
    font-weight: bold;
}

.damage-col, .damage-cell {
    width: 12%;
    color: #e74c3c;
    font-weight: bold;
}

.frags-col, .frags-cell {
    width: 10%;
    color: #27ae60;
    font-weight: bold;
}

.deaths-col, .deaths-cell {
    width: 10%;
    color: #c0392b;
}

.kd-col, .kd-cell {
    width: 10%;
    color: #8e44ad;
    font-weight: bold;
}

.hs-col, .hs-cell {
    width: 10%;
    color: #f39c12;
}

.acc-col, .acc-cell {
    width: 10%;
    color: #3498db;
}

.time-col, .time-cell {
    width: 10%;
    color: #7f8c8d;
    font-family: monospace;
}

/* MVP indicators */
.mvp-first .rank-cell {
    background-color: #f1c40f;
    color: #2c3e50;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
}

.mvp-top3 .rank-cell {
    background-color: #e67e22;
    color: #ffffff;
    border-radius: 50%;
    font-weight: bold;
}

/* Stats highlighting */
.mvp-table .damage-cell {
    position: relative;
}

.mvp-first .damage-cell {
    background-color: rgba(231, 76, 60, 0.2);
    border-radius: 4px;
}

.mvp-table .frags-cell {
    position: relative;
}

.mvp-first .frags-cell,
.mvp-top3 .frags-cell {
    background-color: rgba(39, 174, 96, 0.2);
    border-radius: 4px;
}

/* Footer */
.mvp-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

.mvp-footer p {
    margin: 5px 0;
}

.mvp-footer p:first-child {
    font-weight: bold;
    font-size: 14px;
    color: #3498db;
}

/* Responsive adjustments for smaller MOTD windows */
@media screen and (max-width: 800px) {
    .mvp-container {
        margin: 10px;
    }
    
    .mvp-title {
        font-size: 24px;
        padding: 15px;
    }
    
    .mvp-table {
        font-size: 12px;
    }
    
    .mvp-table th,
    .mvp-table td {
        padding: 8px 4px;
    }
}

/* Animation effects */
.mvp-table tbody tr {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Clear floats */
.map-info:after {
    content: "";
    display: table;
    clear: both;
}

/* Additional professional touches */
.mvp-table thead th {
    position: relative;
}

.mvp-table thead th:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 30px;
    height: 2px;
    background-color: #3498db;
    margin-left: -15px;
}

/* Zebra striping for better readability */
.mvp-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.mvp-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Override zebra for special rows */
.mvp-row.mvp-first,
.mvp-row.mvp-top3 {
    /* Keep the special background colors */
}
