/* ============================================================
   Lexilet – Dashboard Styles: Core Layouts & Components
   Part of the refactored 3.4.0.0 CSS module system.
   ============================================================ */

/* ============================================================
   Lexilet – Dashboard Styles
   ============================================================ */

/* -- Layout -------------------------------------------------- */
.lexd {
    display: flex;
    min-height: 520px;
    background: #f7f8fa;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    margin: 2em 0;
}

/* -- Sidebar ------------------------------------------------- */
.lexd-sidebar {
    width: 220px;
    background: #fff;
    border-right: 1px solid #eaedf2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}
.lexd-sidebar-version {
    margin-top: auto;
    padding: 12px 20px 0;
    font-size: 11px;
    color: #b0b0b0;
    text-align: center;
}

.lexd-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #6c63ff;
    padding: 0 20px 20px;
    border-bottom: 1px solid #eaedf2;
    margin-bottom: 12px;
}

.lexd-logo .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.lexd-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lexd-nav li {
    margin: 0;
}

.lexd-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #555 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.lexd-nav-link:hover {
    background: #f4f3ff !important;
    color: #6c63ff !important;
}

.lexd-nav-link.is-active {
    background: #f4f3ff !important;
    color: #6c63ff !important;
    border-left-color: #6c63ff !important;
}

.lexd-nav-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.lexd-nav-link.is-active .dashicons {
    opacity: 1;
}

/* -- Main ---------------------------------------------------- */
.lexd-main {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

.lexd-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 24px;
}

/* -- Tabs ---------------------------------------------------- */
.lexd-tab {
    display: none;
}

.lexd-tab.is-active {
    display: block;
    animation: lexd-fade 0.25s ease;
}

/* -- Deck view sliding animation (v2.6.1) -------------------- */
.lexd-decks-view-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.lexd-decks-main-view,
.lexd-deck-cards-panel {
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lexd-deck-cards-panel {
    /* Felülírjuk az inline display:none-t */
    display: block !important;
    padding: 10px 15px;
    box-sizing: border-box;
}

.lexd-decks-view-wrapper.is-showing-cards .lexd-decks-main-view,
.lexd-decks-view-wrapper.is-showing-cards .lexd-deck-cards-panel {
    transform: translateX(-100%);
}

@keyframes lexd-fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -- Tab header ---------------------------------------------- */
.lexd-tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lexd-tab-header .lexd-title {
    margin: 0;
}

.lexd-tab-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* -- Stat cards ---------------------------------------------- */
.lexd-stat-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.lexd-stat-card {
    flex: 1;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    position: relative; /* stat-card i gomb abszolút pozicionáláshoz (v3.5.1.03) */
}

.lexd-stat-card-icon {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
}

.lexd-green {
    color: #27ae60;
}

.lexd-blue {
    color: #2980b9;
}

.lexd-purple {
    color: #6c63ff;
}

.lexd-stat-card-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

.lexd-stat-card-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-top: 2px;
}

/* -- Vegyes tanulás modal (v3.9.0.6, korábban: sáv) ---------- */
.lexd-modal-mixed-inner {
    max-width: 480px;
    padding: 24px 28px;
}

.lexd-mixed-study-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lexd-mixed-mode-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.lexd-mixed-mode-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-right: 4px;
}

.lexd-mixed-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.lexd-mixed-label input[type="radio"] {
    accent-color: #6c63ff;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.lexd-mixed-count-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lexd-mixed-count-label-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.lexd-mixed-count-input {
    width: 70px;
    padding: 8px 10px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}
.lexd-mixed-count-input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
}

.lexd-mixed-deck-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    display: block;
    margin-bottom: 6px;
}

.lexd-mixed-srs-note {
    font-size: 0.82rem;
    color: #6c63ff;
    font-weight: 500;
}

/* -- Vegyes tanulás gomb a bal info oszlopban (v3.9.0.6) ------ */
.lexd-start-mixed-btn {
    background: #6c63ff;
    color: #fff;
    border: none;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    margin-top: 6px;
}
.lexd-start-mixed-btn:hover {
    background: #5a52e0;
}

