body {
    font-family: var(--font_family);
    color: var(--font_color);
    background-color: #f9fafb; /* Domyślne tło - Tailwind gray-50 */
}

/* Paragrafy */
.prose p {
    margin-bottom: 2em;
    line-height: 1.7;
}

/* Nagłówki */
.prose h2 {
    margin-bottom: 2rem;
    margin-top: 3rem;
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;
    color: #1f2937; /* gray-800 */
    line-height: 1.2;
}

.prose h3 {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    color: #374151; /* gray-700 */
    line-height: 1.3;
}

.prose h4 {
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    color: #4b5563; /* gray-600 */
    line-height: 1.4;
}

/* Listy nienumerowane */
.prose ul {
    margin-bottom: 2rem;
    margin-top: 1rem;
    padding-left: 0;
}

.prose ul li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 1.6;
    list-style: none;
}

.prose ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #3b82f6; /* blue-500 */
    font-weight: bold;
    font-size: 1.2em;
}

/* Listy numerowane */
.prose ol {
    margin-bottom: 2rem;
    margin-top: 1rem;
    padding-left: 0;
    counter-reset: list-counter;
}

.prose ol li {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    line-height: 1.6;
    list-style: none;
    counter-increment: list-counter;
}

.prose ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6; /* blue-500 */
    font-weight: bold;
    min-width: 2rem;
}

/* Zagnieżdżone listy */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose ul ul li::before {
    content: "◦";
    color: #6b7280; /* gray-500 */
}

/* Linki */
.prose a {
    color: #3b82f6; /* blue-500 */
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: #1d4ed8; /* blue-700 */
    text-decoration-color: #1d4ed8;
}

/* Tekst pogrubiony */
.prose strong {
    font-weight: 700;
    color: #1f2937; /* gray-800 */
}

/* Tekst pochylony */
.prose em {
    font-style: italic;
    color: #4b5563; /* gray-600 */
}

/* Cytaty */
.prose blockquote {
    border-left: 4px solid #3b82f6; /* blue-500 */
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563; /* gray-600 */
    background-color: #f8fafc; /* slate-50 */
    padding: 1.5rem;
    border-radius: 0.5rem;
}

/* Kod inline */
.prose code {
    background-color: #f1f5f9; /* slate-100 */
    color: #e11d48; /* rose-600 */
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, Inconsolata, "Liberation Mono", "Consolas", monospace;
}

/* Bloki kodu */
.prose pre {
    background-color: #1f2937; /* gray-800 */
    color: #f9fafb; /* gray-50 */
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

/* Tabele */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.prose th {
    background-color: #3b82f6; /* blue-500 */
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.prose td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.prose tr:nth-child(even) {
    background-color: #f9fafb; /* gray-50 */
}

/* Linie poziome */
.prose hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 3rem 0;
}

/* Obrazki */
.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

.prose a,
.prose a strong {
    color: #ea580c !important;
}

/* Podpisy pod obrazkami */
.prose figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280; /* gray-500 */
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsywność */
@media (max-width: 768px) {
    .prose h2 {
        font-size: 1.5rem; /* text-2xl */
        margin-top: 2rem;
    }

    .prose h3 {
        font-size: 1.25rem; /* text-xl */
        margin-top: 1.5rem;
    }

    .prose ul li,
    .prose ol li {
        padding-left: 1.5rem;
    }

    .prose ol li::before {
        min-width: 1.5rem;
    }
}