/* Kemet Blog Styles - Professional Blog Design */

/* Blog Main Container */
.kemet-blog-main {
    background-color: #f1e6db;
    background-image: url('../images/kemet-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Blog Header */
.kemet-blog-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 3rem;
}

.kemet-blog-header h1 {
    background: linear-gradient(135deg, #3A4532 0%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-bottom: 1rem;
}

.kemet-blog-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #c8906b 100%);
    border-radius: 2px;
}

/* Blog Grid */
.kemet-blog-grid {
    position: relative;
    z-index: 2;
}

.kemet-blog-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(58, 69, 50, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.kemet-blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37 0%, #c8906b 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.kemet-blog-card:hover::before {
    transform: scaleX(1);
}

.kemet-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(58, 69, 50, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Blog Image */
.kemet-blog-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

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

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

/* Blog Content */
.kemet-blog-card h3 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.kemet-blog-card h3 a {
    color: #3A4532;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kemet-blog-card h3 a:hover {
    color: #c8906b;
}

/* Post Meta */
.kemet-blog-card .wp-block-group:has(.wp-block-post-date) {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.kemet-blog-card .wp-block-post-date,
.kemet-blog-card .wp-block-post-author {
    color: #8b7355;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Post Excerpt */
.kemet-blog-card .wp-block-post-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.kemet-blog-card .wp-block-post-excerpt p {
    color: #707070;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Categories */
.kemet-blog-card .wp-block-post-terms {
    margin-top: 1rem;
}

.kemet-blog-card .wp-block-post-terms a {
    color: #c8906b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: rgba(200, 144, 107, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.kemet-blog-card .wp-block-post-terms a:hover {
    background: #c8906b;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Pagination */
.wp-block-query-pagination {
    margin-top: 3rem;
    text-align: center;
}

.wp-block-query-pagination .wp-block-query-pagination-previous,
.wp-block-query-pagination .wp-block-query-pagination-next {
    background: #c8906b;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.5rem;
}

.wp-block-query-pagination .wp-block-query-pagination-previous:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover {
    background: #3A4532;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 69, 50, 0.2);
}

.wp-block-query-pagination .wp-block-query-pagination-numbers {
    margin: 0 1rem;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers a {
    color: #8b7355;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.wp-block-query-pagination .wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination .wp-block-query-pagination-numbers .current {
    background: #3A4532;
    color: #ffffff;
}

/* Blog CTA Section */
.kemet-blog-cta {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(58, 69, 50, 0.05) 0%, rgba(200, 144, 107, 0.05) 100%);
    border-radius: 16px;
    margin-top: 3rem;
    padding: 3rem 2rem;
    text-align: center;
}

.kemet-blog-cta h2 {
    margin-bottom: 1rem;
    position: relative;
}

.kemet-blog-cta h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37 0%, #c8906b 100%);
    border-radius: 2px;
}

.kemet-blog-cta p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #8b7355;
}

/* CTA Buttons */
.kemet-blog-cta .wp-block-button__link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kemet-blog-cta .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.kemet-blog-cta .wp-block-button__link:hover::before {
    left: 100%;
}

.kemet-blog-cta .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 69, 50, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .kemet-blog-main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .kemet-blog-header h1 {
        font-size: 2.5rem;
    }
    
    .kemet-blog-card {
        margin-bottom: 1.5rem;
    }
    
    .kemet-blog-image img {
        height: 180px;
    }
    
    .kemet-blog-cta {
        padding: 2rem 1rem;
    }
    
    .kemet-blog-cta .wp-block-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kemet-blog-cta .wp-block-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kemet-blog-header h1 {
        font-size: 2rem;
    }
    
    .kemet-blog-header p {
        font-size: 1.2rem;
    }
    
    .kemet-blog-card {
        padding: 1rem;
    }
    
    .kemet-blog-image img {
        height: 160px;
    }
}

/* Animation for blog cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kemet-blog-card {
    animation: fadeInUp 0.6s ease-out;
}

.kemet-blog-card:nth-child(1) { animation-delay: 0.1s; }
.kemet-blog-card:nth-child(2) { animation-delay: 0.2s; }
.kemet-blog-card:nth-child(3) { animation-delay: 0.3s; }
.kemet-blog-card:nth-child(4) { animation-delay: 0.4s; }
.kemet-blog-card:nth-child(5) { animation-delay: 0.5s; }
.kemet-blog-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.kemet-blog-loading {
    text-align: center;
    padding: 3rem;
    color: #8b7355;
}

.kemet-blog-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #c8906b;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
