/*
 * Közös webinár tartalom stíluslap (admin TipTap szerkesztő + publikus oldalak).
 * Egységes WYSIWYG megjelenés a /idopontok/{alias}, /adatkezelesi-tajekoztato,
 * /regisztracio és a Filament TipTap szerkesztő között.
 */

/* === 1. Pipás és ikonos felsorolások === */
.webinar-show__body .sppb-addon-content ul.checked-list,
.webinar-show__body .sppb-addon-content ul.webinar-list,
.item-page [itemprop="articleBody"] ul.checked-list,
.item-page [itemprop="articleBody"] ul.webinar-list,
#webinar-registration-intro ul.checked-list,
#webinar-registration-intro ul.webinar-list,
.tiptap-editor .ProseMirror ul.checked-list,
.tiptap-editor .ProseMirror ul.webinar-list {
    list-style: none !important;
    padding-inline-start: 0 !important;
    margin-inline-start: 0 !important;
    margin-top: 0;
    margin-bottom: 1rem;
}

.webinar-show__body .sppb-addon-content ul.checked-list > li,
.webinar-show__body .sppb-addon-content ul.webinar-list > li,
.item-page [itemprop="articleBody"] ul.checked-list > li,
.item-page [itemprop="articleBody"] ul.webinar-list > li,
#webinar-registration-intro ul.checked-list > li,
#webinar-registration-intro ul.webinar-list > li,
.tiptap-editor .ProseMirror ul.checked-list > li,
.tiptap-editor .ProseMirror ul.webinar-list > li {
    display: block !important;
    position: relative;
    padding-inline-start: 1.85rem;
    margin-bottom: 0.45rem;
}

.webinar-show__body .sppb-addon-content ul.checked-list > li > p:last-child,
.webinar-show__body .sppb-addon-content ul.webinar-list > li > p:last-child,
.item-page [itemprop="articleBody"] ul.checked-list > li > p:last-child,
.item-page [itemprop="articleBody"] ul.webinar-list > li > p:last-child,
#webinar-registration-intro ul.checked-list > li > p:last-child,
#webinar-registration-intro ul.webinar-list > li > p:last-child,
.tiptap-editor .ProseMirror ul.checked-list > li > p:last-child,
.tiptap-editor .ProseMirror ul.webinar-list > li > p:last-child {
    margin-bottom: 0;
}

.webinar-show__body .sppb-addon-content ul.checked-list > li::before,
.webinar-show__body .sppb-addon-content ul.webinar-list > li::before,
.item-page [itemprop="articleBody"] ul.checked-list > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list > li::before,
#webinar-registration-intro ul.checked-list > li::before,
#webinar-registration-intro ul.webinar-list > li::before,
.tiptap-editor .ProseMirror ul.checked-list > li::before,
.tiptap-editor .ProseMirror ul.webinar-list > li::before {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1.4rem;
    height: auto;
    text-align: center;
    line-height: inherit;
    content: '✅';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--check > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--check > li::before,
#webinar-registration-intro ul.webinar-list--check > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--check > li::before {
    content: '✅';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--tick > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--tick > li::before,
#webinar-registration-intro ul.webinar-list--tick > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--tick > li::before {
    content: '\2713';
    color: #16a34a;
    font-weight: 700;
    font-size: 1.05em;
}

.webinar-show__body .sppb-addon-content ul.webinar-list--pointer > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--pointer > li::before,
#webinar-registration-intro ul.webinar-list--pointer > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--pointer > li::before {
    content: '👉';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--pin > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--pin > li::before,
#webinar-registration-intro ul.webinar-list--pin > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--pin > li::before {
    content: '📌';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--diamond > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--diamond > li::before,
#webinar-registration-intro ul.webinar-list--diamond > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--diamond > li::before {
    content: '🔹';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--star > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--star > li::before,
#webinar-registration-intro ul.webinar-list--star > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--star > li::before {
    content: '⭐';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--warning > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--warning > li::before,
#webinar-registration-intro ul.webinar-list--warning > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--warning > li::before {
    content: '⚠️';
}

