/**
 * Rankings Filters - Silicon Valley Design
 * 
 * Modern filter styling with dark theme and green accents.
 */

/* Filter Container */
.rankings-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
}

/* Filter Group */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 200px;
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}

/* Filter Label */
.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Input Styling */
.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #fff;
    background: rgba(18, 24, 38, 0.95);
    /* Increased opacity instead of blur for performance */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #00ff8a;
    background: rgba(18, 24, 38, 0.8);
    box-shadow: 0 0 0 3px rgba(0, 255, 138, 0.1);
}

/* Select Arrow */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="rgba(255,255,255,0.7)" d="M10.293 3.293L6 7.586 1.707 3.293A1 1 0 0 0 .293 4.707l5 5a1 1 0 0 0 1.414 0l5-5a1 1 0 1 0-1.414-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Select Options */
.filter-select option {
    background: #1a1a2e;
    color: #fff;
    padding: 0.5rem;
}

/* Tier Navigation Container */
.rankings-tier-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(18, 24, 38, 0.95);
    /* Increased opacity instead of blur for performance */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Navigation Label */
.tier-nav-label {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
}

/* Filters inside Tier Navigation */
.rankings-tier-navigation .rankings-filters {
    flex: 1;
    padding: 0;
    margin: 0;
}

/* Light Theme */
[data-theme="light"] .filter-input,
[data-theme="light"] .filter-select {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

[data-theme="light"] .filter-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .filter-label {
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .rankings-tier-navigation {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tier-nav-label {
    color: #1a1a1a;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .rankings-tier-navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .tier-nav-label {
        text-align: center;
    }

    .rankings-filters {
        flex-direction: column;
    }
}