/* LawTV State List Styles */

.lawtv-state-list-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.state-filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.az-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: #495057;
    margin-right: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #20bebe;
    background: white;
    color: #20bebe;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 38px;
    text-align: center;
}

.filter-btn:hover {
    background: #20bebe;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #20bebe;
    color: white;
    box-shadow: 0 4px 12px rgba(32, 190, 190, 0.3);
}

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

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

.search-input:focus {
    outline: none;
    border-color: #20bebe;
    box-shadow: 0 0 0 3px rgba(32, 190, 190, 0.1);
}

.clear-search {
    padding: 0.75rem 1rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.clear-search:hover {
    background: #5a6268;
}

.lawtv-state-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.state-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.state-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #20bebe;
}

.state-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.state-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.state-logo:hover img {
    transform: scale(1.05);
}

.state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #20bebe;
    text-align: center;
}

.state-gallery {
    margin: 1rem 0;
}

.gallery-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.gallery-item.placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-item.placeholder::before {
    content: "📷";
    font-size: 2rem;
    color: #adb5bd;
    opacity: 0.6;
}

.gallery-item.placeholder::after {
    content: "Space Available";
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.gallery-link:hover {
    text-decoration: none;
}

.gallery-link img {
    transition: transform 0.3s ease;
}

.gallery-link:hover img {
    transform: scale(1.1);
}



.state-description {
    color: #555;
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.state-subtitle {
    color: #20bebe;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(32, 190, 190, 0.1);
    border-radius: 6px;
    border-left: 4px solid #20bebe;
}

.state-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.state-button {
    display: inline-block;
    background: linear-gradient(135deg, #20bebe 0%, #1a9f9f 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-button:hover {
    background: linear-gradient(135deg, #1a9f9f 0%, #148080 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 190, 190, 0.3);
    color: white;
    text-decoration: none;
}



/* Responsive Design */
@media (max-width: 768px) {
    .lawtv-state-list-container {
        padding: 1rem;
        width: 100%;
    }
    
    .state-filter-section {
        padding: 1rem;
    }
    
    .filter-controls {
        gap: 0.75rem;
    }
    
    .az-filter {
        gap: 0.20rem;
    }
    
    .filter-btn {
        padding: 0.4rem 0.75rem;
        min-width: 35px;
        font-size: 0.9rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .clear-search {
        width: 100%;
    }
    
    .lawtv-state-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .state-item {
        padding: 1rem;
    }
    
    .state-title {
        font-size: 1.25rem;
    }
    
    .gallery-item {
        width: 100%;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lawtv-state-list {
        padding: 0.5rem;
    }
    
    .state-item {
        padding: 0.75rem;
    }
    
    .state-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* Loading state */
.lawtv-state-list.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Empty state styling */
.state-item:empty::before {
    content: "No content available for this state";
    display: block;
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}
