/**
 * Blog Styles
 * Ładowane TYLKO na home.php, archive.php, search.php
 * Core styles (resets, utilities) są w style.css
 * Version: 2.6
 */

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    margin-bottom: 1.7rem;
    padding-bottom: 0.3rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--accent);
    }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.1);
        z-index: -1;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s ease-in-out;
    }

    .btn:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }

/* Przyciski - tylko w sekcjach bloga, NIE w navbarze */
section .btn-primary,
footer .btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.4);
}

    section .btn-primary:hover,
    footer .btn-primary:hover {
        box-shadow: 0 7px 20px rgba(93, 64, 55, 0.6);
        transform: translateY(-3px);
        color: white;
    }

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-secondary:hover {
        background: rgba(93, 64, 55, 0.1);
        transform: translateY(-3px);
    }

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-centered {
    display: block;
    margin: 2rem auto;
    max-width: 250px;
}


/* ===== BLOG HERO SECTION ===== */
.blog-hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #F5F1E8 0%, #FEFEFE 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .blog-hero::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
        opacity: 0.4;
        z-index: 0;
    }

.blog-hero-content {
    position: relative;
    z-index: 1;
}

.blog-hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== BLOG LAYOUT ===== */
.blog-layout {
    padding: 5rem 0;
    background-color: var(--background);
}

.blog-container {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 3rem;
}

/* ===== BLOG POSTS ===== */
.blog-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--card-shadow), var(--glow);
    }

.blog-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

    .blog-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 3px 10px rgba(156, 175, 136, 0.3);
}

.blog-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    transition: var(--transition);
}

.blog-card:hover .blog-title {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.blog-author {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-date {
    display: flex;
    align-items: center;
}

    .blog-date i, .blog-author i {
        margin-right: 0.5rem;
        color: var(--primary);
    }

.blog-readmore {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

    .blog-readmore i {
        margin-left: 0.5rem;
        transition: transform 0.3s ease;
    }

    .blog-readmore:hover {
        color: var(--accent);
    }

        .blog-readmore:hover i {
            transform: translateX(5px);
        }

/* ===== FEATURED POST ===== */
.featured-post {
    margin-bottom: 3rem;
}

    .featured-post .blog-card {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 0;
        background: linear-gradient(135deg, #FEFEFE 0%, #FAF7F2 100%);
    }

    .featured-post .blog-image {
        height: 100%;
        min-height: 320px;
    }

    .featured-post .blog-content {
        padding: 2rem;
    }

    .featured-post .blog-title {
        font-size: 1.9rem;
        margin-bottom: 1rem;
    }

    .featured-post .blog-excerpt {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--accent), #8B6F47);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
    z-index: 1;
    text-transform: uppercase;
}

/* ===== BLOG SIDEBAR ===== */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(93, 64, 55, 0.1);
    position: relative;
}

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 50px;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--accent));
    }

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(93, 64, 55, 0.1);
    }

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

    .search-btn:hover {
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        transform: translateY(-50%) scale(1.05);
    }

.categories-list {
    list-style: none;
}

    .categories-list li {
        margin-bottom: 0.8rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 0.8rem;
    }

        .categories-list li:last-child {
            margin-bottom: 0;
            border-bottom: none;
            padding-bottom: 0;
        }

    .categories-list a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: var(--transition);
    }

        .categories-list a:hover {
            color: var(--accent);
            padding-left: 5px;
        }

.category-count {
    background: rgba(93, 64, 55, 0.1);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.categories-list a:hover .category-count {
    background: var(--primary);
    color: white;
}

.recent-post {
    display: flex;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

    .recent-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.recent-post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

    .recent-post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.recent-post:hover .recent-post-image img {
    transform: scale(1.05);
}

.recent-post-content {
    flex-grow: 1;
}

.recent-post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    transition: var(--transition);
}

.recent-post:hover .recent-post-title {
    color: var(--accent);
}

.recent-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

    .recent-post-date i {
        margin-right: 0.5rem;
        color: var(--primary);
    }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

    .tag-cloud .tag, .tag-cloud a {
        background: rgba(93, 64, 55, 0.1);
        color: var(--primary);
        padding: 0.4rem 1rem;
        border-radius: 50px;
        font-size: 0.9rem;
        transition: var(--transition);
    }

        .tag-cloud .tag:hover, .tag-cloud a:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-3px);
        }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
    gap: 0.5rem;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

    .page-link:hover, .page-link.active {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(93, 64, 55, 0.4);
    }

    .page-link i {
        font-size: 0.9rem;
    }

/* ===== FOOTER ===== */
/* Footer styles są ładowane z shared-footer.css */

/* ===== FLOATING ELEMENTS ===== */
.floating-elements {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

    .floating-btn:hover {
        transform: scale(1.1);
    }

.whatsapp-btn {
    background: #25D366;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .featured-post .blog-card {
        grid-template-columns: 1fr;
    }

    .featured-post .blog-image {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .blog-hero {
        padding: 8rem 0 4rem;
    }

    .blog-hero-subtitle {
        font-size: 1.2rem;
    }

    .blog-title {
        font-size: 1.4rem;
    }

    .blog-image {
        height: 220px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-posts {
        gap: 2rem;
    }

    /* Skróć excerpt na tabletach */
    .blog-excerpt {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .floating-elements {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .subtitle .ai-support {
        display: block;
        margin-top: 3px;
    }

    /* Padding footera jest zarządzany przez shared-footer.css */
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .blog-hero {
        padding: 7rem 0 3rem;
    }

    .blog-layout {
        padding: 3rem 0;
    }

    .blog-posts {
        gap: 1.5rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-image {
        height: 150px;
    }

    /* Zmniejsz tytuł na kartach bloga */
    .blog-title {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    /* Ukryj podgląd tekstu na mobile */
    .blog-excerpt {
        display: none;
    }

    /* Zmniejsz meta informacje */
    .blog-meta {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .blog-author {
        margin-right: 1rem;
    }

    /* Zmniejsz link "Czytaj więcej" */
    .blog-readmore {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* Zmniejsz odstęp dla badge'a kategorii */
    .blog-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
        margin-bottom: 0.8rem;
    }

    /* Również dla featured post */
    .featured-post .blog-image {
        height: 180px;
    }

    .featured-post .blog-title {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .pagination {
        margin-top: 2rem;
    }

    /* Padding footera jest zarządzany przez shared-footer.css */
}
/* ===== Ukryj elementy cache ===== */
ls-content,
.ls-content,
[ls-content] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ===== Navbar z-index ===== */

/* ===== Ukryj elementy cache i GetResponse ===== */
ls-content,
.ls-content,
[ls-content],
getresponse-form,
.getresponse-form,
[id*="getresponse"],
[class*="getresponse"],
#newsletterModal,
.modal[aria-hidden="true"],
.modal-content.gr-only {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
