/* Blog app styles - niezależne od Tailwinda, dopasowane do Dataloop */
.blog-page {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at 18% 28%, rgba(253, 186, 116, .22), transparent 34%),
        linear-gradient(180deg, #f5f7fb 0%, #f9fafb 100%);
    color: #1f2937;
}

.blog-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-hero {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 16%, rgba(249, 115, 22, .15), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(245, 158, 11, .05), transparent 24%),
        radial-gradient(circle at 72% 82%, rgba(251, 146, 60, .08), transparent 22%),
        linear-gradient(135deg, #23160f 0%, #2a1a12 34%, #302015 62%, #1d1410 100%);
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(39, 24, 16, .10), rgba(24, 15, 10, .14)),
        linear-gradient(90deg, rgba(249, 115, 22, .05), rgba(255, 255, 255, 0) 42%, rgba(245, 158, 11, .05) 100%);
}

.blog-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 214, 170, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 214, 170, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.75));
}


.blog-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
}

.blog-hero-glow-1 {
    width: 420px;
    height: 420px;
    left: -120px;
    top: -150px;
    background: rgba(249, 115, 22, .12);
}

.blog-hero-glow-2 {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -80px;
    background: rgba(251, 191, 36, .08);
}

.blog-hero-glow-3 {
    width: 340px;
    height: 340px;
    right: 18%;
    bottom: -170px;
    background: rgba(251, 146, 60, .08);
}

.blog-hero-line {
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: min(860px, calc(100% - 80px));
    height: 106px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .42;
}

.blog-hero-line::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 20px;
    height: 2px;
    background: linear-gradient(90deg, rgba(251,146,60,.08), rgba(251,146,60,.24), rgba(251,146,60,.08));
}

.blog-hero-line span {
    position: absolute;
    bottom: 21px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdba74, #f97316);
    box-shadow: 0 0 0 5px rgba(249,115,22,.14);
}

.blog-hero-line span:nth-child(1) { left: 7%; bottom: 26px; }
.blog-hero-line span:nth-child(2) { left: 24%; bottom: 46px; }
.blog-hero-line span:nth-child(3) { left: 41%; bottom: 36px; }
.blog-hero-line span:nth-child(4) { left: 58%; bottom: 64px; }
.blog-hero-line span:nth-child(5) { left: 76%; bottom: 56px; }
.blog-hero-line span:nth-child(6) { left: 92%; bottom: 78px; }

.blog-hero-line span::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 2px;
    left: -155px;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    transform-origin: right center;
    background: linear-gradient(90deg, rgba(251,146,60,.05), rgba(251,146,60,.5));
}

.blog-hero-line span:nth-child(1)::before { display: none; }
.blog-hero-line span:nth-child(2)::before { transform: translateY(-50%) rotate(-8deg); }
.blog-hero-line span:nth-child(3)::before { transform: translateY(-50%) rotate(4deg); }
.blog-hero-line span:nth-child(4)::before { transform: translateY(-50%) rotate(-10deg); }
.blog-hero-line span:nth-child(5)::before { transform: translateY(-50%) rotate(4deg); }
.blog-hero-line span:nth-child(6)::before { transform: translateY(-50%) rotate(-8deg); }


.blog-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 128px;
    text-align: center;
    color: #fff;
}

.blog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #fb923c;
}

