/* ========================================
   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;
}
