/* Players page specific styles */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #e5e7eb;
}

/* Filters section */
.filters-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ea580c;
}

.search-btn {
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #dc2626;
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: bold;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #ea580c;
}

/* Players table */
.players-table-section {
    margin-top: 2rem;
}

.table-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-size-control label {
    font-weight: bold;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.page-size-select {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
}

.page-size-select:focus {
    outline: none;
    border-color: #ea580c;
}

.table-container {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.17rem;
}

.players-table thead {
    background-color: #ea580c;
}

.players-table th {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 2px solid #dc2626;
}

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

.players-table tbody tr:hover {
    background-color: #f3f4f6;
}

.players-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.players-table tbody tr:nth-child(even):hover {
    background-color: #f3f4f6;
}

.players-table td {
    padding: 0.75rem;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.players-table td:first-child {
    font-weight: bold;
    color: #1f2937;
}

.players-table td:nth-child(2) {
    color: #6b7280;
}

.players-table td:nth-child(3) {
    font-weight: bold;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.players-table td:nth-child(4),
.players-table td:nth-child(5),
.players-table td:nth-child(6),
.players-table td:nth-child(7) {
    text-align: center;
    font-weight: bold;
    color: #1f2937;
}

.players-table td:nth-child(8),
.players-table td:nth-child(9),
.players-table td:nth-child(10) {
    text-align: center;
    color: #6b7280;
}

.player-name-link {
    color: #ea580c;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.player-name-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-size: 1.2rem;
}

/* Error and no results states */
.error, .no-results {
    text-align: center;
    padding: 3rem;
}

.error h3, .no-results h3 {
    color: #dc2626;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error p, .no-results p {
    color: #6b7280;
    font-size: 1.1rem;
}

.no-results h3 {
    color: #fbbf24;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-btn {
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #dc2626;
}

.pagination-btn.active {
    background-color: #dc2626;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.pagination-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.pagination-info {
    color: #e5e7eb;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .filters-container {
        gap: 1rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        justify-content: center;
    }
    
    .page-size-control {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .players-table {
        font-size: 1.04rem;
    }
    
    .players-table th,
    .players-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.5rem;
    }
    
    .filters-section {
        padding: 1rem;
    }
    
    .players-table {
        font-size: 0.91rem;
    }
    
    .players-table th,
    .players-table td {
        padding: 0.25rem 0.1rem;
    }
} 