/**
 * Style CSS dla Editor.js - e-korepetycje.net
 * Kolory brandowe:
 * - Primary: #2AC59B
 * - Secondary: #FFAF2A
 * - Text: #384047
 */

/* ========================================
   KONTENER EDYTORA
   ======================================== */

.editor-container {
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    min-height: 300px;
    padding: 20px;
    margin: 20px 0;
    background: #fff;
    position: relative;
}

#editorjs {
    min-height: 250px;
    /* Lewy margines dla toolbara (+) i block tunes (kropki) */
    padding-left: 60px;
    position: relative;
    border: 1px solid #dee7ea;
    padding-top: 20px;
}

/* Dostosowanie pozycji toolbara EditorJS */
.codex-editor__redactor {
    padding-bottom: 100px !important;
}

.ce-toolbar {
    /* Toolbar z lewej strony - ikona + */
    left: 0 !important;
}

.ce-popover {
    --width: 233px !important;
}

.ce-block__content,
.ce-toolbar__content {
    max-width: 100% !important;
}

.ce-block {
    /* Block tunes (kropki) z prawej strony bloku */
    margin-right: 40px;
}

/* Ukryj pole filtrowania w popover */
.ce-popover__search {
    display: none !important;
}

/* Przycisk usuwania - biały tekst na czerwonym tle */
.ce-popover-item--confirmation,
.ce-popover-item--confirmation * {
    color: #fff !important;
}

.ce-popover-item--confirmation .ce-popover-item__title,
.ce-popover-item--confirmation .ce-popover-item__icon,
.ce-popover-item--confirmation svg {
    color: #fff !important;
}

/* Stroke dla SVG w przycisku usuwania */
.ce-popover-item--confirmation svg path {
    stroke: #fff !important;
}

/* Tooltips - wymuszenie białego tekstu na ciemnym tle */
.ct,
.ct__content,
.ct *,
.ct__content * {
    color: #fff !important;
}

/* Hint elements */
.ce-hint,
.ce-hint *,
.ce-hint__description {
    color: #fff !important;
}

/* Popover tooltips używane przez EditorJS - dziedziczą kolor */
.ce-popover__item-icon,
.ce-popover__item-label,
.ce-popover-item__title,
.ce-conversion-tool__icon {
    color: inherit !important;
}

/* Wskaźnik zapisu */
#editorSaveIndicator {
    display: inline-block;
    margin-left: 15px;
    font-size: 13px;
    color: #6c757d;
}

/* ========================================
   OSTRZEŻENIE O WERSJI ROBOCZEJ
   ======================================== */

.editor-draft-warning {
    margin: 0 0 15px 0;
    padding: 12px 20px;
    background: #fff9e6;
    border: 1px solid #FFAF2A;
    border-left-width: 4px;
    border-radius: 4px;
    font-size: 14px;
    /* Dopasowanie do wcięcia edytora 
    margin-left: 180px; 
    margin-right: 20px;
    */
    margin-left: 28px;
    margin-right: 0px;
}

.editor-draft-warning-content {
    color: #384047;
    line-height: 1.6;
}

.editor-draft-warning-content strong {
    color: #d97706;
    font-weight: 600;
}

.editor-draft-restore-link {
    color: #2AC59B;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.editor-draft-restore-link:hover {
    border-bottom-color: #2AC59B;
}

