/* De Ganze Wedstrijduitslagen - v4 SwimRankings Edition */

.deganze-wedstrijden {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header & Filters */
.wedstrijden-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.wedstrijden-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#wedstrijd-search,
#wedstrijd-year-filter {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

#wedstrijd-search:focus,
#wedstrijd-year-filter:focus {
    outline: none;
    border-color: #0066cc;
}

/* Wedstrijd Items */
.wedstrijd-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.wedstrijd-item:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wedstrijd-item.open {
    border-color: #0066cc;
}

.wedstrijd-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.wedstrijd-header:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

.wedstrijd-info h3 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    color: #0066cc;
    font-size: 18px;
    transition: transform 0.3s;
}

.wedstrijd-meta {
    color: #666;
    font-size: 15px;
}

.wedstrijd-actions .btn-pdf {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
}

.wedstrijd-actions .btn-pdf:hover {
    background: #0052a3;
}

.wedstrijd-content {
    padding: 0 20px 20px 20px;
}

/* v4: Metadata */
.wedstrijd-metadata {
    background: #f0f9ff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid #0066cc;
}

.metadata-item {
    color: #333;
    font-size: 15px;
}

/* v4: Filters */
.result-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-search,
.filter-geslacht,
.filter-onderdeel {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.filter-search {
    flex: 1;
    min-width: 200px;
}

/* v4: Zwemmer Blocks */
.zwemmer-block {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    transition: box-shadow 0.3s;
}

.zwemmer-block:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zwemmer-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f9ff;
}

.zwemmer-naam {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.zwemmer-jaar {
    color: #666;
    font-weight: normal;
    font-size: 16px;
}

.zwemmer-geslacht {
    font-size: 20px;
}

/* v4: Resultaten Tabel */
.zwemmer-resultaten {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.zwemmer-resultaten thead {
    background: #f8f9fa;
}

.zwemmer-resultaten th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.zwemmer-resultaten td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.zwemmer-resultaten tbody tr:hover {
    background: #f8f9fa;
}

.onderdeel-col {
    font-weight: 500;
    color: #1a1a1a;
}

.event-info {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: normal;
    margin-top: 2px;
}

.rang-col {
    font-weight: 600;
    color: #0066cc;
    font-size: 15px;
}

.tijd-col {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #1a1a1a;
}

.punten-col {
    color: #666;
    text-align: center;
}

.geen-resultaten {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* No parsed data */
.no-parsed-data {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-parsed-data p {
    margin: 10px 0;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .wedstrijd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .result-filters {
        flex-direction: column;
    }
    
    .filter-search,
    .filter-geslacht,
    .filter-onderdeel {
        width: 100%;
    }
    
    .zwemmer-resultaten {
        font-size: 13px;
    }
    
    .zwemmer-resultaten th,
    .zwemmer-resultaten td {
        padding: 8px;
    }
    
    .zwemmer-naam {
        font-size: 16px;
        flex-wrap: wrap;
    }
}

/* Print styles */
@media print {
    .wedstrijden-filters,
    .result-filters,
    .btn-pdf,
    .wedstrijd-actions {
        display: none !important;
    }
    
    .wedstrijd-item {
        page-break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    .wedstrijd-content {
        display: block !important;
    }
}

/* Jaar filter knoppen (frontend) */
.jaar-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jaar-filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.jaar-filter-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,102,204,0.2);
}

.jaar-filter-btn.active {
    background: #0066cc;
    border-color: #0066cc;
    color: white;
    box-shadow: 0 4px 12px rgba(0,102,204,0.3);
}

@media (max-width: 768px) {
    .jaar-filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
