/**
 * Race Archive Styles (moved from inline in inc/ajax-race-filter.php)
 */

/* Archive Header */
.yur-archive-header {
    text-align: center;
    margin-bottom: 30px;
}
.yur-archive-title {
    margin: 0 0 10px;
}
.yur-search-result {
    color: #666;
}

/* Filter Section */
.yur-race-filters {
    margin-bottom: 30px;
}
.yur-filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Status Tabs */
.yur-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}
.yur-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.2s;
}
.yur-tab:hover {
    background: #e0e0e0;
}
.yur-tab.active {
    background: var(--primary-color, #3452ff);
    color: #fff;
}
.yur-tab .count {
    opacity: 0.7;
    font-size: 0.9em;
}

/* Filter Controls */
.yur-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.yur-search-box {
    display: flex;
    flex: 1;
    max-width: 400px;
}
.yur-search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.yur-search-box button {
    padding: 10px 15px;
    background: var(--primary-color, #3452ff);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.yur-sort-box select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    min-width: 180px;
}

/* Pagination */
.yur-pagination {
    margin-top: 40px;
    text-align: center;
}
.yur-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.yur-pagination .page-numbers.current {
    background: var(--primary-color, #3452ff);
    color: #fff;
}
.yur-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

/* No Results */
.yur-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.yur-no-results-icon {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
}
.yur-no-results h3 {
    margin: 0 0 10px;
}
.yur-no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* Race Card Badge Position */
.yur-race-card-image {
    position: relative;
}
.yur-race-card-image .race-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Slots Warning */
.yur-slots-remaining {
    display: block;
    font-size: 0.85em;
    color: #e74c3c;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .yur-filter-controls {
        flex-direction: column;
    }
    .yur-search-box {
        max-width: 100%;
        width: 100%;
    }
    .yur-sort-box {
        width: 100%;
    }
    .yur-sort-box select {
        width: 100%;
    }
}