/* -- Tűzpróba gomb a jobb info oszlopban (v3.9.0.52) -------- */
.lexd-start-tuzproba-btn {
    background: linear-gradient(135deg, #ff6b35, #e04a16);
    color: #fff;
    border: none;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(255,107,53,0.35);
    display: inline-block;
}
.lexd-start-tuzproba-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,53,0.45);
}
.lexd-start-tuzproba-btn:active {
    transform: translateY(0);
}

/* -- SRS toggle ---------------------------------------------- */

.lexd-srs-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.lexd-srs-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.lexd-srs-icon {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    color: #6c63ff;
    margin-top: 2px;
}

.lexd-srs-info strong {
    display: block;
    font-size: 0.95rem;
    color: #333;
}

.lexd-srs-info p {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #888;
}

.lexd-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.lexd-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.lexd-switch-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s;
}

.lexd-switch-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lexd-switch input:checked+.lexd-switch-slider {
    background: #6c63ff;
}

.lexd-switch input:checked+.lexd-switch-slider::before {
    transform: translateX(22px);
}

/* -- Deck list ----------------------------------------------- */
.lexd-folder-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 20px 0 8px;
}

.lexd-folder-header:first-child {
    margin-top: 0;
}

.lexd-folder-header .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.lexd-folder-del {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    margin-left: auto;
    color: #bbb;
    transition: color 0.15s;
    line-height: 1;
}

.lexd-folder-del:hover {
    color: #c0392b;
}

.lexd-folder-del .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* -- Folder edit button (v2.3.7.1) --------------------------- */
.lexd-folder-edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 3px;
    margin-left: 0;
    color: #bbb;
    transition: color 0.15s;
    line-height: 1;
    flex-shrink: 0;
}

.lexd-folder-edit-btn:hover {
    color: #6c63ff;
}

.lexd-folder-edit-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* -- Folder delete button – nagyobb ikon --------------------- */
.lexd-folder-del .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Push edit+del buttons to right with spacer on the name ------ */
.lexd-folder-header .lexd-folder-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lexd-folder-header .lexd-folder-edit-btn {
    margin-left: 4px;
}

/* -- Folder tree (v2.3.7.1) ---------------------------------- */
.lexd-folder-group {
    position: relative;
}

/* Vertical guide line for child groups */
.lexd-folder-group[data-depth="1"],
.lexd-folder-group[data-depth="2"],
.lexd-folder-group[data-depth="3"],
.lexd-folder-group[data-depth="4"] {
    border-left: 2px solid rgba(108, 99, 255, 0.15);
    margin-left: 2px;
}

.lexd-folder-header--child {
    background: rgba(108, 99, 255, 0.04);
    border-radius: 8px;
}

.lexd-folder-header--child:hover {
    background: rgba(108, 99, 255, 0.09);
}

.lexd-folder-tree-arrow {
    font-size: 13px;
    color: rgba(108, 99, 255, 0.5);
    margin-right: 2px;
    flex-shrink: 0;
    line-height: 1;
    align-self: center;
}

/* -- Master deck no-copy notice (v2.3.7.1) ------------------- */
.lexilet-master-no-copy {
    margin-top: 12px;
}

.lexilet-master-no-copy-msg {
    background: #fff8e1;
    border-left: 4px solid #f1c40f;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.92rem;
    color: #555;
    margin: 0 0 12px;
    line-height: 1.6;
}


.lexd-folder-empty {
    font-size: 0.85rem;
    color: #bbb;
    font-style: italic;
    padding: 4px 0 8px 24px;
    margin: 0;
}

.lexd-deck-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: box-shadow 0.15s, opacity 0.3s, transform 0.3s;
    min-height: 85px;
}

.lexd-deck-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lexd-deck-info {
    flex: 1;
    min-width: 0;
    padding-right: 16px;
}

.lexd-deck-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #222;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lexd-deck-name .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #6c63ff;
    opacity: 0.8;
}