.blog-hero h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    font-size: clamp(42px, 5.6vw, 76px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.blog-hero p:not(.blog-eyebrow) {
    max-width: 760px;
    margin: 0 auto;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.55;
}

.blog-section {
    padding: 76px 0 96px;
}

.blog-section-heading {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.blog-section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.045em;
    background: linear-gradient(90deg, #f97316, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 18px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: stretch;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .09);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, .24);
    box-shadow: 0 26px 62px rgba(15, 23, 42, .14);
}

.blog-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform .55s ease;
}

.blog-card:hover .blog-card-cover img {
    transform: scale(1.045);
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px 28px 24px;
}

.blog-card-meta-top {
    min-height: 28px;
    margin-bottom: 13px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    transition: background-color .2s ease, color .2s ease;
}

.blog-tag:hover {
    background: #ffedd5;
    color: #c2410c;
}

.blog-tag-muted {
    color: #64748b;
    background: #f1f5f9;
}

.blog-tag svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.blog-card-title {
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.22;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.blog-card-title a:hover {
    color: #ea580c;
}

.blog-card-excerpt {
    margin: 0 0 24px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 4px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.blog-author-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #f97316, #ea580c);
    box-shadow: 0 12px 26px rgba(249, 115, 22, .2);
}

.blog-author-avatar svg {
    width: 21px;
    height: 21px;
}

.blog-author-copy {
    min-width: 0;
}

.blog-author-copy p {
    margin: 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-author-copy span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 500;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    color: #ea580c;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.blog-read-more:hover {
    color: #c2410c;
    transform: translateX(2px);
}

.blog-read-more svg {
    width: 16px;
    height: 16px;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 44px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.blog-empty h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
}

.blog-empty p {
    margin: 0;
    color: #64748b;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 46px;
    flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.blog-pagination a {
    color: #ea580c;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.blog-pagination a:hover {
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateY(-1px);
}


@media (max-width: 900px) {
    .blog-hero-line {
        width: calc(100% - 42px);
        height: 76px;
        bottom: 10px;
    }

    .blog-hero-line span::before {
        width: 120px;
        left: -115px;
    }
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-container {
        width: min(680px, calc(100% - 34px));
    }
}

@media (max-width: 640px) {
    .blog-hero {
        min-height: 320px;
    }

    .blog-hero-line {
        display: none;
    }

    .blog-hero-content {
        padding: 56px 0 64px;
    }

    .blog-section {
        padding: 56px 0 72px;
    }

    .blog-section-heading {
        margin-bottom: 30px;
    }

    .blog-card-body {
        padding: 20px 18px 18px;
    }

    .blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .blog-read-more {
        align-self: flex-start;
    }
}

/* Blog detail - bez Tailwinda, dopasowane do Dataloop */
.blog-detail-page {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at 18% 24%, rgba(253, 186, 116, .16), transparent 32%),
        linear-gradient(180deg, #f5f7fb 0%, #f9fafb 100%);
    color: #1f2937;
}

.blog-detail-hero {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 16%, rgba(249, 115, 22, .15), transparent 26%),
        radial-gradient(circle at 86% 18%, rgba(245, 158, 11, .10), transparent 24%),
        radial-gradient(circle at 72% 82%, rgba(251, 146, 60, .08), transparent 22%),
        linear-gradient(135deg, #23160f 0%, #2a1a12 34%, #302015 62%, #1d1410 100%);
}

.blog-detail-hero-with-cover {
    min-height: 350px;
    background: #1d1410;
}

.blog-detail-hero-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    filter: saturate(.92) contrast(.95);
}

.blog-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(24, 15, 10, .44), rgba(24, 15, 10, .72)),
        linear-gradient(90deg, rgba(249, 115, 22, .15), rgba(255,255,255,0) 42%, rgba(245, 158, 11, .10));
}

.blog-detail-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 214, 170, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 214, 170, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.75));
}

.blog-detail-hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
}

.blog-detail-hero-glow-1 {
    width: 410px;
    height: 410px;
    left: -140px;
    top: -170px;
    background: rgba(249, 115, 22, .12);
}

.blog-detail-hero-glow-2 {
    width: 340px;
    height: 340px;
    right: -120px;
    top: -90px;
    background: rgba(251, 191, 36, .08);
}

.blog-detail-hero-line {
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: min(700px, calc(100% - 80px));
    height: 74px;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .34;
}

.blog-detail-hero-line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    height: 2px;
    background: linear-gradient(90deg, rgba(251,146,60,.06), rgba(251,146,60,.20), rgba(251,146,60,.06));
}

.blog-detail-hero-line span {
    position: absolute;
    bottom: 19px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdba74, #f97316);
    box-shadow: 0 0 0 5px rgba(249,115,22,.12);
}

.blog-detail-hero-line span:nth-child(1) { left: 8%; bottom: 24px; }
.blog-detail-hero-line span:nth-child(2) { left: 30%; bottom: 42px; }
.blog-detail-hero-line span:nth-child(3) { left: 50%; bottom: 34px; }
.blog-detail-hero-line span:nth-child(4) { left: 70%; bottom: 58px; }
.blog-detail-hero-line span:nth-child(5) { left: 92%; bottom: 48px; }

.blog-detail-hero-line span::before {
    content: "";
    position: absolute;
    width: 145px;
    height: 2px;
    left: -140px;
    top: 50%;
    transform: translateY(-50%) rotate(-9deg);
    transform-origin: right center;
    background: linear-gradient(90deg, rgba(251,146,60,.04), rgba(251,146,60,.36));
}

.blog-detail-hero-line span:nth-child(1)::before { display: none; }
.blog-detail-hero-line span:nth-child(3)::before { transform: translateY(-50%) rotate(4deg); }
.blog-detail-hero-line span:nth-child(4)::before { transform: translateY(-50%) rotate(-10deg); }
.blog-detail-hero-line span:nth-child(5)::before { transform: translateY(-50%) rotate(4deg); }