.webinar-show__body .sppb-addon-content ul.webinar-list--cross > li::before,
.item-page [itemprop="articleBody"] ul.webinar-list--cross > li::before,
#webinar-registration-intro ul.webinar-list--cross > li::before,
.tiptap-editor .ProseMirror ul.webinar-list--cross > li::before {
    content: '❌';
}

/* === 2. Kiemelő dobozok (callout) === */
.webinar-show__body .sppb-addon-content .webinar-callout,
.item-page [itemprop="articleBody"] .webinar-callout,
#webinar-registration-intro .webinar-callout,
.tiptap-editor .ProseMirror .webinar-callout {
    padding: 0.85rem 1.1rem;
    border-radius: 0.375rem;
    border-inline-start: 4px solid #083698;
    background-color: #eff6ff;
    color: #1e3a5f;
    margin-top: 0;
    margin-bottom: 1rem;
}

.webinar-show__body .sppb-addon-content .webinar-callout--info,
.item-page [itemprop="articleBody"] .webinar-callout--info,
#webinar-registration-intro .webinar-callout--info,
.tiptap-editor .ProseMirror .webinar-callout--info {
    border-inline-start-color: #083698;
    background-color: #eff6ff;
    color: #1e3a5f;
}

.webinar-show__body .sppb-addon-content .webinar-callout--tip,
.item-page [itemprop="articleBody"] .webinar-callout--tip,
#webinar-registration-intro .webinar-callout--tip,
.tiptap-editor .ProseMirror .webinar-callout--tip {
    border-inline-start-color: #16a34a;
    background-color: #f0fdf4;
    color: #14532d;
}

.webinar-show__body .sppb-addon-content .webinar-callout--warning,
.item-page [itemprop="articleBody"] .webinar-callout--warning,
#webinar-registration-intro .webinar-callout--warning,
.tiptap-editor .ProseMirror .webinar-callout--warning {
    border-inline-start-color: #d97706;
    background-color: #fffbeb;
    color: #78350f;
}

.dark .tiptap-editor .ProseMirror .webinar-callout--info {
    background-color: rgba(8, 54, 152, 0.25);
    color: #dbeafe;
}

.dark .tiptap-editor .ProseMirror .webinar-callout--tip {
    background-color: rgba(22, 163, 74, 0.2);
    color: #dcfce7;
}

.dark .tiptap-editor .ProseMirror .webinar-callout--warning {
    background-color: rgba(217, 119, 6, 0.2);
    color: #fef3c7;
}

/* === 3. Publikus tipográfia és elválasztók === */
.webinar-show__body .sppb-addon-content .lead,
.item-page [itemprop="articleBody"] .lead {
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 1rem;
}

.webinar-show__body .sppb-addon-content small,
.item-page [itemprop="articleBody"] small {
    font-size: 0.85em;
    color: #4b5563;
}

.webinar-show__body .sppb-addon-content mark,
.item-page [itemprop="articleBody"] mark {
    background-color: #fef08a;
    color: inherit;
    padding: 0.05em 0.25em;
    border-radius: 0.2rem;
}

.webinar-show__body .sppb-addon-content hr,
.item-page [itemprop="articleBody"] hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    margin: 1.5rem 0;
}

.webinar-show__body .sppb-addon-content blockquote,
.item-page [itemprop="articleBody"] blockquote {
    border-inline-start: 4px solid #3562ab;
    padding: 0.6rem 1rem;
    margin: 0 0 1rem;
    background-color: #f8fafc;
    color: #334155;
}

.webinar-show__body .sppb-addon-content blockquote p:last-child,
.item-page [itemprop="articleBody"] blockquote p:last-child {
    margin-bottom: 0;
}

/* === 4. Táblázatok (publikus nézet) === */
.webinar-show__body .sppb-addon-content table,
.item-page [itemprop="articleBody"] table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95em;
}

.webinar-show__body .sppb-addon-content th,
.webinar-show__body .sppb-addon-content td,
.item-page [itemprop="articleBody"] th,
.item-page [itemprop="articleBody"] td {
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.75rem;
    vertical-align: top;
    text-align: left;
}

.webinar-show__body .sppb-addon-content th,
.item-page [itemprop="articleBody"] th {
    background-color: #f1f5f9;
    color: #1e293b;
    font-weight: 700;
}