.lexd-deck-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 6px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.lexd-deck-folder-badge {
    background: #f0f0f5;
    color: #666;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lexd-deck-folder-badge .dashicons {
    font-size: 10px;
    width: 10px;
    height: 10px;
}

.lexd-deck-progress {
    height: 5px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}

.lexd-deck-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6c63ff, #48c6ef);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.lexd-deck-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* v3.8.6.5: Egyetlen sor – ⋮ menü + Tanulás + irányválasztó */

/* Tablet Álló Nézet Fix (Saját Paklik):
   768-1024px között is flex-wrap a teljes pakli elemen, hogy a gombok új sorba menjenek.
   v3.3.3.1: Kártyanézet tablet fix – stacked blokk layout a túlcsordulás ellen. */
@media (max-width: 1024px) {

    .lexd-deck-item,
    .lexd-group-deck-item {
        flex-wrap: wrap;
    }

    .lexd-deck-info {
        width: 100%;
        padding-right: 0;
        margin-bottom: 15px;
    }

    .lexd-deck-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Tablet: csökkentett main padding a jobb kihasználás érdekében */
    .lexd-main {
        padding: 20px 16px;
    }

    /* ---------------------------------------------------------------
       Kártyanézet: Tablet álló fix – stacked blokk elrendezés
       (v3.3.3.1) – Megakadályozza, hogy a kártyatáblázat kilógjon
       a képernyőről 769–1024px között (pl. iPad Air, iPad Pro).
       --------------------------------------------------------------- */
    .lexd-cards-table-wrap {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }

    .lexd-cards-table thead,
    .lexilet-cards-table thead {
        display: none;
    }

    .lexd-cards-table,
    .lexilet-cards-table,
    .lexd-cards-table tbody,
    .lexilet-cards-table tbody,
    .lexd-cards-table tr,
    .lexilet-cards-table tr,
    .lexd-cards-table td,
    .lexilet-cards-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .lexd-cards-table tr,
    .lexilet-cards-table tr {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
        position: relative;
    }

    .lexd-cards-table td,
    .lexilet-cards-table td {
        padding: 4px 0;
        border: none;
        text-align: left;
    }

    /* Mobilon bal igazítás (felülírja a ~700px-es blokk text-align:right + display:flex szabályát,
       amelynek magasabb specificitása volt: tbody td > td) */
    .lexd-cards-table tbody td,
    .lexilet-cards-table tbody td {
        display: block;
        text-align: left;
        justify-content: initial;
    }

    .lexd-cards-table td::before,
    .lexilet-cards-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: #999;
        font-weight: 700;
        margin-bottom: 2px;
    }

    /* Kifejezés cella kiemelése */
    .lexd-cards-table td[data-label="Kifejezés"],
    .lexilet-cards-table td[data-label="Kifejezés"] {
        font-size: 1.1rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 8px;
    }

    /* Műveletek gombsor */
    .lexd-ct-actions {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    /* Példamondat cella kényszerített blokkosítása */
    .lexd-cards-table td[data-label="Példa"],
    .lexilet-cards-table td[data-label="Példa"] {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .lexd-cards-table td[data-label="Példa"]::before,
    .lexilet-cards-table td[data-label="Példa"]::before {
        order: 1;
        width: 100%;
        margin-bottom: 4px;
    }

    .lexd-cards-table td[data-label="Példa"] .lexd-ex-sentence,
    .lexilet-cards-table td[data-label="Példa"] .lexd-ex-sentence {
        order: 2;
        width: 100%;
        display: block;
    }

    .lexd-cards-table td[data-label="Példa"] .lexd-ex-meaning,
    .lexilet-cards-table td[data-label="Példa"] .lexd-ex-meaning {
        order: 3;
        width: 100%;
        display: block;
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .lexd-cards-table td[data-label="Példa"] .lexd-ct-play-ex-wrap,
    .lexilet-cards-table td[data-label="Példa"] .lexd-ct-play-ex-wrap,
    .lexd-cards-table td[data-label="Példa"] .lexd-ct-play-ex,
    .lexilet-cards-table td[data-label="Példa"] .lexd-ct-play-ex {
        order: 4;
        align-self: flex-start;
        margin-top: 4px;
    }

    /* Műveletek cella rásimítása */
    .lexd-cards-table td[data-label="Műveletek"],
    .lexilet-cards-table td[data-label="Műveletek"] {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }

    .lexd-cards-table td[data-label="Műveletek"]::before,
    .lexilet-cards-table td[data-label="Műveletek"]::before {
        margin-bottom: 0;
        margin-right: 10px;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .lexd-cards-table td[data-label="Műveletek"] .lexd-ct-actions,
    .lexilet-cards-table td[data-label="Műveletek"] .lexd-ct-actions {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
        flex: 1 1 auto;
    }
}

.lexd-deck-del {
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: #bbb;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1;
}

.lexd-deck-del:hover {
    color: #c0392b;
    border-color: #c0392b;
}

.lexd-deck-del .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ============================================================
   Multi-select dropdown (v3.8.1.0 – játékok + vegyes tanulás)
   ============================================================ */
.lexd-multiselect {
    position: relative;
    display: inline-block;
    min-width: 280px;
    max-width: 100%;
    text-align: left;
}
.lexd-multiselect-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: border-color .15s;
    user-select: none;
}
.lexd-multiselect-toggle:hover,
.lexd-multiselect.is-open .lexd-multiselect-toggle {
    border-color: #6c63ff;
}
.lexd-multiselect-arrow {
    margin-left: 8px;
    font-size: 12px;
    color: #888;
    transition: transform .2s;
}
.lexd-multiselect.is-open .lexd-multiselect-arrow {
    transform: rotate(180deg);
}
.lexd-multiselect-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lexd-multiselect-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    z-index: 100;
    max-height: 260px;
    overflow: hidden;
    flex-direction: column;
}
.lexd-multiselect.is-open .lexd-multiselect-dropdown {
    display: flex;
}
.lexd-multiselect-actions {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}
.lexd-multiselect-actions button {
    background: #f4f3ff;
    border: 1px solid #d0ccff;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    color: #6c63ff;
    cursor: pointer;
    transition: background .15s;
}
.lexd-multiselect-actions button:hover {
    background: #e8e5ff;
}
.lexd-multiselect-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    max-height: 200px;
}
.lexd-multiselect-list li {
    margin: 0;
    padding: 0;
}
.lexd-multiselect-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background .1s;
}
.lexd-multiselect-list label:hover {
    background: #f4f3ff;
}
.lexd-multiselect-list input[type="checkbox"] {
    accent-color: #6c63ff;
    flex-shrink: 0;
}
.lexd-ms-count {
    color: #999;
    font-size: 12px;
    margin-left: 2px;
}

