/* Shared image disclosure badge used by the homepage and blog article cards. */
.blog-ai-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #f8fafc;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transition: background .18s, border-color .18s;
}

.blog-ai-badge-icon {
    font-size: 11px;
    line-height: 1;
}

.blog-ai-badge-label {
    white-space: nowrap;
}

.blog-ai-badge:hover,
.blog-ai-badge:focus-visible {
    background: rgba(15, 23, 42, .92);
    border-color: rgba(255, 255, 255, .6);
}

@media (max-width: 640px) {
    .blog-ai-badge {
        right: 6px;
        bottom: 6px;
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Modal ujawniania AI ---------------------------------------------------- */
/* Reguly przeniesione z css/blog.css: modal otwiera plakietka .blog-ai-badge,
   ktora renderuja takze strony konsultantow i strona glowna - a te nie laduja
   blog.css. Badge i jego modal to jedna funkcja, wiec mieszkaja w jednym pliku. */
.blog-ai-modal {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .88);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.blog-ai-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.blog-ai-modal-inner {
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: 85vh;
    background: #fff;
    border: 1px solid #0f172a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.blog-ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: #0f172a;
    color: #f8fafc;
}

.blog-ai-modal-title {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.blog-ai-modal-close {
    padding: 0 2px;
    border: none;
    background: none;
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.blog-ai-modal-close:hover {
    color: #60a5fa;
}

.blog-ai-modal-body {
    padding: 22px 24px 26px;
    overflow-y: auto;
    color: #1f2937;
    font-size: .97rem;
    line-height: 1.7;
}

.blog-ai-modal-body p + p {
    margin-top: 12px;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .blog-ai-modal-body {
        padding: 18px 16px 22px;
        font-size: .93rem;
    }
}
