/**
 * Dictionary (Diksyone) Styles
 */

/* Word Cards in Grid */
.word-card {
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.word-card:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
}

.word-card h6 {
    color: #212529;
    font-weight: 600;
    word-break: break-word;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease-in-out;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #f8f9fa;
}

.autocomplete-item strong {
    color: #0d6efd;
}

/* Search Input Focus State */
#searchInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Search Results List */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

.list-group-item-action h5 {
    font-weight: 600;
}

/* Pagination */
.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .word-card {
        padding: 0.75rem;
    }

    .word-card h6 {
        font-size: 0.9rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

/* Loading state */
.autocomplete-dropdown.loading {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.autocomplete-dropdown.loading::before {
    content: "Ap chèche...";
}

/* Empty state */
.autocomplete-dropdown.empty {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

.autocomplete-dropdown.empty::before {
    content: "Pa gen rezilta";
}
