/* ========================================
   CHEBIG BLOG SECTION - WordPress Integration
   ======================================== */

.chebig-blog-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fef3c7 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric shapes for blog section */
.chebig-blog-section::before {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    top: 5%;
    right: 8%;
    opacity: 0.5;
    filter: blur(30px);
    animation: rotate-shape 20s infinite ease-in-out;
}

.chebig-blog-section::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    bottom: 10%;
    left: 10%;
    opacity: 0.48;
    filter: blur(25px);
    animation: rotate-reverse 18s infinite ease-in-out;
}

.chebig-blog-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.chebig-blog-filter-btn {
    padding: 0.875rem 1.75rem;
    border: 2px solid rgba(217, 119, 6, 0.3);
    background: white;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #78350f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.1);
}

.chebig-blog-filter-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.chebig-blog-filter-btn.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.chebig-blog-filter-btn i {
    font-size: 1rem;
}

.chebig-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.chebig-blog-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Article Card */
.chebig-article-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(251, 191, 36, 0.1);
    cursor: pointer;
}

.chebig-article-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(120, 53, 15, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
}

.article-image {
    position: relative;
    padding-top: 60%;
    background: #fef3c7;
    overflow: hidden;
}

.article-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.chebig-article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chebig-article-card:hover .article-overlay {
    opacity: 1;
}

.article-read-btn {
    background: white;
    color: #f59e0b;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transform: translateY(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chebig-article-card:hover .article-read-btn {
    transform: translateY(0);
}

.article-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-badge.chemia { background: #8b5cf6; }
.article-badge.biologia { background: #10b981; }
.article-badge.geografia { background: #3b82f6; }
.article-badge.zaujimavosti { background: #f59e0b; }
.article-badge.tipy { background: #ec4899; }
.article-badge.novinky { background: #06b6d4; }
.article-badge.general { background: #6b7280; }

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #78350f;
    opacity: 0.8;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.article-meta i {
    font-size: 0.875rem;
    color: #f59e0b;
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #78350f;
    line-height: 1.3;
    font-weight: 800;
}

.article-excerpt {
    color: #92400e;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.chebig-article-card:hover .article-link {
    gap: 1rem;
}

.article-link i {
    transition: transform 0.3s ease;
}

.chebig-article-card:hover .article-link i {
    transform: translateX(5px);
}

/* Load More Button */
.chebig-blog-load-more {
    display: block;
    margin: 0 auto;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.chebig-blog-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

.chebig-blog-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chebig-blog-load-more i {
    margin-left: 0.5rem;
}

/* Empty states */
.chebig-no-posts,
.chebig-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.chebig-no-posts i,
.chebig-error i {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.chebig-no-posts p,
.chebig-error p {
    font-size: 1.25rem;
    color: #92400e;
}

/* Responsive */
@media (max-width: 768px) {
    .chebig-blog-grid {
        grid-template-columns: 1fr;
    }

    .chebig-blog-filters {
        gap: 0.75rem;
    }

    .chebig-blog-filter-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .article-title {
        font-size: 1.25rem;
    }
}
