/* ============================================
   word-lists.css — Word lists page styles
   ============================================ */

/* --- Letter Pills --- */
.letter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.letter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    text-transform: uppercase;
}

.letter-pill:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-dark);
    text-decoration: none;
}

.letter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

/* --- Filter Bar --- */
.wl-filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.wl-filter-group {
    flex: 1;
    min-width: 120px;
}

.wl-filter-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.wl-filter-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text);
    outline: none;
    cursor: pointer;
}

.wl-filter-select:focus {
    border-color: var(--accent);
}

/* --- Search Type Radio --- */
.wl-search-types {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.wl-search-radio {
    display: none;
}

.wl-search-label {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.wl-search-label:last-of-type {
    border-right: none;
}

.wl-search-radio:checked + .wl-search-label {
    background: var(--accent);
    color: #FFFFFF;
}

/* --- Word Grid --- */
.wl-word-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wl-word-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.wl-word-item:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    text-decoration: none;
}

.wl-word-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.wl-word-item:hover .wl-word-text {
    color: var(--accent-dark);
}

.wl-word-pts {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Pagination --- */
.wl-pagination {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.wl-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.wl-page-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-dark);
    text-decoration: none;
}

.wl-page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.wl-page-link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* --- Empty State --- */
.wl-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 1.0625rem;
}

/* --- Quick Links --- */
.wl-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.wl-quick-link {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.wl-quick-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent-dark);
    text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .wl-filter-bar {
        flex-direction: column;
    }

    .wl-word-grid {
        grid-template-columns: 1fr;
    }

    .letter-pill {
        min-width: 44px;
        min-height: 44px;
    }
}
