/* Wilhelminalaan Petanque - Professional Styling */

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1, h2 {
    color: #2c3e50;
    margin-top: 30px;
}

h1 {
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f1f9ff;
}

/* First column styling for first two tables only */
table:nth-of-type(-n+2) td:first-child, th:first-child {
    font-weight: bold;
}

/* Specific styling for the standings table - medal positions */
table:first-of-type tr:nth-child(2) {
    background-color: #f1c40f; /* Gold - 1st place */
}

table:first-of-type tr:nth-child(3) {
    background-color: #e0e0e0; /* Silver - 2nd place */
}

table:first-of-type tr:nth-child(4) {
    background-color: #cd7f32; /* Bronze - 3rd place */
}

/* Matches played table styling */
.same-player {
    background-color: #e0e0e0; /* Grey background for same player cells */
}

/* Checkmark styling */
table:nth-of-type(2) td:contains('✓') {
    color: #2ecc71;
    font-weight: bold;
    text-align: center;
    background-color: #e8f4fc;
    font-size: 1.2em;
}

/* Match results styling */
table:last-of-type tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive design */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
    
    body {
        padding: 10px;
    }
}
/* Header row in matches played table */
.header-row td {
    font-weight: bold;
}