@media (max-width: 768px) {
    .editor-draft-warning {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Ukryj "Convert to" z inline toolbar - EditorJS dodaje go automatycznie */
.ce-conversion-toolbar,
.ce-inline-toolbar__dropdown,
button[data-item-name="convert-to"] {
    display: none !important;
}

/* Ukryj separator po "Convert to" w inline toolbar */
.ce-inline-toolbar .ce-popover-item-separator {
    display: none !important;
}

/* ========================================
   NAGŁÓWKI W EDYTORZE (podczas edycji)
   ======================================== */

/* Hierarchia wielkości nagłówków w edytorze */
.ce-header {
    padding: 0 !important;
    margin: 0.8em 0 0.5em 0 !important;
    line-height: 1.3 !important;
}

h1.ce-header {
    font-size: 2.5em !important;
    font-weight: 400 !important;
}

h2.ce-header {
    font-size: 2em !important;
    font-weight: 400 !important;
}

h3.ce-header {
    font-size: 1.5em !important;
    font-weight: 400 !important;
}

h4.ce-header {
    font-size: 1.5em !important;    /* Taki sam jak H3 */
    font-weight: 400 !important;
}

h5.ce-header {
    font-size: 1.1em !important;
    font-weight: 400 !important;
}

h6.ce-header {
    font-size: 1em !important;
    font-weight: 400 !important;
}

/* ========================================
   WYŚWIETLANIE TREŚCI (FRONTEND)
   ======================================== */

.offer-content-editorjs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #384047;
    line-height: 1.6;
    /* padding: 20px 0 0 0; */
}

/* ========================================
   NAGŁÓWKI
   ======================================== */

.editor-header {
    color: #384047;
    margin: 1em 0 0.5em;
    line-height: 1.3;
}

h1.editor-header {
    font-size: 2.5em;
    font-weight: 400;
}

h2.editor-header {
    font-size: 2em;
    font-weight: 400;
}

h3.editor-header {
    font-size: 1.5em;
    font-weight: 400;
}

h4.editor-header {
    font-size: 1.5em;              /* Taki sam jak H3 */
    font-weight: 400;
}

/* Wyzerowanie H2 i H3 w treści ogłoszenia - bez kolorystyki i tła */
.offer-content-editorjs h2.editor-header,
.offer-content-editorjs h3.editor-header {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    color: #384047 !important;
}

/* Wyzerowanie dla wariantów tekstowych (call-out, citation, details) */
.offer-content-editorjs h2.editor-header.text-call-out,
.offer-content-editorjs h3.editor-header.text-call-out,
.offer-content-editorjs h2.editor-header.text-citation,
.offer-content-editorjs h3.editor-header.text-citation,
.offer-content-editorjs h2.editor-header.text-details,
.offer-content-editorjs h3.editor-header.text-details {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
    padding: 0 !important;
    color: #384047 !important;
    font-style: normal !important;
}

/* ========================================
   PARAGRAFY
   ======================================== */

.editor-paragraph {
    margin: 0 0 1em;
    color: #384047;
    line-height: 1.6;
}

/* Warianty tekstu */
.text-small {
    font-size: 0.875em;
}

.text-large {
    font-size: 1.125em;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* ========================================
   FORMATOWANIE INLINE
   ======================================== */

.editor-underline {
    text-decoration: underline;
}

.editor-marker,
mark.editor-marker {
    background-color: #FFAF2A;
    color: #384047;
    padding: 1px 2px;
    border-radius: 2px;
}

.editor-inline-code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ========================================
   TEXT VARIANT BLOCK TUNE
   ======================================== */

/* Call-out - wyróżnione pole informacyjne z lewym borderem brandowym */
.text-call-out {
    background-color: #f0f9ff;
    border-left: 4px solid #2AC59B;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 4px;
}

.text-call-out.editor-header {
    background-color: #e6f7f2;
}

/* Citation - styl cytatu z lewym borderem */
.text-citation {
    font-style: italic;
    color: #6c757d;
    border-left: 3px solid #e5e7eb;
    padding-left: 20px;
    margin: 16px 0;
}

.text-citation.editor-header {
    font-style: normal;
    color: #6c757d;
}

/* Details - pole szczegółów z lekkim tłem */
.text-details {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 4px;
    font-size: 0.95em;
}

.text-details.editor-header {
    font-size: 1em;
    color: #384047;
}

/* ========================================
   LISTY
   ======================================== */

.editor-list {
    margin: 1em 0;
    padding-left: 1.5em;
}

.editor-list li {
    margin: 0.5em 0;
    color: #384047;
}

/* Listy numerowane - różne style */
.editor-list.list-counter-decimal {
    list-style-type: decimal;
}

.editor-list.list-counter-lower-roman {
    list-style-type: lower-roman;
}

.editor-list.list-counter-upper-roman {
    list-style-type: upper-roman;
}

.editor-list.list-counter-lower-alpha {
    list-style-type: lower-alpha;
}

.editor-list.list-counter-upper-alpha {
    list-style-type: upper-alpha;
}

/* Custom markery dla list punktowanych - dual targeting dla edytora i frontendu */

/* Arrow marker */
.editor-list.list-arrow,
.cdx-list.cdx-list-unordered.list-arrow {
    list-style: none !important;
}

.editor-list.list-arrow li::before,
.cdx-list.cdx-list-unordered.list-arrow li::before {
    content: "→";
    color: #2AC59B;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Check marker */
.editor-list.list-check,
.cdx-list.cdx-list-unordered.list-check {
    list-style: none !important;
}

.editor-list.list-check li::before,
.cdx-list.cdx-list-unordered.list-check li::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Diamond marker */
.editor-list.list-diamond,
.cdx-list.cdx-list-unordered.list-diamond {
    list-style: none !important;
}

.editor-list.list-diamond li::before,
.cdx-list.cdx-list-unordered.list-diamond li::before {
    content: "🔹";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Star marker */
.editor-list.list-star,
.cdx-list.cdx-list-unordered.list-star {
    list-style: none !important;
}

.editor-list.list-star li::before,
.cdx-list.cdx-list-unordered.list-star li::before {
    content: "⭐";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
    font-size: 0.9em;
}

/* ===== EXTENDED MARKERS (30+) ===== */

/* Double Arrow marker */
.editor-list.list-double-arrow,
.cdx-list.cdx-list-unordered.list-double-arrow {
    list-style: none !important;
}

.editor-list.list-double-arrow li::before,
.cdx-list.cdx-list-unordered.list-double-arrow li::before {
    content: "⏩";
    color: #f97316;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Thick Arrow marker */
.editor-list.list-thick-arrow,
.cdx-list.cdx-list-unordered.list-thick-arrow {
    list-style: none !important;
}

.editor-list.list-thick-arrow li::before,
.cdx-list.cdx-list-unordered.list-thick-arrow li::before {
    content: "⟹";
    color: #16a34a;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Triangle Right marker */
.editor-list.list-triangle-right,
.cdx-list.cdx-list-unordered.list-triangle-right {
    list-style: none !important;
}

.editor-list.list-triangle-right li::before,
.cdx-list.cdx-list-unordered.list-triangle-right li::before {
    content: "▶";
    color: #6b7280;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Chevron marker */
.editor-list.list-chevron,
.cdx-list.cdx-list-unordered.list-chevron {
    list-style: none !important;
}

.editor-list.list-chevron li::before,
.cdx-list.cdx-list-unordered.list-chevron li::before {
    content: "❯";
    color: #3b82f6;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Arrowhead marker */
.editor-list.list-arrowhead,
.cdx-list.cdx-list-unordered.list-arrowhead {
    list-style: none !important;
}

.editor-list.list-arrowhead li::before,
.cdx-list.cdx-list-unordered.list-arrowhead li::before {
    content: "➤";
    color: #8b5cf6;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Curved Arrow marker */
.editor-list.list-curved-arrow,
.cdx-list.cdx-list-unordered.list-curved-arrow {
    list-style: none !important;
}

.editor-list.list-curved-arrow li::before,
.cdx-list.cdx-list-unordered.list-curved-arrow li::before {
    content: "↪";
    color: #10b981;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Star Outline marker */
.editor-list.list-star-outline,
.cdx-list.cdx-list-unordered.list-star-outline {
    list-style: none !important;
}

.editor-list.list-star-outline li::before,
.cdx-list.cdx-list-unordered.list-star-outline li::before {
    content: "☆";
    color: #fbbf24;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
    font-size: 1.2em;
}

/* Sparkles marker */
.editor-list.list-sparkles,
.cdx-list.cdx-list-unordered.list-sparkles {
    list-style: none !important;
}

.editor-list.list-sparkles li::before,
.cdx-list.cdx-list-unordered.list-sparkles li::before {
    content: "✨";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
    font-size: 1.2em;
}

/* Circle marker */
.editor-list.list-circle,
.cdx-list.cdx-list-unordered.list-circle {
    list-style: none !important;
}

.editor-list.list-circle li::before,
.cdx-list.cdx-list-unordered.list-circle li::before {
    content: "●";
    color: #374151;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Circle Outline marker */
.editor-list.list-circle-outline,
.cdx-list.cdx-list-unordered.list-circle-outline {
    list-style: none !important;
}

.editor-list.list-circle-outline li::before,
.cdx-list.cdx-list-unordered.list-circle-outline li::before {
    content: "○";
    color: #6b7280;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Square marker */
.editor-list.list-square,
.cdx-list.cdx-list-unordered.list-square {
    list-style: none !important;
}

.editor-list.list-square li::before,
.cdx-list.cdx-list-unordered.list-square li::before {
    content: "■";
    color: #1f2937;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Square Outline marker */
.editor-list.list-square-outline,
.cdx-list.cdx-list-unordered.list-square-outline {
    list-style: none !important;
}

.editor-list.list-square-outline li::before,
.cdx-list.cdx-list-unordered.list-square-outline li::before {
    content: "□";
    color: #9ca3af;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Diamond Outline marker */
.editor-list.list-diamond-outline,
.cdx-list.cdx-list-unordered.list-diamond-outline {
    list-style: none !important;
}

.editor-list.list-diamond-outline li::before,
.cdx-list.cdx-list-unordered.list-diamond-outline li::before {
    content: "◇";
    color: #a78bfa;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Triangle marker */
.editor-list.list-triangle,
.cdx-list.cdx-list-unordered.list-triangle {
    list-style: none !important;
}

.editor-list.list-triangle li::before,
.cdx-list.cdx-list-unordered.list-triangle li::before {
    content: "▲";
    color: #ef4444;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Heavy Check marker */
.editor-list.list-heavy-check,
.cdx-list.cdx-list-unordered.list-heavy-check {
    list-style: none !important;
}

.editor-list.list-heavy-check li::before,
.cdx-list.cdx-list-unordered.list-heavy-check li::before {
    content: "✔";
    color: #059669;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Checkbox marker */
.editor-list.list-checkbox,
.cdx-list.cdx-list-unordered.list-checkbox {
    list-style: none !important;
}

.editor-list.list-checkbox li::before,
.cdx-list.cdx-list-unordered.list-checkbox li::before {
    content: "☑";
    color: #0284c7;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Cross marker */
.editor-list.list-cross,
.cdx-list.cdx-list-unordered.list-cross {
    list-style: none !important;
}

.editor-list.list-cross li::before,
.cdx-list.cdx-list-unordered.list-cross li::before {
    content: "✗";
    color: #dc2626;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Circled Numbers markers */
.editor-list.list-circled-1,
.cdx-list.cdx-list-unordered.list-circled-1,
.editor-list.list-circled-2,
.cdx-list.cdx-list-unordered.list-circled-2,
.editor-list.list-circled-3,
.cdx-list.cdx-list-unordered.list-circled-3 {
    list-style: none !important;
}

.editor-list.list-circled-1 li::before,
.cdx-list.cdx-list-unordered.list-circled-1 li::before {
    content: "①";
    color: #7c3aed;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

.editor-list.list-circled-2 li::before,
.cdx-list.cdx-list-unordered.list-circled-2 li::before {
    content: "②";
    color: #7c3aed;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

.editor-list.list-circled-3 li::before,
.cdx-list.cdx-list-unordered.list-circled-3 li::before {
    content: "③";
    color: #7c3aed;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Heart marker */
.editor-list.list-heart,
.cdx-list.cdx-list-unordered.list-heart {
    list-style: none !important;
}

.editor-list.list-heart li::before,
.cdx-list.cdx-list-unordered.list-heart li::before {
    content: "❤";
    color: #ef4444;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Heart Outline marker */
.editor-list.list-heart-outline,
.cdx-list.cdx-list-unordered.list-heart-outline {
    list-style: none !important;
}

.editor-list.list-heart-outline li::before,
.cdx-list.cdx-list-unordered.list-heart-outline li::before {
    content: "♡";
    color: #ec4899;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Lightning marker */
.editor-list.list-lightning,
.cdx-list.cdx-list-unordered.list-lightning {
    list-style: none !important;
}

.editor-list.list-lightning li::before,
.cdx-list.cdx-list-unordered.list-lightning li::before {
    content: "⚡";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Fire marker */
.editor-list.list-fire,
.cdx-list.cdx-list-unordered.list-fire {
    list-style: none !important;
}

.editor-list.list-fire li::before,
.cdx-list.cdx-list-unordered.list-fire li::before {
    content: "🔥";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Rocket marker */
.editor-list.list-rocket,
.cdx-list.cdx-list-unordered.list-rocket {
    list-style: none !important;
}

.editor-list.list-rocket li::before,
.cdx-list.cdx-list-unordered.list-rocket li::before {
    content: "🚀";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Pin marker */
.editor-list.list-pin,
.cdx-list.cdx-list-unordered.list-pin {
    list-style: none !important;
}

.editor-list.list-pin li::before,
.cdx-list.cdx-list-unordered.list-pin li::before {
    content: "📌";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Flag marker */
.editor-list.list-flag,
.cdx-list.cdx-list-unordered.list-flag {
    list-style: none !important;
}

.editor-list.list-flag li::before,
.cdx-list.cdx-list-unordered.list-flag li::before {
    content: "🚩";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Trophy marker */
.editor-list.list-trophy,
.cdx-list.cdx-list-unordered.list-trophy {
    list-style: none !important;
}

.editor-list.list-trophy li::before,
.cdx-list.cdx-list-unordered.list-trophy li::before {
    content: "🏆";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Crown marker */
.editor-list.list-crown,
.cdx-list.cdx-list-unordered.list-crown {
    list-style: none !important;
}

.editor-list.list-crown li::before,
.cdx-list.cdx-list-unordered.list-crown li::before {
    content: "👑";
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Plus marker */
.editor-list.list-plus,
.cdx-list.cdx-list-unordered.list-plus {
    list-style: none !important;
}

.editor-list.list-plus li::before,
.cdx-list.cdx-list-unordered.list-plus li::before {
    content: "+";
    color: #059669;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Minus marker */
.editor-list.list-minus,
.cdx-list.cdx-list-unordered.list-minus {
    list-style: none !important;
}

.editor-list.list-minus li::before,
.cdx-list.cdx-list-unordered.list-minus li::before {
    content: "−";
    color: #dc2626;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Multiplication marker */
.editor-list.list-times,
.cdx-list.cdx-list-unordered.list-times {
    list-style: none !important;
}

.editor-list.list-times li::before,
.cdx-list.cdx-list-unordered.list-times li::before {
    content: "×";
    color: #7c3aed;
    font-weight: bold;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* Infinity marker */
.editor-list.list-infinity,
.cdx-list.cdx-list-unordered.list-infinity {
    list-style: none !important;
}

.editor-list.list-infinity li::before,
.cdx-list.cdx-list-unordered.list-infinity li::before {
    content: "∞";
    color: #2563eb;
    margin-right: 8px;
    display: inline-block;
    width: 1em;
}

/* ========================================
   SEPARATOR
   ======================================== */

.editor-delimiter {
    margin: 2em 0;
    border: none;
    border-top: 2px solid #e1e5e9;
}

/* ========================================
   CYTAT
   ======================================== */

.editor-quote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #2AC59B;
    background: #f9fafb;
    font-style: italic;
}

.editor-quote p {
    margin: 0 0 0.5em;
    color: #384047;
}

.editor-quote cite {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    color: #6c757d;
    font-style: normal;
}

.editor-quote cite::before {
    content: "— ";
}

/* ========================================
   CYTAT - Ukrycie zbędnych opcji wyrównania w edytorze
   ======================================== */

/* TODO: Znaleźć sposób na ukrycie tylko Quote alignment bez wpływu na inne bloki */

/* ========================================
   OSTRZEŻENIE
   ======================================== */

.editor-warning {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border: 1px solid #FFAF2A;
    border-left-width: 4px;
    background: #fff9e6;
    border-radius: 4px;
}

.editor-warning-title {
    font-weight: 600;
    color: #384047;
    margin-bottom: 0.5em;
}

.editor-warning-message {
    color: #384047;
}

/* ========================================
   TABELA
   ======================================== */

.editor-table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    background: #fff;
}

.editor-table th,
.editor-table td {
    padding: 12px;
    border: 1px solid #e1e5e9;
    text-align: left;
    color: #384047;
}

.editor-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.editor-table tbody tr:hover {
    background: #f9fafb;
}

/* ========================================
   CTA BUTTON
   ======================================== */

.editor-cta-wrapper {
    margin: 1.5em 0;
    text-align: center;
}

.editor-cta-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Style przycisków */
.editor-cta-primary {
    background-color: #2AC59B;
    color: #fff;
    border: 2px solid #2AC59B;
}

.editor-cta-primary:hover {
    background-color: #22a582;
    border-color: #22a582;
}

.editor-cta-secondary {
    background-color: #6c757d;
    color: #fff;
    border: 2px solid #6c757d;
}

.editor-cta-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.editor-cta-success {
    background-color: #16a34a;
    color: #fff;
    border: 2px solid #16a34a;
}

.editor-cta-success:hover {
    background-color: #15803d;
    border-color: #15803d;
}

.editor-cta-orange {
    background-color: #FFAF2A;
    color: #fff;
    border: 2px solid #FFAF2A;
}

.editor-cta-orange:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.editor-cta-outline {
    background-color: transparent;
    color: #2AC59B;
    border: 2px solid #2AC59B;
}

.editor-cta-outline:hover {
    background-color: #2AC59B;
    color: #fff;
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 768px) {
    .editor-container {
        padding: 15px;
        margin: 15px 0;
    }

    h1.editor-header {
        font-size: 2em;
    }

    h2.editor-header {
        font-size: 1.5em;
    }

    h3.editor-header {
        font-size: 1.25em;
    }

    .editor-table {
        font-size: 14px;
    }

    .editor-table th,
    .editor-table td {
        padding: 8px;
    }

    .editor-cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========================================
   KOMPATYBILNOŚĆ ZE STARYM STYLEM
   ======================================== */

/* Zachowanie stylu dla starych ogłoszeń (Textile) */
.offer-full-content-section {
    /* Istniejące style */
}

/* Nowy styl dla ogłoszeń z Editor.js */
.offer-content-editorjs strong {
    font-weight: 600;
    color: #384047;
}

.offer-content-editorjs em {
    font-style: italic;
}

.offer-content-editorjs a {
    color: #2AC59B;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.offer-content-editorjs a:hover {
    border-bottom-color: #2AC59B;
}

/* ========================================
   POPRAWKI DLA PRZYCISKU WCIĘCIE
   ======================================== */

/* Usuwamy box-shadow z przycisków lewo/prawo w elemencie wcięcie */
.ce-popover-item.ce-popover-indent-item[data-item-name="indent"] button,
.ce-popover-item.ce-popover-indent-item[data-item-name="indent"] .ce-popover__button {
    box-shadow: none !important;
}

/* Poprawka wyrównania tekstu "Wcięcie" */
.ce-popover-item.ce-popover-indent-item[data-item-name="indent"] .ce-popover-item__title {
    padding-left: 0 !important;
    margin-left: 4px !important;
}

/* ========================================
   BLOG - ARTICLE-CONTENT-EDITORJS
   Style dla artykułów blogowych z EditorJS
   ======================================== */

.article-content-editorjs {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #384047;
    line-height: 1.6;
    font-size: 15px;
}

/* ========================================
   NAGŁÓWKI (BLOG)
   ======================================== */

.article-content-editorjs .editor-header {
    color: #384047;
    margin: 1.2em 0 0.6em;
    line-height: 1.3;
    font-weight: 400;
}

/* H1 - nie używamy w treści (tylko w tytule strony) */
.article-content-editorjs h1.editor-header {
    font-size: 2.5em;
    font-weight: 400;
}

/* H2 - główne sekcje artykułu */
.article-content-editorjs h2.editor-header {
    font-size: 2.2em;
    font-weight: 400;
    margin-top: 1.5em;
}

/* H3 - podsekcje */
.article-content-editorjs h3.editor-header {
    font-size: 1.75em;
    font-weight: 400;
}

/* H4 - detale */
.article-content-editorjs h4.editor-header {
    font-size: 1.4em;
    font-weight: 400;
}

/* H5 - drobne sekcje */
.article-content-editorjs h5.editor-header {
    font-size: 1.2em;
    font-weight: 400;
}

/* H6 - najmniejsze nagłówki */
.article-content-editorjs h6.editor-header {
    font-size: 1.1em;
    font-weight: 400;
}

/* ========================================
   PARAGRAFY (BLOG)
   ======================================== */

.article-content-editorjs .editor-paragraph,
.article-content-editorjs p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: justify;
    color: #384047;
}

/* Warianty tekstu */
.article-content-editorjs .text-small {
    font-size: 0.875em;
}

.article-content-editorjs .text-large {
    font-size: 1.125em;
}

.article-content-editorjs .text-center {
    text-align: center;
}

.article-content-editorjs .text-right {
    text-align: right;
}

/* ========================================
   FORMATOWANIE INLINE (BLOG)
   ======================================== */

.article-content-editorjs .editor-underline {
    text-decoration: underline;
}

.article-content-editorjs .editor-marker,
.article-content-editorjs mark.editor-marker {
    background-color: #FFAF2A;
    color: #384047;
    padding: 2px 4px;
    border-radius: 3px;
}

.article-content-editorjs .editor-inline-code {
    background: #f5f5f5;
    padding: 3px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

.article-content-editorjs strong {
    font-weight: 600;
    color: #384047;
}

.article-content-editorjs em {
    font-style: italic;
}

.article-content-editorjs a {
    color: #2AC59B;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content-editorjs a:hover {
    border-bottom-color: #2AC59B;
}

/* ========================================
   TEXT VARIANT BLOCK TUNE (BLOG)
   ======================================== */

/* Call-out - wyróżnione pole informacyjne */
.article-content-editorjs .text-call-out {
    background-color: #f0f9ff;
    border-left: 4px solid #2AC59B;
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 6px;
}

.article-content-editorjs .text-call-out.editor-header {
    background-color: #e6f7f2;
}

/* Citation - styl cytatu z lewym borderem */
.article-content-editorjs .text-citation {
    font-style: italic;
    color: #6c757d;
    border-left: 3px solid #e5e7eb;
    padding-left: 24px;
    margin: 20px 0;
}

.article-content-editorjs .text-citation.editor-header {
    font-style: normal;
    color: #6c757d;
}

/* Details - pole szczegółów */
.article-content-editorjs .text-details {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 6px;
    font-size: 0.95em;
}

.article-content-editorjs .text-details.editor-header {
    font-size: 1em;
    color: #384047;
}

/* ========================================
   LISTY (BLOG)
   ======================================== */

/* Listy domyślne (bez custom markera) */
.article-content-editorjs .cdx-list {
    list-style: disc !important;
    margin-bottom: 30px;
    padding-left: 40px;
}

.article-content-editorjs .cdx-list li {
    margin: 0.6em 0;
    color: #384047;
    line-height: 1.6;
}

.article-content-editorjs ol.cdx-list {
    list-style-type: decimal !important;
}

/* Wrapper dla custom markerów */
.article-content-editorjs .list-marker-wrapper {
    margin-bottom: 45px;
}

.article-content-editorjs .list-marker-wrapper .cdx-list {
    padding-left: 30px;
    margin-bottom: 0;
}

.article-content-editorjs .editor-list {
    margin: 1.2em 0 30px;
    margin-left: 2em;
    padding-left: 1.5em;
}

.article-content-editorjs .editor-list li {
    margin: 0.6em 0;
    color: #384047;
    line-height: 1.6;
}

/* Lista domyślna punktowana (bez custom markera) */
.article-content-editorjs ul.editor-list.list-default {
    list-style-type: disc;
    margin-left: 2em;
}

/* Lista domyślna numerowana */
.article-content-editorjs ol.editor-list {
    list-style-type: decimal;
    margin-left: 2em;
}

/* Listy numerowane - różne style */
.article-content-editorjs .list-marker-wrapper.list-counter-decimal .cdx-list {
    list-style-type: decimal;
}

.article-content-editorjs .list-marker-wrapper.list-counter-lower-roman .cdx-list {
    list-style-type: lower-roman;
}

.article-content-editorjs .list-marker-wrapper.list-counter-upper-roman .cdx-list {
    list-style-type: upper-roman;
}

.article-content-editorjs .list-marker-wrapper.list-counter-lower-alpha .cdx-list {
    list-style-type: lower-alpha;
}

.article-content-editorjs .list-marker-wrapper.list-counter-upper-alpha .cdx-list {
    list-style-type: upper-alpha;
}

/* Custom markery dla list punktowanych (30+) */

/* Arrow marker → */
.article-content-editorjs .list-marker-wrapper.list-arrow .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-arrow .cdx-list li::before {
    content: "→";
    color: #2AC59B;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Check marker ✓ */
.article-content-editorjs .list-marker-wrapper.list-check .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-check .cdx-list li::before {
    content: "✓";
    color: #16a34a;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Diamond marker 🔹 */
.article-content-editorjs .list-marker-wrapper.list-diamond .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-diamond .cdx-list li::before {
    content: "🔹";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Star marker ⭐ */
.article-content-editorjs .list-marker-wrapper.list-star .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-star .cdx-list li::before {
    content: "⭐";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
    font-size: 0.9em;
}

/* Double Arrow ⏩ */
.article-content-editorjs .list-marker-wrapper.list-double-arrow .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-double-arrow .cdx-list li::before {
    content: "⏩";
    color: #f97316;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Thick Arrow ⟹ */
.article-content-editorjs .list-marker-wrapper.list-thick-arrow .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-thick-arrow .cdx-list li::before {
    content: "⟹";
    color: #16a34a;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Triangle Right ▶ */
.article-content-editorjs .list-marker-wrapper.list-triangle-right .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-triangle-right .cdx-list li::before {
    content: "▶";
    color: #6b7280;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Chevron ❯ */
.article-content-editorjs .list-marker-wrapper.list-chevron .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-chevron .cdx-list li::before {
    content: "❯";
    color: #3b82f6;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Arrowhead ➤ */
.article-content-editorjs .list-marker-wrapper.list-arrowhead .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-arrowhead .cdx-list li::before {
    content: "➤";
    color: #8b5cf6;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Curved Arrow ↪ */
.article-content-editorjs .list-marker-wrapper.list-curved-arrow .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-curved-arrow .cdx-list li::before {
    content: "↪";
    color: #10b981;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Star Outline ☆ */
.article-content-editorjs .list-marker-wrapper.list-star-outline .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-star-outline .cdx-list li::before {
    content: "☆";
    color: #fbbf24;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
    font-size: 1.2em;
}

/* Sparkles ✨ */
.article-content-editorjs .list-marker-wrapper.list-sparkles .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-sparkles .cdx-list li::before {
    content: "✨";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
    font-size: 1.2em;
}

/* Circle ● */
.article-content-editorjs .list-marker-wrapper.list-circle .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-circle .cdx-list li::before {
    content: "●";
    color: #374151;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Circle Outline ○ */
.article-content-editorjs .list-marker-wrapper.list-circle-outline .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-circle-outline .cdx-list li::before {
    content: "○";
    color: #6b7280;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Square ■ */
.article-content-editorjs .list-marker-wrapper.list-square .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-square .cdx-list li::before {
    content: "■";
    color: #1f2937;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Square Outline □ */
.article-content-editorjs .list-marker-wrapper.list-square-outline .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-square-outline .cdx-list li::before {
    content: "□";
    color: #9ca3af;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Diamond Outline ◇ */
.article-content-editorjs .list-marker-wrapper.list-diamond-outline .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-diamond-outline .cdx-list li::before {
    content: "◇";
    color: #a78bfa;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Triangle ▲ */
.article-content-editorjs .list-marker-wrapper.list-triangle .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-triangle .cdx-list li::before {
    content: "▲";
    color: #ef4444;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Heavy Check ✔ */
.article-content-editorjs .list-marker-wrapper.list-heavy-check .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-heavy-check .cdx-list li::before {
    content: "✔";
    color: #059669;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Checkbox ☑ */
.article-content-editorjs .list-marker-wrapper.list-checkbox .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-checkbox .cdx-list li::before {
    content: "☑";
    color: #0284c7;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Cross ✗ */
.article-content-editorjs .list-marker-wrapper.list-cross .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-cross .cdx-list li::before {
    content: "✗";
    color: #dc2626;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Circled Numbers ①②③ */
.article-content-editorjs .list-marker-wrapper.list-circled-1 .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-circled-1 .cdx-list li::before {
    content: "①";
    color: #7c3aed;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

.article-content-editorjs .list-marker-wrapper.list-circled-2 .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-circled-2 .cdx-list li::before {
    content: "②";
    color: #7c3aed;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

.article-content-editorjs .list-marker-wrapper.list-circled-3 .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-circled-3 .cdx-list li::before {
    content: "③";
    color: #7c3aed;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Heart ❤ */
.article-content-editorjs .list-marker-wrapper.list-heart .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-heart .cdx-list li::before {
    content: "❤";
    color: #ef4444;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Heart Outline ♡ */
.article-content-editorjs .list-marker-wrapper.list-heart-outline .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-heart-outline .cdx-list li::before {
    content: "♡";
    color: #ec4899;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Lightning ⚡ */
.article-content-editorjs .list-marker-wrapper.list-lightning .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-lightning .cdx-list li::before {
    content: "⚡";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Fire 🔥 */
.article-content-editorjs .list-marker-wrapper.list-fire .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-fire .cdx-list li::before {
    content: "🔥";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Rocket 🚀 */
.article-content-editorjs .list-marker-wrapper.list-rocket .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-rocket .cdx-list li::before {
    content: "🚀";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Pin 📌 */
.article-content-editorjs .list-marker-wrapper.list-pin .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-pin .cdx-list li::before {
    content: "📌";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Flag 🚩 */
.article-content-editorjs .list-marker-wrapper.list-flag .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-flag .cdx-list li::before {
    content: "🚩";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Trophy 🏆 */
.article-content-editorjs .list-marker-wrapper.list-trophy .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-trophy .cdx-list li::before {
    content: "🏆";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Crown 👑 */
.article-content-editorjs .list-marker-wrapper.list-crown .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-crown .cdx-list li::before {
    content: "👑";
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Plus + */
.article-content-editorjs .list-marker-wrapper.list-plus .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-plus .cdx-list li::before {
    content: "+";
    color: #059669;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Minus − */
.article-content-editorjs .list-marker-wrapper.list-minus .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-minus .cdx-list li::before {
    content: "−";
    color: #dc2626;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Multiplication × */
.article-content-editorjs .list-marker-wrapper.list-times .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-times .cdx-list li::before {
    content: "×";
    color: #7c3aed;
    font-weight: bold;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* Infinity ∞ */
.article-content-editorjs .list-marker-wrapper.list-infinity .cdx-list {
    list-style: none !important;
}

.article-content-editorjs .list-marker-wrapper.list-infinity .cdx-list li::before {
    content: "∞";
    color: #2563eb;
    margin-right: 10px;
    display: inline-block;
    width: 1em;
}

/* ========================================
   OSTRZEŻENIE / WARNING (BLOG)
   ======================================== */

.article-content-editorjs .editor-warning {
    margin: 1.5em 0 3em 0;
    padding: 1em 1.5em;
    border: 1px solid #FFAF2A;
    border-left-width: 4px;
    background: #fff9e6;
    border-radius: 4px;
}

.article-content-editorjs .editor-warning-title {
    font-weight: 600;
    color: #384047;
    margin-bottom: 0.5em;
}

.article-content-editorjs .editor-warning-message {
    color: #384047;
}

/* ========================================
   SEPARATOR (BLOG)
   ======================================== */

.article-content-editorjs .editor-delimiter {
    margin: 2.5em 0;
    border: none;
    border-top: 2px solid #e1e5e9;
}

/* ========================================
   CYTAT (BLOG)
   ======================================== */

.article-content-editorjs .editor-quote {
    margin: 1.8em 0 30px;
    padding: 1.2em 1.8em;
    border-left: 5px solid #2AC59B;
    background: #f9fafb;
    font-style: italic;
    border-radius: 4px;
}

.article-content-editorjs .editor-quote p {
    margin: 0 0 15px;
    color: #384047;
    font-size: 1.05em;
    line-height: 1.7;
}

.article-content-editorjs .editor-quote cite {
    display: block;
    margin-top: 1em;
    font-size: 0.9em;
    color: #6c757d;
    font-style: normal;
}

.article-content-editorjs .editor-quote cite::before {
    content: "— ";
}

/* ========================================
   PRZYCISKI CTA (BLOG)
   ======================================== */

.article-content-editorjs .editor-cta-wrapper {
    margin: 3em 0;
    text-align: center;
}

.article-content-editorjs .editor-cta-button {
    display: inline-block;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

/* Primary - zielony brand */
.article-content-editorjs .editor-cta-primary {
    background-color: #2AC59B;
    color: #fff;
    border: 2px solid #2AC59B;
}

.article-content-editorjs .editor-cta-primary:hover {
    background-color: #22a582;
    border-color: #22a582;
    color: #fff;
}

/* Secondary - pomarańczowy brand */
.article-content-editorjs .editor-cta-secondary {
    background-color: #FFAF2A;
    color: #fff;
    border: 2px solid #FFAF2A;
}

.article-content-editorjs .editor-cta-secondary:hover {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}

/* Success - zielony */
.article-content-editorjs .editor-cta-success {
    background-color: #16a34a;
    color: #fff;
    border: 2px solid #16a34a;
}

.article-content-editorjs .editor-cta-success:hover {
    background-color: #15803d;
    border-color: #15803d;
    color: #fff;
}

/* Outline - transparentny z borderem */
.article-content-editorjs .editor-cta-outline {
    background-color: transparent;
    color: #2AC59B;
    border: 2px solid #2AC59B;
}

.article-content-editorjs .editor-cta-outline:hover {
    background-color: #2AC59B;
    color: #fff;
}

/* ========================================
   OBRAZY (BLOG)
   ======================================== */

.article-content-editorjs img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
}

.article-content-editorjs .image-tool {
    margin: 1.5em 0 20px;
    text-align: center;
}

.article-content-editorjs .image-tool img {
    max-width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 4px;
}

.article-content-editorjs .image-tool__caption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* =============================================================================
   CustomFiles Gallery - Vertical Layout
   ============================================================================= */

.editor-file-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}

/* Images */
.editor-file-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Links around images or files */
a.editor-file-link {
    display: inline-block;
    text-decoration: none;
    max-width: 100%;
}

a.editor-file-link:hover .editor-file-image {
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

/* Non-image files (PDF, DOC, etc) */
.editor-file-icon {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    gap: 6px;
    max-width: 300px;
}

.editor-file-icon:hover {
    background: #e9ecef;
    transition: background 0.2s ease;
}

.file-icon-ext {
    font-weight: bold;
    color: #2AC59B;
    font-size: 14px;
    text-transform: uppercase;
}

.file-icon-name {
    font-size: 14px;
    color: #384047;
    word-break: break-word;
}

.file-icon-size {
    font-size: 12px;
    color: #6c757d;
}

/* =============================================================================
   Embed (YouTube, Vimeo, etc.) - Responsive 16:9 Wrapper
   ============================================================================= */

.editor-embed {
    margin: 20px 0;
}

.editor-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.editor-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.editor-embed-caption {
    margin-top: 8px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}