.webinar-show__body .sppb-addon-content td > p:last-child,
.webinar-show__body .sppb-addon-content th > p:last-child,
.item-page [itemprop="articleBody"] td > p:last-child,
.item-page [itemprop="articleBody"] th > p:last-child {
    margin-bottom: 0;
}

/* === 5. Többoszlopos rács (grid-builder — publikus nézet) === */
.webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder,
.item-page [itemprop="articleBody"] .filament-tiptap-grid-builder {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    box-sizing: border-box;
}

.webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder__column,
.item-page [itemprop="articleBody"] .filament-tiptap-grid-builder__column {
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="sm"],
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="sm"] {
        grid-template-columns: 1fr !important;
    }

    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="sm"] .filament-tiptap-grid-builder__column,
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="sm"] .filament-tiptap-grid-builder__column {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="md"],
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="md"] {
        grid-template-columns: 1fr !important;
    }

    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="md"] .filament-tiptap-grid-builder__column,
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="md"] .filament-tiptap-grid-builder__column {
        grid-column: span 1 !important;
    }
}

@media (max-width: 1024px) {
    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="lg"],
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="lg"] {
        grid-template-columns: 1fr !important;
    }

    .webinar-show__body .sppb-addon-content .filament-tiptap-grid-builder[data-stack-at="lg"] .filament-tiptap-grid-builder__column,
    .item-page [itemprop="articleBody"] .filament-tiptap-grid-builder[data-stack-at="lg"] .filament-tiptap-grid-builder__column {
        grid-column: span 1 !important;
    }
}

/* === 6. Lenyitható harmonika blokk (details — publikus nézet) === */
.webinar-show__body .sppb-addon-content details,
.item-page [itemprop="articleBody"] details {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    background-color: #fff;
    overflow: hidden;
}

.webinar-show__body .sppb-addon-content details > summary,
.item-page [itemprop="articleBody"] details > summary {
    padding: 0.7rem 1rem;
    font-weight: 700;
    color: #083698;
    background-color: #f8fafc;
    cursor: pointer;
    list-style: disclosure-closed inside;
}

.webinar-show__body .sppb-addon-content details[open] > summary,
.item-page [itemprop="articleBody"] details[open] > summary {
    border-bottom: 1px solid #e2e8f0;
    list-style: disclosure-open inside;
}

.webinar-show__body .sppb-addon-content details > div[data-type="details-content"],
.item-page [itemprop="articleBody"] details > div[data-type="details-content"] {
    padding: 0.85rem 1rem;
}

.webinar-show__body .sppb-addon-content details > div[data-type="details-content"] > *:last-child,
.item-page [itemprop="articleBody"] details > div[data-type="details-content"] > *:last-child {
    margin-bottom: 0;
}

/* === 7. Gombként formázott linkek (publikus nézet) === */
.webinar-show__body .sppb-addon-content a[data-as-button="true"],
.item-page [itemprop="articleBody"] a[data-as-button="true"] {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 0.375rem;
    background-color: #083698;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.webinar-show__body .sppb-addon-content a[data-as-button="true"]:hover,
.item-page [itemprop="articleBody"] a[data-as-button="true"]:hover {
    opacity: 0.9;
}

.webinar-show__body .sppb-addon-content a[data-as-button="true"][data-as-button-theme="secondary"],
.item-page [itemprop="articleBody"] a[data-as-button="true"][data-as-button-theme="secondary"] {
    background-color: #d97706;
}

.webinar-show__body .sppb-addon-content a[data-as-button="true"][data-as-button-theme="tertiary"],
.item-page [itemprop="articleBody"] a[data-as-button="true"][data-as-button-theme="tertiary"] {
    background-color: #16a34a;
}

.webinar-show__body .sppb-addon-content a[data-as-button="true"][data-as-button-theme="accent"],
.item-page [itemprop="articleBody"] a[data-as-button="true"][data-as-button-theme="accent"] {
    background-color: #dc2626;
}

/* === 8. Admin Emoji / Szimbólum rács (Vite-független biztosítás) === */
.webinar-emoji-picker {
    width: 18rem;
    padding: 0.5rem;
}

.webinar-emoji-picker__title {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.25rem 0.25rem;
}

.webinar-emoji-picker__grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.2rem;
}

.webinar-emoji-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
