/* CSS for list pages */

.alphabet-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #777;
}

.alphabet-navigation .letter {
    display: inline-block;
    width: 48px;
    height: 48px;
    line-height: 48px;
    text-align: center;
    margin: 5px;
    border-radius: 50%;
    background-color: #f0f0f0;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.2s ease;
}

.alphabet-navigation .letter:hover {
    background-color: #e0e0e0;
}

.alphabet-navigation .letter.active {
    background-color: #222;
    color: white;
}

.alphabet-navigation .letter.disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}


/* Entrées compactes, réparties en colonnes (1 à 3 selon la largeur) */
.list-entries {
    margin-top: 20px;
    columns: 3 300px;
    column-gap: 35px;
    column-rule: 1px solid #eee;
}

.list-entry {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    break-inside: avoid;
    transition: background-color 0.2s ease;
}

.list-entry .name {
    display: inline;
    font-weight: bold;
    margin-right: 8px;
    color: #333;
    font-size: 1em;
}

.list-entry .name a {
    color: inherit;
}

.list-entry .name a:hover {
    color: #000;
    text-decoration: underline;
}

.list-entry .country {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}

.list-entry .country img {
    width: 18px;
    height: 12px;
    margin-right: 4px;
    vertical-align: -1px;
}

.list-entry .country span {
    color: #555;
    font-size: 0.85em;
}

.list-entry .description {
    color: #666;
    margin-top: 2px;
    font-size: 0.9em;
    line-height: 1.35;
}

/* Pagination styles */
.paginationmenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.pageselector {
    display: flex;
    align-items: center;
}

.pagenumber, .pageelipsis {
    margin: 0 5px;
    padding: 5px 10px;
}

.pagenumber a {
    text-decoration: none;
    color: #007bff;
}

.pagenumber.currentpage {
    background-color: #007bff;
    color: white;
    border-radius: 3px;
}

.previouspage a, .nextpage a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

/* Locked overlay */
.locked-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 30%, rgba(255,255,255,1) 100%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 30px;
}

.locked-overlay-content {
    text-align: center;
}

.shop-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.shop-button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .list-entry {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-entry .name,
    .list-entry .country {
        margin-bottom: 10px;
        margin-right: 0;
    }
}