/* ============================================================
   Kezdés oldal – v3.9.0.0
   ============================================================ */

/* -- Két nagy akciógomb rács -- */
.lexd-start-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.lexd-start-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
    font-family: inherit;
    line-height: 1.4;
    outline: none !important;
}
.lexd-start-card:hover,
.lexd-start-card:focus,
.lexd-start-card:active {
    outline: none !important;
    filter: none !important;
}
.lexd-start-card:hover {
    transform: translateY(-2px);
}
.lexd-start-card--learn:hover,
.lexd-start-card--learn:focus {
    background: #5a52e0 !important;
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.35) !important;
}
.lexd-start-card--onboard:hover,
.lexd-start-card--onboard:focus {
    background: #0ea572 !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4) !important;
}
.lexd-start-card--points:hover,
.lexd-start-card--points:focus {
    background: #e05f00 !important;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.35) !important;
}
.lexd-start-card:active {
    transform: translateY(0);
}

.lexd-start-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* -- Tanulj most! (bal gomb) -- */
.lexd-start-card--learn {
    background: #6c63ff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.25);
}

/* -- Szerezz pontokat! (jobb gomb) -- */
.lexd-start-card--points {
    background: #ff6b00;
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
}

.lexd-start-card-icon {
    font-size: 5rem;
    line-height: 1;
    flex-shrink: 0;
}
.lexd-start-card-icon img,
.lexd-start-card-icon svg {
    width: 80px !important;
    height: 80px !important;
    vertical-align: middle;
}
/* -- Onboarding: viking kép minél nagyobb (v3.9.0.8) -- */
.lexd-start-card-icon--onboard {
    font-size: 0;
    line-height: 0;
}
.lexd-start-card-icon--onboard img {
    width: auto !important;
    height: 130px !important;
    max-height: calc(100% + 16px);
    object-fit: contain;
    margin: -8px 0;
}
.lexd-start-card-icon .lexd-tp-badge {
    width: 80px !important;
    height: 80px !important;
}

