/* Kemet Blog Responsive Styles */

/* Mobile First Approach */
@media (max-width: 576px) {
    .kemet-blog-main {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .kemet-blog-header h1 {
        font-size: 2rem !important;
    }
    
    .kemet-blog-header p {
        font-size: 1.2rem !important;
    }
    
    .kemet-blog-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .kemet-blog-image img {
        height: 150px !important;
    }
    
    .kemet-blog-content h3 {
        font-size: 1.2rem !important;
    }
    
    .kemet-blog-content p {
        font-size: 0.9rem !important;
    }
    
    .kemet-blog-cta {
        padding: 1.5rem 1rem !important;
    }
    
    .kemet-blog-cta h2 {
        font-size: 1.8rem !important;
    }
    
    .kemet-blog-cta .wp-block-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .kemet-blog-cta .wp-block-button {
        width: 100% !important;
    }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
    .kemet-blog-main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .kemet-blog-header h1 {
        font-size: 2.5rem !important;
    }
    
    .kemet-blog-card {
        margin-bottom: 1.5rem;
    }
    
    .kemet-blog-image img {
        height: 180px !important;
    }
    
    .kemet-blog-content h3 {
        font-size: 1.4rem !important;
    }
    
    .kemet-blog-cta {
        padding: 2rem 1.5rem !important;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .kemet-blog-main {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .kemet-blog-header h1 {
        font-size: 3.5rem !important;
    }
    
    .kemet-blog-card {
        transition: all 0.3s ease;
    }
    
    .kemet-blog-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(58, 69, 50, 0.15);
    }
    
    .kemet-blog-image img {
        height: 200px !important;
        transition: transform 0.3s ease;
    }
    
    .kemet-blog-card:hover .kemet-blog-image img {
        transform: scale(1.05);
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .kemet-blog-main {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .kemet-blog-header h1 {
        font-size: 4rem !important;
    }
    
    .kemet-blog-image img {
        height: 220px !important;
    }
}

/* Print Styles */
@media print {
    .kemet-blog-main {
        background: white !important;
    }
    
    .kemet-blog-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .kemet-blog-cta {
        display: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .kemet-blog-card {
        border: 2px solid #3A4532 !important;
    }
    
    .kemet-blog-card:hover {
        border-color: #c8906b !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .kemet-blog-card,
    .kemet-blog-image img,
    .kemet-blog-cta .wp-block-button__link {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .kemet-blog-main {
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%) !important;
    }
    
    .kemet-blog-card {
        background: #1a1a1a !important;
        color: #ffffff !important;
        border-color: #444 !important;
    }
    
    .kemet-blog-card h3 a {
        color: #ffffff !important;
    }
    
    .kemet-blog-card p {
        color: #cccccc !important;
    }
}
