/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ===================================================================
 * Migrated out of functions.php wp_head hooks on 2026-06-10 (perf):
 * render-blocking inline <style> in <head> on every page → here, where
 * LiteSpeed minifies + combines + critical-CSS-defers it. Behaviour kept
 * identical (popular-posts CSS was ungated; recent-comments was is_rtl()).
 * =================================================================== */

/* --- Popular Posts widget (was popular_posts_widget_css, functions.php:3017) --- */
.popular-posts-widget {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.popular-post-card {
    display: flex;
    padding: 15px 15px;
    transition: background-color 0.3s ease;
    gap: 15px;
}
.popular-post-card:hover .post-title a {
    color: #ee212c;
}
.post-title-container {
    flex: 1;
    padding-left: 15px;
}
.post-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
    text-align: right;
}
.post-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: block;
}
.post-title a:hover {
    color: #007cba;
}
.post-image-container {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.post-image-container img {
    width: 150px;
    height: 85px !important;
    object-fit: cover;
    border-radius: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}
.popular-post-card:hover .post-image-container::before {
    opacity: 1;
}
.popular-post-card:hover .post-image-container img {
    transform: scale(1.15) rotate(1deg);
}
@media (min-width: 768px) and (max-width: 1024px) {
    .post-title {
        font-size: 24px;
    }
    .post-image-container img {
        width: 190px;
        height: 100px !important;
    }
}
@media (max-width: 768px) {
    .popular-post-card {
        padding: 12px 15px;
        gap: 12px;
    }
    .post-title {
        font-size: 20px;
        line-height: 1.3;
    }
    .post-title-container {
        padding-left: 12px;
    }
    .post-image-container img {
        width: 125px;
        height: 85px;
        border-radius: 0;
    }
    .popular-post-card:hover .post-image-container img {
        transform: scale(1.12) rotate(0.5deg);
    }
}
@media (max-width: 480px) {
    .popular-post-card {
        padding: 10px 12px;
        gap: 20px;
    }
    .post-title {
        font-size: 20px;
    }
    .post-image-container img {
        width: 125px;
        height: 70px !important;
        border-radius: 0;
    }
    .popular-post-card:hover .post-image-container img {
        transform: scale(1.1) rotate(0.3deg);
    }
}

/* --- Recent Comments widget RTL (was recent_comments_rtl_support, functions.php:3333; only applied when is_rtl()) --- */
[dir="rtl"] .recent-comments-widget {
    direction: rtl;
}
[dir="rtl"] .comment-meta {
    direction: rtl;
}
[dir="rtl"] .comment-author {
    direction: ltr;
}
