/* Records Page Styles */

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: #f5f5f5;
}

/* Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.page-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.back-btn {
    color: #3b82f6;
    text-decoration: none;
    font-size: 1rem;
}

.back-btn:hover {
    text-decoration: underline;
}

.header-spacer {
    width: 60px;
}

/* Stats Summary */
.stats-summary {
    display: flex;
    justify-content: space-around;
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Difficulty Stats */
.difficulty-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.difficulty-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.difficulty-tag .count {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Filters */
.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 0.9rem;
    color: #666;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Records List */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Record Card */
.record-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.record-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.record-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.record-info {
    flex: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.record-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.record-difficulty {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.record-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.record-time {
    color: #3b82f6;
    font-weight: 600;
}

.record-rank {
    color: #f59e0b;
    font-weight: 600;
}

.record-date {
    color: #999;
}

/* Load More */
.load-more {
    text-align: center;
    padding: 20px;
}

/* Button */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

/* Responsive */
@media (max-width: 600px) {
    .page-container {
        padding: 15px;
    }
    
    .stats-summary {
        padding: 15px 10px;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .record-card {
        padding: 12px;
    }
    
    .record-thumb {
        width: 60px;
        height: 60px;
    }
    
    .record-info {
        margin-left: 10px;
    }
    
    .record-title {
        font-size: 0.9rem;
    }
    
    .record-meta {
        font-size: 0.8rem;
    }
}
