/* =====================================================
   STATES INDEX PAGE
   ===================================================== */

/* States Dropdown Container */
.states-dropdown-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 20px;
    margin: 0 0 40px 0;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.states-dropdown-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.states-dropdown-wrapper h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.5px;
}

.states-dropdown-wrapper > p {
    text-align: center;
    color: #666;
    font-size: 15px;
    margin-bottom: 32px;
}

/* State Search Input */
.state-search-input {
    position: relative;
    width: 100%;
}

.state-search-input input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.state-search-input input::placeholder {
    color: #999;
}

.state-search-input input:hover {
    border-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.state-search-input input:focus {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.15), 0 4px 12px rgba(0, 120, 212, 0.15);
}

/* State Dropdown List */
.state-dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    max-height: 450px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.state-dropdown-list.active {
    display: block;
}

.state-dropdown-list::-webkit-scrollbar {
    width: 12px;
}

.state-dropdown-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.state-dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.state-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* State Options */
.state-option {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f5f5f5;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
    font-size: 18px;
    font-weight: 500;
}

.state-option:first-child {
    border-top: none;
}

.state-option:last-child {
    border-bottom: none;
}

.state-option:hover:not(.hidden) {
    background-color: #f0f7ff;
    color: #0078d4;
    padding-left: 24px;
}

.state-option.active {
    background-color: #e8f4f8;
    color: #0078d4;
    font-weight: 600;
    border-left: 4px solid #0078d4;
    padding-left: 16px;
}

.state-option.hidden {
    display: none;
}

.no-results {
    padding: 32px 20px;
    text-align: center;
    color: #999;
    font-size: 15px;
    display: none;
}

/* Stats Banner */
.stats-banner {
    margin-bottom: 40px;
}

/* Intro Section */
.intro-section {
    background: #f9f9f9;
    padding: 32px;
    border-radius: 8px;
    margin-bottom: 48px;
}

.intro-section h2 {
    font-size: 22px;
    margin-bottom: 16px;
}

.intro-section p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: #555;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

/* State Links Grid */
.state-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.state-links-grid a {
    display: block;
    padding: 10px 14px;
    background: var(--fluent-white);
    border: 1px solid var(--fluent-neutral-light);
    border-radius: var(--fluent-radius);
    color: var(--fluent-neutral-dark);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.state-links-grid a:hover {
    background: var(--fluent-primary-light);
    border-color: var(--fluent-primary);
    color: var(--fluent-primary);
}

@media (max-width: 768px) {
    .state-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