.blog-detail-hero-content {
    position: relative;
    z-index: 1;
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    padding: 72px 0 104px;
    text-align: center;
    color: #fff;
}

.blog-detail-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    color: #fed7aa;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    transition: color .2s ease, transform .2s ease;
}

.blog-detail-back-link:hover {
    color: #fff7ed;
    transform: translateX(-2px);
}

.blog-detail-hero h1 {
    max-width: 860px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.blog-detail-hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.blog-detail-hero-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, .13);
    border: 1px solid rgba(253, 186, 116, .18);
    font-size: 12px;
    font-weight: 800;
    transition: background-color .2s ease, color .2s ease;
}

.blog-detail-hero-tags a:hover {
    color: #fff7ed;
    background: rgba(249, 115, 22, .22);
}

.blog-detail-section {
    padding: 56px 0 86px;
}

.blog-detail-container {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
}

.blog-detail-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .95);
    box-shadow: 0 20px 54px rgba(15, 23, 42, .10);
    padding: clamp(24px, 4vw, 44px);
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.blog-detail-author .blog-author-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 15px;
}

.blog-detail-content {
    color: #1f2937;
    font-size: 16px;
    line-height: 1.8;
}

.blog-detail-content > *:first-child {
    margin-top: 0;
}

.blog-detail-content > *:last-child {
    margin-bottom: 0;
}

.blog-detail-content p {
    margin: 0 0 1.15em;
    color: #374151;
}

.blog-detail-content h2,
.blog-detail-content h3,
.blog-detail-content h4 {
    color: #111827;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.blog-detail-content h2 {
    margin: 1.65em 0 .65em;
    font-size: clamp(25px, 3vw, 34px);
}

.blog-detail-content h3 {
    margin: 1.45em 0 .55em;
    font-size: clamp(21px, 2.4vw, 27px);
}

.blog-detail-content h4 {
    margin: 1.25em 0 .45em;
    font-size: 19px;
}

.blog-detail-content a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(234, 88, 12, .28);
    text-underline-offset: 3px;
}

.blog-detail-content a:hover {
    color: #c2410c;
    text-decoration-color: currentColor;
}

.blog-detail-content strong,
.blog-detail-content b {
    color: #111827;
    font-weight: 800;
}

.blog-detail-content ul,
.blog-detail-content ol {
    margin: 1em 0 1.25em 1.35em;
    padding-left: 1.1em;
    color: #374151;
}

.blog-detail-content ul {
    list-style: disc;
}

.blog-detail-content ol {
    list-style: decimal;
}

.blog-detail-content li {
    margin: .35em 0;
    padding-left: .15em;
}

.blog-detail-content blockquote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-left: 4px solid #f97316;
    border-radius: 16px;
    background: #fff7ed;
    color: #475569;
    font-weight: 600;
}

.blog-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em auto;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .12);
}

.blog-detail-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    font-size: 14px;
}

.blog-detail-content th,
.blog-detail-content td {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.blog-detail-content th {
    background: #fff7ed;
    color: #111827;
    font-weight: 800;
}

.blog-detail-tags-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
    padding-top: 0;
    border-top: 0;
}

.blog-detail-tags-bottom .blog-tag {
    min-height: 24px;
    padding: 5px 10px;
    font-size: 12px;
}

.blog-detail-post-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding-top: 0;
    border-top: 0;
}

.blog-detail-post-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.blog-detail-nav-link,
.blog-detail-return-link {
    color: #ea580c;
    font-size: 14px;
    font-weight: 800;
    transition: color .2s ease, transform .2s ease;
}

.blog-detail-nav-link:hover,
.blog-detail-return-link:hover {
    color: #c2410c;
}

.blog-detail-return-link:hover {
    transform: translateX(-2px);
}

.blog-related-section {
    padding: 0 0 92px;
}

.blog-related-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.blog-related-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #f97316, #fb923c, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-related-heading p,
.blog-related-date {
    margin: 0;
    color: #64748b;
}

.blog-related-date {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .blog-detail-hero,
    .blog-detail-hero-with-cover {
        min-height: 310px;
    }

    .blog-detail-hero-content {
        padding: 58px 0 76px;
    }

    .blog-detail-hero-line {
        display: none;
    }

    .blog-detail-section {
        padding: 38px 0 68px;
    }

    .blog-detail-container {
        width: min(680px, calc(100% - 28px));
    }

    .blog-detail-card {
        border-radius: 20px;
    }

    .blog-detail-meta {
        margin-bottom: 24px;
    }

    .blog-detail-content {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .blog-detail-post-nav {
        align-items: flex-start;
        flex-direction: column;
    }
}
