/* blog.css — dobudowane style dla /blog/, ładowane RAZEM z ../style.css.
   Nie redefiniuje zmiennych z :root ani istniejących klas (.link-card,
   .link-card-of, .link-card-sensoria, .bg-bubbles, .bubble, .ios-overlay*) —
   tylko nowe selektory potrzebne stronom bloga. */

/* Strony bloga nie używają GSAP (wydajność na ~195 stronach treści), więc
   trzeba nadpisać flex-centrujący layout body ze style.css (zaprojektowany
   pod jeden, krótki .container) i włączyć zwykły, przewijalny układ. */
body.blog-page {
    display: block;
    align-items: normal;
    justify-content: normal;
    min-height: auto;
    padding: 30px 15px 60px;
}

.blog-page-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   BANER (OF + Sensoria) — nad treścią na każdej stronie bloga
   ========================================================================== */
.blog-banner-wrap {
    max-width: 460px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pełnoprawny baner ze zdjęciem — zdjęcie wypełnia kartę, na dole
   gradientowa nakładka (w kolorach --of-gradient / --sensoria-gradient,
   żeby zachować spójność z resztą strony) z tekstem CTA i przyciskiem. */
.banner-photo {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 175, 204, 0.3);
}

.banner-photo-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.banner-photo:hover .banner-photo-img {
    transform: scale(1.03);
}

/* Górny baner (OF) — większy */
.banner-photo-of .banner-photo-img {
    aspect-ratio: 4 / 3;
}

/* Dolny baner (Sensoria) — mniejszy */
.banner-photo-sensoria .banner-photo-img {
    aspect-ratio: 16 / 6;
}

.banner-photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 143, 204, 0.95) 0%, rgba(0, 175, 240, 0.75) 60%, transparent 100%);
}

.banner-photo-overlay-sensoria {
    background: linear-gradient(to top, rgba(155, 79, 142, 0.95) 0%, rgba(223, 61, 100, 0.75) 60%, transparent 100%);
}

.banner-photo-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.banner-photo-sensoria .banner-photo-title {
    font-size: 0.85rem;
}

.banner-photo-cta {
    flex-shrink: 0;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.25);
    border: 1.5px solid #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

@keyframes banner-pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 175, 204, 0.35); }
    50% { box-shadow: 0 4px 26px rgba(255, 175, 204, 0.8); }
}

.banner-pulse {
    animation: banner-pulse-glow 2s ease-in-out infinite;
}

/* ==========================================================================
   Wejściowa animacja CSS (zamiennik GSAP na stronach bloga)
   ========================================================================== */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

body.blog-page .link-card,
body.blog-page .banner-photo {
    animation: fade-in-up 0.6s ease-out both;
}

body.blog-page .banner-photo-sensoria {
    animation-delay: 0.1s;
}

body.blog-page .article-shell,
body.blog-page .blog-index-shell {
    animation: fade-in-up 0.6s ease-out both;
    animation-delay: 0.15s;
}

@keyframes bubble-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -40px); }
}

/* ==========================================================================
   Treść artykułu
   ========================================================================== */
.article-shell {
    background: var(--card-white);
    max-width: 680px;
    margin: 0 auto;
    padding: 35px 28px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(255, 175, 204, 0.3);
    text-align: left;
}

.article-content h1 {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    line-height: 1.3;
    text-align: center;
    margin-bottom: 18px;
}

.article-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-pink);
    padding-left: 10px;
    margin: 26px 0 12px;
}

.article-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
    opacity: 0.92;
}

.article-content .intro-text {
    font-size: 1rem;
    opacity: 1;
}

.article-content a,
.internal-links a.inline-of-link,
.inline-of-link {
    color: var(--of-light-blue);
    font-weight: 600;
    text-decoration: underline;
}

.inline-sensoria-link {
    color: #df3d64;
    font-weight: 600;
    text-decoration: underline;
}

/* "Ludzie szukają też jako" — realne dane per strona (keyword_variants) */
.keyword-variants {
    background: var(--bg-pink);
    border-radius: 15px;
    padding: 14px 16px;
    margin: 20px 0;
}

.keyword-variants p {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.keyword-variants ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.keyword-variants li {
    background: white;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
}

/* "Podobne artykuły" / "Zobacz też" */
.internal-links {
    margin-top: 28px;
}

.internal-links h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-pink);
    padding-left: 10px;
    margin: 0 0 12px;
}

.internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.internal-links a {
    display: block;
    text-decoration: none;
    background: var(--bg-pink);
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.internal-links a:hover {
    background: white;
    border: 2px solid var(--accent-pink);
}

/* ==========================================================================
   Strona główna bloga (index)
   ========================================================================== */
.blog-index-shell {
    text-align: center;
}

.blog-section-heading {
    font-family: 'Pacifico', cursive;
    color: var(--accent-pink);
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-width: 680px;
    margin: 0 auto 20px;
}

.blog-grid .link-card {
    font-size: 0.82rem;
    text-align: center;
    padding: 14px 10px;
}

/* ==========================================================================
   Reduced motion — wyłącz wszystkie dekoracyjne animacje
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .banner-pulse,
    body.blog-page .link-card,
    body.blog-page .banner-photo,
    body.blog-page .article-shell,
    body.blog-page .blog-index-shell,
    .bubble {
        animation: none !important;
    }
}
