/**
 * Lexilet — Pakli Könyvtár shortcode stílusok
 *
 * [lexilet_pakli_konyvtar] shortcode vizuális megjelenése:
 * kártyás rács elrendezés, nyelv + kategória szűrő sávval (localStorage memória).
 *
 * @package Lexilet
 * @since   3.9.0.169
 */

/* ================================================================
 *  Wrapper
 * ================================================================ */

.lex-konyvtar-wrap {
    font-family: inherit;
    color: inherit;
}

/* ================================================================
 *  Szűrő csoport (felirat + gombsor)
 * ================================================================ */

.lex-konyvtar-filter-group {
    margin-bottom: 1.5rem;
}

.lex-konyvtar-filter-group:last-of-type {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.lex-konyvtar-filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* ================================================================
 *  Szűrő sorok (közös alap)
 * ================================================================ */

.lex-konyvtar-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ================================================================
 *  Szűrő gombok (nyelv)
 * ================================================================ */

.lex-kf-btn {
    padding: 6px 18px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #fff;
    color: #6b7280;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.lex-kf-btn:hover {
    background: #6b7280;
    border-color: #6b7280;
    color: #fff;
}

.lex-kf-btn.active {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

/* ================================================================
 *  Szűrő gombok (kategória – kisebb, lila tónus)
 * ================================================================ */

.lex-kf-cat-btn {
    padding: 4px 14px;
    font-size: 13px;
    border-color: #c4b5fd;
    color: #5b21b6;
    background: #faf5ff;
}

.lex-kf-cat-btn:hover {
    border-color: #a78bfa;
    color: #4c1d95;
    background: #ede9fe;
}

.lex-kf-cat-btn.active {
    background: #5b21b6;
    border-color: #5b21b6;
    color: #fff;
}

/* ================================================================
 *  Nyelv szekció
 * ================================================================ */

.lex-konyvtar-lang-section {
    margin-bottom: 2.25rem;
}

.lex-konyvtar-lang-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.lex-konyvtar-heading-flag {
    font-size: 18px;
    line-height: 1;
}

/* ================================================================
 *  Kártya rács
 * ================================================================ */

.lex-konyvtar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
}

/* ================================================================
 *  Kártya
 * ================================================================ */

.lex-konyvtar-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lex-konyvtar-card:hover {
    border-color: #9ca3af;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
}

.lex-konyvtar-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lex-konyvtar-flag {
    font-size: 22px;
    line-height: 1;
}

/* ================================================================
 *  Kártyaszám badge
 * ================================================================ */

.lex-konyvtar-count {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

/* ================================================================
 *  Kártya cím
 * ================================================================ */

.lex-konyvtar-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.45;
}

/* ================================================================
 *  CTA sor alján
 * ================================================================ */

.lex-konyvtar-cta {
    margin-top: auto;
    padding-top: 4px;
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
}

.lex-konyvtar-card:hover .lex-konyvtar-cta {
    color: #6b7280;
}

/* ================================================================
 *  Üres állapot
 * ================================================================ */

.lex-konyvtar-empty {
    color: #9ca3af;
    font-style: italic;
}

/* ================================================================
 *  Reszponzív
 * ================================================================ */

@media (max-width: 600px) {
    .lex-konyvtar-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .lex-konyvtar-title {
        font-size: 12px;
    }
}
