/* ==========================================================================
   STYLE DEDYKOWANE: BLOG & SINGLE POST (SHARP BRAND EDITION)
   ========================================================================== */

/* --- 1. HERO --- */
.blog-page .blog-hero {
    padding: 118px 20px 20px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(106, 13, 173, 0.05) 0%, transparent 70%);
    border-bottom: none;
}
.blog-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    box-sizing: border-box;
}
.blog-page-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6A0DAD;
    font-weight: 700;
}
.blog-page-hero .hero-title {
    margin-bottom: 10px;
}
.blog-page-hero .hero-desc {
    margin: 0 auto 14px;
    font-size: 1.05rem;
    max-width: 620px;
    color: rgba(15, 18, 25, 0.72);
}
.text-gradient-ocean {
    background: linear-gradient(135deg, var(--color-accent-1, #6A0DAD) 0%, var(--color-accent-2, #0047ab) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.blog-search {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid rgba(106, 13, 173, 0.15);
    background: #fff;
    box-shadow: none;
}
.blog-search i {
    color: var(--color-accent-1, #6A0DAD);
    font-style: normal;
}
.blog-search input {
    border: none;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 1rem;
    background: transparent;
    padding: 0;
}
.category-bar--blog {
    padding: 6px 0 12px;
}
.section-blog-list {
    padding: 28px 0 72px;
    background: var(--bg-light, #f8fafc);
}
.blog-empty {
    text-align: center;
    padding: 60px 20px;
}
.blog-empty i {
    font-size: 2.5rem;
    color: #6A0DAD;
    margin-bottom: 16px;
    display: block;
}
.blog-empty h2 {
    margin-bottom: 8px;
}
.blog-empty p {
    color: rgba(15, 18, 25, 0.62);
}

.blog-hero {
    padding: 160px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(106, 13, 173, 0.05) 0%, transparent 70%);
}
.hero-title { 
    font-size: clamp(2.2rem, 4vw, 3.5rem); 
    margin-bottom: 20px; 
    line-height: 1.2; 
    color: var(--color-dark); 
    font-family: var(--font-head); 
    font-weight: 700; 
}
.hero-desc { 
    font-size: 1.1rem; 
    color: var(--color-dark); 
    max-width: 650px; 
    margin: 0 auto; 
    font-family: var(--font-body); 
}

/* --- 2. KATEGORIE --- */
.category-bar { padding: 20px 0 40px; text-align: center; }
.cat-wrapper {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    background: #fff; padding: 10px 15px; border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
    border: 1px solid rgba(15, 18, 25, 0.05); box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}
.cat-link {
    padding: 8px 20px; border-radius: 0; /* ZMIANA NA OSTRE KĄTY */ font-size: 0.85rem; font-weight: 700;
    color: var(--color-dark); font-family: var(--font-head); transition: 0.3s; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.5px;
}
.cat-link:hover, .cat-link.active {
    background: var(--bg-light); color: var(--color-accent-1); border-color: var(--color-accent-2);
}

/* --- 3. WYRÓŻNIONY WPIS --- */
.featured-post {
    display: grid; grid-template-columns: 1.3fr 1fr;
    background: #fff; border-radius: 0; /* ZMIANA NA OSTRE KĄTY */ overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(15, 18, 25, 0.05);
    border: 1px solid rgba(15, 18, 25, 0.05); text-decoration: none; transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); color: inherit;
}
.featured-post:hover { transform: translateY(-5px); box-shadow: 0 20px 50px -10px rgba(15, 18, 25, 0.15); border-color: rgba(106, 13, 173, 0.2); }
.fp-image { position: relative; height: 100%; min-height: 400px; overflow: hidden; }
.fp-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; border-radius: 0; }
.featured-post:hover .fp-image img { transform: scale(1.05); }
.fp-category {
    position: absolute; top: 25px; left: 25px; background: var(--color-accent-1); color: #fff;
    padding: 6px 15px; border-radius: 0; /* ZMIANA NA OSTRE KĄTY */ font-size: 0.7rem; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; z-index: 2;
}
.fp-content { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.fp-meta { font-size: 0.85rem; color: var(--color-dark); opacity: 0.7; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.fp-content h2 { font-size: 2rem; color: var(--color-dark); font-family: var(--font-head); font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.fp-content p { font-size: 1.05rem; color: var(--color-dark); font-family: var(--font-body); margin-bottom: 30px; line-height: 1.6; }
.read-more-btn { font-size: 0.9rem; font-weight: 700; font-family: var(--font-head); color: var(--color-accent-2); text-transform: uppercase; letter-spacing: 1px; }

/* --- 4. GRID WPISÓW --- */
.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 0;
    justify-items: stretch;
    align-items: start;
}
.b-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(15, 18, 25, 0.05);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px -10px rgba(15, 18, 25, 0.05);
    width: 100%;
    max-width: 100%;
}
.b-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px -10px rgba(15, 18, 25, 0.15); border-color: rgba(106, 13, 173, 0.2); }
.b-card-img {
    height: 220px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.b-card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; border-radius: 0; }
.b-card:hover .b-card-img img { transform: scale(1.05); }
.b-category {
    position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.95); color: var(--color-accent-1);
    padding: 5px 12px; border-radius: 0; /* ZMIANA NA OSTRE KĄTY */ font-size: 0.65rem; font-family: var(--font-head); font-weight: 700; text-transform: uppercase; border: 1px solid rgba(15, 18, 25, 0.05);
}
.b-category.blog-badge-academy {
    background: var(--color-accent-1);
    color: #fff;
    border-color: transparent;
}
.b-category.blog-badge-shop {
    background: var(--color-gold, #FDC500);
    color: var(--color-dark, #0F1219);
    border-color: transparent;
}
.b-card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.b-meta { font-size: 0.8rem; color: var(--color-dark); opacity: 0.6; font-family: var(--font-body); margin-bottom: 10px; }
.b-card-content h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--color-dark); font-family: var(--font-head); font-weight: 700; line-height: 1.4; }
.b-card-content p { font-size: 0.9rem; color: var(--color-dark); font-family: var(--font-body); margin-bottom: 20px; flex-grow: 1; }
.b-link { font-size: 0.8rem; font-weight: 700; color: var(--color-accent-2); font-family: var(--font-head); text-transform: uppercase; margin-top: auto; letter-spacing: 1px; }

