/* ASL Directory Styles */

/* Breadcrumbs */
.asl-breadcrumbs {
    margin-bottom: 1.5em;
    font-size: 0.9em;
}

.asl-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.asl-breadcrumbs li + li::before {
    content: "\203A";
    margin: 0 0.5em;
    color: #9ca3af;
}

.asl-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.asl-breadcrumbs a:hover {
    text-decoration: underline;
}

.asl-breadcrumbs a:focus {
    text-decoration: underline;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-breadcrumbs span[aria-current] {
    color: #666;
}

/* Related Signs */
.asl-related-signs {
    margin-top: 3em;
    border-top: 1px solid #e5e7eb;
    padding-top: 2em;
}

.asl-related-section {
    margin-bottom: 2.5em;
}

.asl-related-heading {
    font-size: 1.2em;
    margin-bottom: 1em;
    color: #1f2937;
}

.asl-related-browse {
    margin-top: 1em;
}

.asl-related-browse a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.asl-related-browse a:hover {
    text-decoration: underline;
}

.asl-related-browse a:focus {
    text-decoration: underline;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Letter Bar */
.asl-letter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2em;
    padding: 1em 0;
}

.asl-letter-bar .asl-letter {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.2s, color 0.2s;
}

.asl-letter-bar .asl-letter:hover {
    background-color: #dbeafe;
    color: #1e40af;
}

.asl-letter-bar .asl-letter:focus {
    background-color: #dbeafe;
    color: #1e40af;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-letter-bar .asl-letter.active {
    background-color: #2563eb;
    color: #fff;
}

/* Signs Grid */
.asl-signs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .asl-signs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .asl-signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Sign Card */
.asl-sign-card {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.asl-sign-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.asl-sign-card:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-sign-word {
    font-weight: 700;
    font-size: 1.1em;
    color: #1f2937;
}

.asl-sign-category {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
}

/* Category Grid */
.asl-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 480px) {
    .asl-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .asl-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Category Card */
.asl-category-card {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.asl-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.asl-category-card:focus {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-category-name {
    font-weight: 700;
    font-size: 1.15em;
    color: #1f2937;
}

.asl-category-count {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 10px;
    font-size: 0.8em;
    font-weight: 600;
    color: #2563eb;
    background-color: #eff6ff;
    border-radius: 12px;
    width: fit-content;
}

/* Category Title */
.asl-category-title {
    margin-bottom: 1em;
}

/* Search */
.asl-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2em;
}

.asl-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.asl-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.asl-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    margin-top: 4px;
}

.asl-search-results a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s;
}

.asl-search-results a:last-child {
    border-bottom: none;
}

.asl-search-results a.asl-search-active,
.asl-search-results a:hover {
    background-color: #f5f5f5;
}

.asl-search-results a:focus {
    background-color: #f5f5f5;
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.asl-search-no-results {
    padding: 12px 16px;
    color: #888;
    text-align: center;
    font-size: 0.95em;
}

/* Pagination */
.asl-pagination-wrapper {
    text-align: center;
    margin-top: 2em;
}

.asl-signs-count {
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.asl-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 1em;
}

.asl-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.asl-page-link:hover {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.asl-page-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-page-current {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #fff;
    cursor: default;
}

.asl-page-current:hover {
    background-color: #2563eb;
    color: #fff;
}

.asl-page-ellipsis {
    border: none;
    cursor: default;
    min-width: 32px;
}

.asl-page-ellipsis:hover {
    background: transparent;
    color: #374151;
}

.asl-page-disabled {
    color: #d1d5db;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.asl-page-disabled:hover {
    background: transparent;
    border-color: #e5e7eb;
    color: #d1d5db;
}

/* Screen Reader Only */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal;
}

/* No Results */
.asl-no-results {
    text-align: center;
    color: #888;
    padding: 2em;
    grid-column: 1 / -1;
}

/* Practice Top Banner */
.asl-practice-top-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
    margin-bottom: 1.5em;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 8px;
    color: #fff;
}

.asl-practice-top-banner-text {
    font-size: 0.95em;
    font-weight: 500;
}

.asl-practice-top-banner-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: background 0.2s;
}

.asl-practice-top-banner-link:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.asl-practice-top-banner-link:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Practice CTA — Inline Block */
.asl-practice-cta {
    margin: 2.5em 0;
    padding: 2em;
    background: linear-gradient(135deg, #eff6ff, #f0f0ff);
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    text-align: center;
}

.asl-practice-cta-heading {
    margin: 0 0 0.5em;
    font-size: 1.3em;
    color: #1f2937;
}

.asl-practice-cta-text {
    margin: 0 0 1.2em;
    color: #374151;
    line-height: 1.6;
}

.asl-practice-cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color 0.2s, transform 0.15s;
}

.asl-practice-cta-button:hover {
    background-color: #1d4ed8;
    color: #fff;
    transform: translateY(-1px);
}

.asl-practice-cta-button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.asl-practice-cta-subtext {
    margin: 0.8em 0 0;
    font-size: 0.85em;
    color: #6b7280;
}

/* Sticky Bottom Bar */
.asl-practice-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 20px;
    background: #1e293b;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s;
}

.asl-practice-sticky-text {
    color: #e2e8f0;
    font-size: 0.9em;
    font-weight: 500;
}

.asl-practice-sticky-button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9em;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.asl-practice-sticky-button:hover {
    background-color: #1d4ed8;
    color: #fff;
}

.asl-practice-sticky-button:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .asl-practice-top-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .asl-practice-top-banner-link {
        width: 100%;
        text-align: center;
        padding: 8px 14px;
    }

    .asl-practice-cta-button {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .asl-practice-sticky {
        flex-direction: row;
        gap: 12px;
        padding: 10px 16px;
    }

    .asl-practice-sticky-text {
        font-size: 0.8em;
        flex: 1;
    }

    .asl-practice-sticky-button {
        flex-shrink: 0;
    }
}

/* Practice Banner — Listing Pages */
.asl-practice-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1.5em;
    padding: 12px 20px;
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}

.asl-practice-banner-text {
    color: #374151;
    font-size: 0.95em;
}

.asl-practice-banner-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.asl-practice-banner-link:hover {
    text-decoration: underline;
}

.asl-practice-banner-link:focus {
    text-decoration: underline;
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
