/* PHIVOLCS Earthquake Tracker - Minimalist Design */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --accent-red: #dc2626;
    --accent-orange: #ea580c;
    --accent-blue: #2563eb;
    --accent-green: #16a34a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #111111;
        --bg-tertiary: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #a1a1aa;
        --text-muted: #71717a;
        --border-light: #27272a;
        --border-medium: #3f3f46;
        --accent-red: #ef4444;
        --accent-orange: #f97316;
        --accent-blue: #3b82f6;
        --accent-green: #22c55e;
    }
    
    .magnitude {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%);
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: 0 2px 4px rgba(239, 68, 68, 0.15);
    }
    
    .magnitude:hover {
        box-shadow: 0 4px 8px rgba(239, 68, 68, 0.25);
        border-color: rgba(239, 68, 68, 0.5);
    }
    
    .earthquake-card.strong .magnitude {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.12) 100%);
        border-color: rgba(239, 68, 68, 0.4);
        box-shadow: 0 3px 6px rgba(239, 68, 68, 0.2);
    }
    
    .earthquake-card.strong .magnitude:hover {
        box-shadow: 0 6px 12px rgba(239, 68, 68, 0.3);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(17, 17, 17, 0.8);
    }
}

.header-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.title-icon {
    font-size: 1.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Banner Navigation */
.banner-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.banner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--bg-tertiary);
    text-decoration: none;
    color: inherit;
}

.banner-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.banner-item.active {
    background: linear-gradient(135deg, var(--accent-red), #dc2626);
    color: white;
    border-color: var(--accent-red);
    box-shadow: var(--shadow-lg);
}

.banner-item.active .banner-icon i {
    color: white;
}

.banner-icon {
    font-size: 2rem;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.banner-item.active .banner-icon {
    background: rgba(255, 255, 255, 0.2);
}

.banner-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.banner-item.active .banner-content h3 {
    color: white;
}

.banner-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.banner-item.active .banner-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

/* Statistics Section */
.stats-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-red);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
}

.stat-card .stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin: 0 0 0.25rem 0;
}

.stat-card .stat-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Map Section */
.map-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.map {
    position: relative;
    min-height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-tertiary);
}

#map-container {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
}

#map {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    position: relative;
}

.map-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    color: white;
    z-index: 1000;
    max-width: 200px;
}

.map-legend h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-item span:last-child {
    font-weight: 600;
    color: white;
}

/* Map Note */
.map-note {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.map-note i {
    color: #ffc107;
    font-size: 1.1rem;
}

.map-note span {
    line-height: 1.4;
}

/* Map responsive design */
@media (max-width: 768px) {
    .map-controls {
        position: static;
        margin-top: 1rem;
        max-width: none;
        background: var(--bg-secondary);
        color: var(--text-primary);
    }
    
    .map-legend h4 {
        color: var(--text-primary);
    }
    
    .stat-label {
        color: var(--text-muted);
    }
    
    .stat-item span:last-child {
        color: var(--text-primary);
    }
    
    #map-container {
        height: 400px;
    }
    
    .map-note {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

.header-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-red);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Controls */
.controls {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-container {
    position: relative;
    margin-bottom: 1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.clear-btn:hover {
    color: var(--text-secondary);
    background: var(--bg-tertiary);
}

.filter-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

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

.filter-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.filter-select optgroup {
    font-weight: 600;
    color: var(--accent-red);
    background: var(--bg-primary);
    padding: 0.5rem 0;
}

.filter-select option {
    padding: 0.5rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.refresh-btn {
    padding: 0.75rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    justify-content: center;
}

.refresh-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.refresh-icon {
    font-size: 1rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--border-light);
    border-top: 2px solid var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Error State */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 2rem;
}

@media (prefers-color-scheme: dark) {
    .error-message {
        background: #1f1f1f;
        border-color: #7f1d1d;
        color: #fca5a5;
    }
}

.error-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Earthquakes Grid */
.earthquakes-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Responsive grid for different screen sizes */
@media (min-width: 640px) {
    .earthquakes-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .earthquakes-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .earthquakes-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Earthquake Card */
.earthquake-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.earthquake-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-red);
}

.earthquake-card.strong {
    border-left: 4px solid var(--accent-red);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(220, 38, 38, 0.02) 100%);
}

.earthquake-card.strong::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-top: 20px solid var(--accent-red);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.magnitude {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.magnitude::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.magnitude:hover::before {
    left: 100%;
}

.magnitude:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.4);
}

.magnitude i {
    font-size: 1.25rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Different magnitude levels */
.earthquake-card.strong .magnitude {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border-color: rgba(220, 38, 38, 0.3);
    box-shadow: 0 3px 6px rgba(220, 38, 38, 0.15);
}

.earthquake-card.strong .magnitude:hover {
    box-shadow: 0 6px 12px rgba(220, 38, 38, 0.25);
}

.date-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
}

.location {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

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

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 400;
}

.detail-value.damage {
    color: var(--accent-red);
    font-weight: 600;
}

.detail-value.aftershocks {
    color: var(--accent-orange);
    font-weight: 600;
}

.detail-value.notes {
    color: var(--accent-blue);
    font-style: italic;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.footer a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Tablet Responsiveness */
@media (max-width: 1024px) {
    .filter-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .quick-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .quick-filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .header {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Banner Navigation Mobile */
    .banner-navigation {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .banner-item {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .banner-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .banner-content h3 {
        font-size: 1rem;
    }
    
    .banner-content p {
        font-size: 0.75rem;
    }
    
    /* Hide stats on mobile to save space */
    .header-stats {
        display: none;
    }
    
    .controls {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .refresh-btn {
        width: 100%;
        justify-content: center;
    }
    
    .sort-controls {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .earthquake-card {
        padding: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .magnitude {
        font-size: 1.25rem;
    }
    
    .date-time {
        text-align: left;
        font-size: 0.875rem;
    }
    
    .card-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .header-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat {
        padding: 0.75rem 0.5rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .quick-filters {
        gap: 0.5rem;
    }
    
    .quick-filter-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .earthquake-card {
        padding: 0.75rem;
    }
    
    .card-field {
        padding: 0.25rem 0;
    }
    
    .card-field-label {
        font-size: 0.75rem;
    }
    
    .card-field-value {
        font-size: 0.8rem;
    }
    
    .page-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.earthquake-card:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.search-input:focus,
.filter-select:focus,
.refresh-btn:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

.refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.refresh-btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-light: #000000;
        --border-medium: #000000;
        --text-secondary: #000000;
    }
    
    @media (prefers-color-scheme: dark) {
        :root {
            --border-light: #ffffff;
            --border-medium: #ffffff;
            --text-secondary: #ffffff;
        }
    }
}

/* Quick Filter Buttons */
.quick-filters {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-filter-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-filter-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.quick-filter-btn.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.sort-controls label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.sort-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-red);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-red);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.page-number {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-red);
}

.page-number.active {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
}

/* Footer Styles */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* Fallback styles for footer */
.footer {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

.footer-content p {
    color: #cccccc !important;
    font-size: 0.85rem !important;
    margin: 0.5rem 0 !important;
    text-align: center !important;
}

.footer-content strong {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 2rem;
    }
    
    .footer-content p {
        font-size: 0.8rem;
    }
}