.blog-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}
.blog-pagination a {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 18, 25, 0.12);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-head);
    color: var(--color-dark);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.blog-pagination a.active,
.blog-pagination a:hover {
    background: var(--color-accent-1);
    border-color: var(--color-accent-1);
    color: #fff;
}

/* ==========================================================================
   WIDOK POJEDYNCZEGO WPISU (SINGLE POST)
   ========================================================================== */

.single-post-container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 160px 25px 0 25px; 
    overflow: visible;
    font-family: var(--font-body);
}
.post-header { margin-bottom: 50px; text-align: center; }
.post-meta { margin-bottom: 20px; text-transform: uppercase; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; color: var(--color-dark); opacity: 0.7; }
.post-cat { color: var(--color-accent-2); font-weight: 700; margin-right: 15px; }
.post-title { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.2; font-family: var(--font-head); font-weight: 700; color: var(--color-dark); margin-bottom: 25px; }
.post-lead { font-size: 1.2rem; color: var(--color-dark); font-family: var(--font-body); line-height: 1.6; margin: 0 auto 40px; }

.post-main-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 20px 40px rgba(15, 18, 25, 0.1);
    border: 1px solid rgba(15, 18, 25, 0.05);
}
.post-main-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
}

.post-content {
    margin-bottom: 60px;
    width: 100%;
}
/* Style treści artykułu (zdjęcia, opływanie, nagłówki) → css/blog-content.css */

.post-footer { text-align: center; border-top: 1px solid rgba(15, 18, 25, 0.05); padding-top: 50px; margin-bottom: 80px; }

/* ==========================================================================
   5. NEWSLETTER "OCEANIC CARD" (FIRMOWY BRAND GRADIENT + KĄTY)
   ========================================================================== */

.newsletter-stripe {
    background: transparent; 
    padding: 40px 0 80px; 
    position: relative;
    z-index: 5;
}

/* Właściwa karta newslettera */
.newsletter-card {
    /* Zastosowano firmowy gradient z "o-mnie" oraz "oferty" */
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-accent-2) 100%);
    border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
    padding: 50px 60px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    box-shadow: 0 30px 60px -15px rgba(15, 18, 25, 0.3); 
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Dekoracja tła (Subtelna poświata z Manawa) */
.newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
    pointer-events: none;
}

/* Lewa strona (Tekst) */
.ns-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.ns-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ns-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    font-family: var(--font-body);
}

/* Prawa strona (Formularz) */
.ns-form {
    flex: 1.2;
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05); 
    padding: 8px;
    border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 550px;
}

.ns-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.ns-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ns-form button {
    background: #fff;
    color: var(--color-accent-1);
    font-weight: 700;
    font-family: var(--font-head); /* Wymuszony firmowy font dla buttona */
    padding: 15px 35px;
    border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ns-form button:hover {
    background: var(--color-accent-2); 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- RWD --- */
@media (max-width: 992px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }
    
    .ns-content p {
        margin: 0 auto;
    }

    .ns-form {
        width: 100%;
        flex-direction: column; 
        background: transparent;
        border: none;
        padding: 0;
    }

    .ns-form input {
        background: #fff;
        color: var(--color-dark);
        border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
        width: 100%;
        margin-bottom: 15px;
        border: 1px solid rgba(15, 18, 25, 0.1);
    }
    
    .ns-form input::placeholder {
        color: rgba(15, 18, 25, 0.5);
    }

    .ns-form button {
        width: 100%;
        background: var(--color-accent-2); 
        color: #fff;
    }
}

/* RWD - GRID I UKŁAD WPISÓW */
@media (max-width: 992px) {
    .featured-post { grid-template-columns: 1fr; }
    .fp-image { min-height: 250px; }
    .fp-content { padding: 30px; }
    .blog-list-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-stripe .container { flex-direction: column; text-align: center; }
    .ns-form { width: 100%; }
}
@media (max-width: 600px) {
    .blog-list-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RWD - POPRAWKI DLA POJEDYNCZEGO WPISU (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .single-post-container {
        padding-top: 110px; 
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-header {
        margin-bottom: 30px; 
    }

    .post-title {
        font-size: 2.2rem; 
    }

    .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Zdjęcie główne na pełną szerokość */
    .post-main-image {
        border-radius: 0; /* ZMIANA NA OSTRE KĄTY */
        margin-bottom: 40px;
    }
}