.lexd-start-card-title {
    font-size: 1.55rem;
    font-weight: 700;
}

.lexd-start-card-sub {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 400;
}
.lexd-start-card-sub small {
    opacity: 0.8;
}

/* -- Infó sor kísérő szövegek (v3.9.0.46) -- */
.lexd-start-info-row.lexd-start-free-practice-note,
.lexd-start-info-row.lexd-start-info-hint {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: -6px;
    padding-left: 2.2em;
}

/* -- Infó sorok (két oszlop) -- */
.lexd-start-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.lexd-start-info-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lexd-start-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #444;
}
.lexd-start-info-row strong {
    color: #222;
}
.lexd-start-info-row--warn {
    color: #c0392b;
    font-weight: 600;
}
.lexd-start-info-row--warn strong {
    color: #c0392b;
}

.lexd-start-info-icon {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    font-size: 1rem;
}
.lexd-start-info-icon img,
.lexd-start-info-icon svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* -- Mobil nézet (≤600px) -- */
@media (max-width: 600px) {
    .lexd-start-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lexd-start-card {
        flex-direction: column;
        text-align: center;
        padding: 16px 10px;
        gap: 6px;
    }
    .lexd-start-card-icon {
        font-size: 1.8rem;
    }
    .lexd-start-card-title {
        font-size: 1.05rem;
    }
    /* Mobilon a gombok csak a címet mutatják, infó szöveg nélkül */
    .lexd-start-card-sub {
        display: none;
    }

    /* Infók a gombok alatt egy oszlopban */
    .lexd-start-info {
        grid-template-columns: 1fr;
        gap: 8px 0;
        padding: 16px;
    }
    .lexd-start-info-col--points {
        border-top: 1px solid #eee;
        padding-top: 10px;
    }
}

/* -- Onboarding: „Kezdjük el!" gomb stílus (v3.9.0.5) -- */
.lexd-start-card--onboard {
    background: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    animation: lexd-start-pulse 2s ease-in-out infinite;
}
@keyframes lexd-start-pulse {
    0%   { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); transform: scale(1); }
    50%  { box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5); transform: scale(1.03); }
    100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3); transform: scale(1); }
}

/* -- Onboarding: pulzáló kiemelés – box-shadow spotlight (v3.9.0.10) -- */
@keyframes lexd-onboard-pulse {
    0%   { outline-color: rgba(108, 99, 255, 0.9); }
    50%  { outline-color: rgba(108, 99, 255, 0.4); }
    100% { outline-color: rgba(108, 99, 255, 0.9); }
}

/* Spotlight: fix pozíciójú elem, a box-shadow sötétíti az EGÉSZ képernyőt körülötte */
.lexd-onboard-spotlight {
    position: fixed;
    z-index: 10000;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
    outline: 3px solid #6c63ff;
    animation: lexd-onboard-pulse 1.5s ease-in-out infinite;
    pointer-events: none;
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Tooltip: fix pozíciójú, a spotlight alatt jelenik meg */
.lexd-onboard-tooltip {
    position: fixed;
    z-index: 10001;
    background: #6c63ff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    white-space: normal;
    max-width: 320px;
    text-align: center;
    line-height: 1.45;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
    pointer-events: none;
}
.lexd-onboard-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #6c63ff;
}

