/*
 * FEATURE DEMOS: the plugin's own front-end CSS, scoped to .lk-fdemo.
 * GENERATED FILE - DO NOT EDIT BY HAND.
 *   source: theme-preview/gen_feature_demo_css.py
 *   plugin: C:/Users/build/Downloads/linkilo-main (1)/3.0
 * Loaded only on the feature pages whose hero carries a live demo.
 */

/* ---- Link preview tooltip (front end) -- css/link-preview.css ---- */
.lk-fdemo .link-preview-tooltip { position: absolute; z-index: 9999; display: none; box-sizing: border-box; padding: var(--linkilo-preview-padding, 10px); background-color: var(--linkilo-preview-bg-color, #ffffff); border-width: var(--linkilo-preview-border-width, 1px); border-style: var(--linkilo-preview-border-style, solid); border-color: var(--linkilo-preview-border-color, #cccccc); border-radius: var(--linkilo-preview-border-radius, 5px); max-width: var(--linkilo-preview-max-width, 300px); font-family: var(--linkilo-preview-font-family, inherit); }
.lk-fdemo .link-preview-tooltip img.preview-image, .lk-fdemo .link-preview-tooltip .image-placeholder { width: 100%; max-height: var(--linkilo-preview-img-max-height, 150px); object-fit: cover; margin-bottom: 10px; border-radius: var(--linkilo-preview-img-border-radius, 4px); display: block; }
.lk-fdemo .link-preview-tooltip .image-placeholder { background-color: var(--linkilo-preview-img-placeholder-bg, #e0e0e0); min-height: var(--linkilo-preview-img-min-height, 50px); display: flex; align-items: center; justify-content: center; color: #aaa; }
.lk-fdemo .link-preview-tooltip img.preview-image.img-left { float: left; width: var(--linkilo-preview-img-side-width, 40%); margin-right: 10px; margin-bottom: 5px; }
.lk-fdemo .link-preview-tooltip img.preview-image.img-right { float: right; width: var(--linkilo-preview-img-side-width, 40%); margin-left: 10px; margin-bottom: 5px; }
.lk-fdemo .link-preview-tooltip .title, .lk-fdemo .link-preview-tooltip .site-info, .lk-fdemo .link-preview-tooltip .description { clear: both; }
.lk-fdemo .link-preview-tooltip img.preview-image.img-left + *, .lk-fdemo .link-preview-tooltip img.preview-image.img-right + * { clear: none; }
.lk-fdemo .link-preview-tooltip > *:last-child { margin-bottom: 0; }
.lk-fdemo .link-preview-tooltip .title { font-size: var(--linkilo-preview-title-font-size, 16px); font-weight: var(--linkilo-preview-title-weight, bold); color: var(--linkilo-preview-title-color, #000000); text-align: var(--linkilo-preview-title-align, left); text-transform: var(--linkilo-preview-title-transform, none); margin-bottom: 6px; display: block; line-height: 1.3; word-wrap: break-word; }
.lk-fdemo .link-preview-tooltip .site-info { display: flex; align-items: center; margin-bottom: 8px; gap: 5px; }
.lk-fdemo .link-preview-tooltip .favicon { width: var(--linkilo-preview-favicon-size, 16px); height: var(--linkilo-preview-favicon-size, 16px); vertical-align: middle; display: inline-block; flex-shrink: 0; }
.lk-fdemo .link-preview-tooltip .hostname { font-size: var(--linkilo-preview-hostname-font-size, 12px); font-weight: var(--linkilo-preview-hostname-weight, normal); color: var(--linkilo-preview-hostname-color, #666666); font-style: var(--linkilo-preview-hostname-style, normal); display: inline; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-fdemo .link-preview-tooltip .description { font-size: var(--linkilo-preview-desc-font-size, 14px); font-weight: var(--linkilo-preview-desc-weight, normal); color: var(--linkilo-preview-desc-color, #333333); line-height: var(--linkilo-preview-desc-line-height, 1.4); text-align: var(--linkilo-preview-desc-align, left); margin-bottom: 10px; display: block; word-wrap: break-word; }
.lk-fdemo .link-preview-tooltip .cta-button { display: inline-block; background-color: var(--linkilo-preview-cta-bg-color, #4CAF50); color: var(--linkilo-preview-cta-text-color, #ffffff); font-size: var(--linkilo-preview-cta-font-size, 14px); font-weight: var(--linkilo-preview-cta-font-weight, normal); padding: var(--linkilo-preview-cta-padding-tb, 5px) var(--linkilo-preview-cta-padding-lr, 10px); border-radius: var(--linkilo-preview-cta-border-radius, 3px); text-decoration: none; text-align: center; margin-top: 10px; cursor: pointer; border: none; transition: opacity 0.2s ease; }
.lk-fdemo .link-preview-tooltip .cta-button:hover { opacity: 0.85; }
.lk-fdemo .link-preview-tooltip .close-button { position: absolute; top: var(--linkilo-preview-close-btn-top, 5px); right: var(--linkilo-preview-close-btn-right, 8px); font-size: var(--linkilo-preview-close-btn-size, 20px); line-height: 1; color: var(--linkilo-preview-close-btn-color, #888888); cursor: pointer; padding: 2px 5px; background-color: transparent; border: none; }
.lk-fdemo .link-preview-tooltip .close-button:hover { color: var(--linkilo-preview-close-btn-hover-color, #000000); }
.lk-fdemo .link-preview-tooltip.clickable { cursor: pointer; }
.lk-fdemo .link-preview-tooltip { animation-fill-mode: forwards; }
.lk-fdemo .fade-in { animation-name: linkiloFadeIn; }
.lk-fdemo .slide-in { animation-name: linkiloSlideIn; }
.lk-fdemo .zoom-in { animation-name: linkiloZoomIn; }
.lk-fdemo .bounce-in { animation-name: linkiloBounceIn; }
.lk-fdemo .pulse-in { animation-name: linkiloPulseIn; }
@keyframes linkiloFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes linkiloSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px); 
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes linkiloZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes linkiloBounceIn { 
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); } 
    60% { transform: translateY(-6px); }
}
@keyframes linkiloPulseIn { 
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.03); opacity: 0.9; } 
    100% { transform: scale(1); opacity: 1; }
}
@media (max-width: 767px) {
.lk-fdemo .link-preview-tooltip.mobile-friendly img.preview-image, .lk-fdemo .link-preview-tooltip.mobile-friendly .image-placeholder { max-height: var(--linkilo-preview-mobile-img-max-height, 120px) !important; }
.lk-fdemo .link-preview-tooltip.mobile-friendly .title { font-size: var(--linkilo-preview-title-font-size) !important; }
.lk-fdemo .link-preview-tooltip.mobile-friendly .description { font-size: var(--linkilo-preview-desc-font-size) !important; }
.lk-fdemo .link-preview-tooltip.mobile-friendly .site-info { flex-wrap: wrap; }
.lk-fdemo .link-preview-tooltip.mobile-friendly .hostname { font-size: calc(var(--linkilo-preview-hostname-font-size, 12px) * 0.9) !important; }
.lk-fdemo .link-preview-tooltip.mobile-friendly .cta-button { font-size: calc(var(--linkilo-preview-cta-font-size, 14px) * 0.9) !important; padding: calc(var(--linkilo-preview-cta-padding-tb, 5px) * 0.8) calc(var(--linkilo-preview-cta-padding-lr, 10px) * 0.8) !important; }
}
.lk-fdemo .demo-fade-in { animation: linkiloFadeIn 0.3s; }
.lk-fdemo .demo-slide-in { animation: linkiloSlideIn 0.3s; }
.lk-fdemo .demo-zoom-in { animation: linkiloZoomIn 0.3s; }

/* ---- Related posts (front end, shared) -- assets/css/frontend-related-posts.css ---- */
.lk-fdemo .linkilo-related-posts { margin: 2rem 0; padding: 1.5rem; background: #f9f9f9; border-radius: 8px; }
.lk-fdemo .linkilo-related-title { margin: 0 0 1.5rem 0; font-size: 1.25rem; font-weight: 600; color: #333; }
.lk-fdemo .linkilo-related-list { list-style: none; padding: 0; margin: 0; }
.lk-fdemo .linkilo-related-list .linkilo-related-post { display: flex; gap: 1rem; margin-bottom: 1rem; padding: 1rem; background: white; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.lk-fdemo .linkilo-related-list .linkilo-post-thumbnail { flex-shrink: 0; width: 80px; height: 80px; overflow: hidden; border-radius: 4px; }
.lk-fdemo .linkilo-related-list .linkilo-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.lk-fdemo .linkilo-post-content { flex: 1; }
.lk-fdemo .linkilo-post-title { margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600; }
.lk-fdemo .linkilo-post-title a { color: #333; text-decoration: none; }
.lk-fdemo .linkilo-post-title a:hover { color: #0073aa; text-decoration: underline; }
.lk-fdemo .linkilo-post-excerpt { margin: 0 0 0.5rem 0; font-size: 0.875rem; color: #666; line-height: 1.4; }
.lk-fdemo .linkilo-topic-cluster { display: inline-block; padding: 0.25rem 0.5rem; background: #e8f4fd; color: #0073aa; font-size: 0.75rem; border-radius: 12px; }
.lk-fdemo .linkilo-grid-container { display: grid; gap: 1.5rem; }
.lk-fdemo .linkilo-grid-1 .linkilo-grid-container { grid-template-columns: 1fr; }
.lk-fdemo .linkilo-grid-2 .linkilo-grid-container { grid-template-columns: repeat(2, 1fr); }
.lk-fdemo .linkilo-grid-3 .linkilo-grid-container { grid-template-columns: repeat(3, 1fr); }
.lk-fdemo .linkilo-grid-4 .linkilo-grid-container { grid-template-columns: repeat(4, 1fr); }
.lk-fdemo .linkilo-grid-item { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: transform 0.2s ease; }
.lk-fdemo .linkilo-grid-item:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.lk-fdemo .linkilo-grid .linkilo-post-thumbnail { width: 100%; height: 200px; overflow: hidden; }
.lk-fdemo .linkilo-grid .linkilo-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.lk-fdemo .linkilo-grid .linkilo-post-content { padding: 1rem; }
.lk-fdemo .linkilo-carousel-container { position: relative; overflow: hidden; border-radius: 8px; }
.lk-fdemo .linkilo-carousel-track { display: flex; transition: transform 0.3s ease; }
.lk-fdemo .linkilo-carousel-slide { min-width: 100%; box-sizing: border-box; }
.lk-fdemo .linkilo-carousel .linkilo-related-post { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.lk-fdemo .linkilo-carousel .linkilo-post-thumbnail { width: 100%; height: 250px; overflow: hidden; }
.lk-fdemo .linkilo-carousel .linkilo-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.lk-fdemo .linkilo-carousel .linkilo-post-content { padding: 1.5rem; }
.lk-fdemo .linkilo-carousel-prev, .lk-fdemo .linkilo-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lk-fdemo .linkilo-carousel-prev:hover, .lk-fdemo .linkilo-carousel-next:hover { background: rgba(0,0,0,0.7); }
.lk-fdemo .linkilo-carousel-prev { left: 10px; }
.lk-fdemo .linkilo-carousel-next { right: 10px; }
.lk-fdemo .linkilo-carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.lk-fdemo .linkilo-carousel-dot { width: 12px; height: 12px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; transition: background 0.2s ease; }
.lk-fdemo .linkilo-carousel-dot.active, .lk-fdemo .linkilo-carousel-dot:hover { background: #0073aa; }
.lk-fdemo .linkilo-compact-list { line-height: 1.8; }
.lk-fdemo .linkilo-compact-link { color: #0073aa; text-decoration: none; font-weight: 500; }
.lk-fdemo .linkilo-compact-link:hover { text-decoration: underline; }
.lk-fdemo .linkilo-separator { color: #666; margin: 0 0.5rem; }
@media (max-width: 768px) {
.lk-fdemo .linkilo-grid-3 .linkilo-grid-container, .lk-fdemo .linkilo-grid-4 .linkilo-grid-container { grid-template-columns: repeat(2, 1fr); }
.lk-fdemo .linkilo-related-list .linkilo-related-post { flex-direction: column; gap: 0.5rem; }
.lk-fdemo .linkilo-related-list .linkilo-post-thumbnail { width: 100%; height: 150px; }
}
@media (max-width: 480px) {
.lk-fdemo .linkilo-grid-2 .linkilo-grid-container, .lk-fdemo .linkilo-grid-3 .linkilo-grid-container, .lk-fdemo .linkilo-grid-4 .linkilo-grid-container { grid-template-columns: 1fr; }
.lk-fdemo .linkilo-related-posts { padding: 1rem; }
.lk-fdemo .linkilo-carousel-prev, .lk-fdemo .linkilo-carousel-next { width: 32px; height: 32px; font-size: 1.2rem; }
}

/* ---- Related posts: list layout -- templates/frontend/related-posts-list.php (inline <style>) ---- */
.lk-fdemo .linkilo-related-posts-list { margin: 40px 0; padding: 30px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lk-fdemo .linkilo-list-title { font-size: 1.5em; margin-bottom: 20px; color: #333; border-bottom: 2px solid #0073aa; padding-bottom: 10px; }
.lk-fdemo .linkilo-list-container { display: flex; flex-direction: column; gap: 15px; }
.lk-fdemo .linkilo-related-post-item { display: flex; align-items: flex-start; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fff; transition: box-shadow 0.3s ease; }
.lk-fdemo .linkilo-related-post-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.lk-fdemo .linkilo-post-thumbnail { margin-right: 15px; flex-shrink: 0; }
.lk-fdemo .linkilo-post-thumbnail img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.lk-fdemo .linkilo-placeholder-image { width: 80px; height: 80px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 1.5em; }
.lk-fdemo .linkilo-post-content { flex: 1; }
.lk-fdemo .linkilo-post-title { margin: 0 0 8px 0; font-size: 1.1em; line-height: 1.3; }
.lk-fdemo .linkilo-post-title a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.lk-fdemo .linkilo-post-title a:hover { color: #0073aa; }
.lk-fdemo .linkilo-post-category { display: inline-block; background: #0073aa; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8em; margin-bottom: 8px; }
.lk-fdemo .linkilo-post-excerpt { color: #666; font-size: 0.9em; line-height: 1.4; margin: 8px 0; }
.lk-fdemo .linkilo-post-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.8em; color: #888; }
.lk-fdemo .linkilo-topic-badge { background: #888; color: white; padding: 2px 6px; border-radius: 8px; }
@media (max-width: 768px) {
.lk-fdemo .linkilo-related-post-item { flex-direction: column; }
.lk-fdemo .linkilo-post-thumbnail { margin-right: 0; margin-bottom: 10px; align-self: center; }
.lk-fdemo .linkilo-post-meta { flex-direction: column; gap: 5px; }
}

/* ---- Related posts: grid layout -- templates/frontend/related-posts-grid.php (inline <style>) ---- */
.lk-fdemo .linkilo-related-posts-grid { margin: 40px 0; padding: 30px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lk-fdemo .linkilo-grid-title { font-size: 1.5em; margin-bottom: 20px; color: #333; text-align: center; border-bottom: 2px solid #0073aa; padding-bottom: 10px; }
.lk-fdemo .linkilo-grid-container { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lk-fdemo .linkilo-related-posts-grid[data-columns="1"] .linkilo-grid-container { grid-template-columns: 1fr; }
.lk-fdemo .linkilo-related-posts-grid[data-columns="2"] .linkilo-grid-container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lk-fdemo .linkilo-related-posts-grid[data-columns="3"] .linkilo-grid-container { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lk-fdemo .linkilo-related-posts-grid[data-columns="4"] .linkilo-grid-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.lk-fdemo .linkilo-related-post-card { background: #fff; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; }
.lk-fdemo .linkilo-related-post-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.15); transform: translateY(-2px); }
.lk-fdemo .linkilo-post-thumbnail { position: relative; height: 200px; overflow: hidden; }
.lk-fdemo .linkilo-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.lk-fdemo .linkilo-post-thumbnail:hover img { transform: scale(1.05); }
.lk-fdemo .linkilo-placeholder-image { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 3em; }
.lk-fdemo .linkilo-topic-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.75em; font-weight: 500; }
.lk-fdemo .linkilo-post-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.lk-fdemo .linkilo-post-title { margin: 0 0 10px 0; font-size: 1.1em; line-height: 1.3; }
.lk-fdemo .linkilo-post-title a { color: #333; text-decoration: none; transition: color 0.3s ease; }
.lk-fdemo .linkilo-post-title a:hover { color: #0073aa; }
.lk-fdemo .linkilo-post-category { display: inline-block; background: #0073aa; color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8em; margin-bottom: 8px; }
.lk-fdemo .linkilo-post-excerpt { color: #666; font-size: 0.9em; line-height: 1.5; margin: 0 0 15px 0; flex-grow: 1; }
.lk-fdemo .linkilo-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.8em; color: #888; margin-top: auto; flex-wrap: wrap; gap: 8px; }
.lk-fdemo .linkilo-topic-badge-inline { background: #888; color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.9em; }
@media (max-width: 768px) {
.lk-fdemo .linkilo-grid-container { grid-template-columns: 1fr; gap: 15px; }
.lk-fdemo .linkilo-post-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ---- Related posts: carousel layout -- templates/frontend/related-posts-carousel.php (inline <style>) ---- */
.lk-fdemo .linkilo-related-posts-carousel { margin: 40px 0; padding: 30px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lk-fdemo :root { --linkilo-title-font-family: <?php echo esc_html($title_font_family); ?>; --linkilo-title-font-size: <?php echo esc_html($title_font_size); ?>px; --linkilo-title-font-weight: <?php echo esc_html($title_font_weight); ?>; --linkilo-title-font-style: <?php echo $title_italic ? 'italic' : 'normal'; ?>; --linkilo-title-text-decoration: <?php echo $title_underline ? 'underline' : 'none'; ?>; --linkilo-title-color: <?php echo esc_html($title_color); ?>; --linkilo-title-hover-color: <?php echo esc_html($title_hover_color); ?>; --linkilo-link-decoration: <?php echo esc_html($link_decoration); ?>; --linkilo-link-hover-decoration: <?php echo esc_html($link_hover_decoration); ?>; --linkilo-link-transition: <?php echo esc_html($link_transition_speed); ?>ms; --linkilo-excerpt-font-size: <?php echo esc_html($excerpt_font_size); ?>px; --linkilo-excerpt-color: <?php echo esc_html($excerpt_color); ?>; --linkilo-meta-font-size: <?php echo esc_html($meta_font_size); ?>px; --linkilo-meta-color: <?php echo esc_html($meta_color); ?>; --linkilo-card-background: <?php echo esc_html($card_background_color); ?>; --linkilo-card-border-color: <?php echo esc_html($card_border_color); ?>; --linkilo-card-border-width: <?php echo esc_html($card_border_width); ?>px; --linkilo-card-border-radius: <?php echo esc_html($card_border_radius); ?>px; --linkilo-card-padding: <?php echo esc_html($card_padding); ?>px; --linkilo-card-margin: <?php echo esc_html($card_margin); ?>px; --linkilo-title-margin-bottom: <?php echo esc_html($title_margin_bottom); ?>px; --linkilo-excerpt-margin-bottom: <?php echo esc_html($excerpt_margin_bottom); ?>px; }
.lk-fdemo .linkilo-carousel-title { font-size: 1.5em; margin-bottom: 15px; color: #333; text-align: center; }
.lk-fdemo .linkilo-carousel-container { position: relative; max-width: 100%; margin: 0 auto; }
.lk-fdemo .linkilo-carousel-track-container { overflow: hidden; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.lk-fdemo .linkilo-carousel-track { display: flex; transition: transform 0.3s ease; }
.lk-fdemo .linkilo-carousel-slide { min-width: 100%; box-sizing: border-box; }
.lk-fdemo .linkilo-related-post-card { background: var(--linkilo-card-background); border: var(--linkilo-card-border-width) solid var(--linkilo-card-border-color); border-radius: var(--linkilo-card-border-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; margin: var(--linkilo-card-margin); transition: all var(--linkilo-link-transition) ease; }
.lk-fdemo .linkilo-related-post-card.text-only-mode { flex-direction: row; align-items: flex-start; padding: calc(var(--linkilo-card-padding) / 2); min-height: auto; height: auto; }
.lk-fdemo .linkilo-related-post-card.text-only-mode .linkilo-post-content { padding: 0; flex: 1; }
.lk-fdemo .linkilo-post-thumbnail { position: relative; height: 200px; overflow: hidden; }
.lk-fdemo .linkilo-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.lk-fdemo .linkilo-post-thumbnail:hover img { transform: scale(1.05); }
.lk-fdemo .linkilo-placeholder-image { width: 100%; height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); display: flex; align-items: center; justify-content: center; font-size: 3em; }
.lk-fdemo .linkilo-topic-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 8px; border-radius: 12px; font-size: 0.75em; font-weight: 500; }
.lk-fdemo .linkilo-post-content { padding: var(--linkilo-card-padding); flex-grow: 1; display: flex; flex-direction: column; }
.lk-fdemo .linkilo-post-title { margin: 0 0 var(--linkilo-title-margin-bottom) 0; font-size: var(--linkilo-title-font-size); font-family: var(--linkilo-title-font-family); font-weight: var(--linkilo-title-font-weight); font-style: var(--linkilo-title-font-style); line-height: 1.3; }
.lk-fdemo .linkilo-post-title a { color: var(--linkilo-title-color); text-decoration: var(--linkilo-link-decoration); transition: all var(--linkilo-link-transition) ease; }
.lk-fdemo .linkilo-post-title a:hover { color: var(--linkilo-title-hover-color); text-decoration: var(--linkilo-link-hover-decoration); }
.lk-fdemo .linkilo-post-category { display: inline-block; background: var(--linkilo-title-hover-color); color: white; padding: 2px 8px; border-radius: 12px; font-size: 0.8em; margin-bottom: 8px; }
.lk-fdemo .linkilo-post-excerpt { color: var(--linkilo-excerpt-color); font-size: var(--linkilo-excerpt-font-size); line-height: 1.5; margin: 0 0 var(--linkilo-excerpt-margin-bottom) 0; flex-grow: 1; }
.lk-fdemo .linkilo-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: var(--linkilo-meta-font-size); color: var(--linkilo-meta-color); margin-top: auto; flex-wrap: wrap; gap: 8px; }
.lk-fdemo .linkilo-post-meta > span { display: inline-block; }
.lk-fdemo .linkilo-topic-badge-inline { background: var(--linkilo-meta-color); color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.9em; }
.lk-fdemo .text-only-mode .linkilo-post-meta { justify-content: flex-start; margin-top: 8px; }
.lk-fdemo .text-only-mode .linkilo-post-title { font-size: calc(var(--linkilo-title-font-size) * 0.9); margin-bottom: calc(var(--linkilo-title-margin-bottom) / 2); }
.lk-fdemo .text-only-mode .linkilo-post-excerpt { margin-bottom: calc(var(--linkilo-excerpt-margin-bottom) / 2); }
.lk-fdemo .linkilo-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.8); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; font-size: 1.8em; cursor: pointer; z-index: 100; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.lk-fdemo .linkilo-carousel-btn:hover { background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); }
.lk-fdemo .linkilo-carousel-btn:disabled, .lk-fdemo .linkilo-carousel-btn.disabled { opacity: 0.3; cursor: not-allowed; background: rgba(0,0,0,0.4); }
.lk-fdemo .linkilo-carousel-btn:disabled:hover, .lk-fdemo .linkilo-carousel-btn.disabled:hover { background: rgba(0,0,0,0.4); transform: translateY(-50%); }
.lk-fdemo .linkilo-carousel-prev { left: 10px; }
.lk-fdemo .linkilo-carousel-next { right: 10px; }
.lk-fdemo .linkilo-carousel-indicators { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.lk-fdemo .linkilo-carousel-indicator { width: 12px; height: 12px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; transition: all 0.3s ease; }
.lk-fdemo .linkilo-carousel-indicator.active, .lk-fdemo .linkilo-carousel-indicator:hover { background: #0073aa; transform: scale(1.2); }
@media (max-width: 768px) {
.lk-fdemo .linkilo-carousel-prev { left: 10px; }
.lk-fdemo .linkilo-carousel-next { right: 10px; }
.lk-fdemo .linkilo-post-content { padding: calc(var(--linkilo-card-padding) * 0.75); }
.lk-fdemo .linkilo-post-meta { flex-direction: column; align-items: flex-start; gap: 5px; }
.lk-fdemo .text-only-mode .linkilo-related-post-card { flex-direction: column; padding: calc(var(--linkilo-card-padding) * 0.5); }
.lk-fdemo .text-only-mode .linkilo-post-title { font-size: calc(var(--linkilo-title-font-size) * 0.8); }
}
@media (min-width: 769px) {
.lk-fdemo .linkilo-carousel-slide { min-width: 33.333%; padding: 0 10px; }
.lk-fdemo .linkilo-carousel-track-container { padding: 0 10px; }
}
@media (min-width: 1200px) {
.lk-fdemo .linkilo-carousel-slide { min-width: 25%; }
}

/* ---- Related posts: compact layout -- templates/frontend/related-posts-compact.php (inline <style>) ---- */
.lk-fdemo .linkilo-related-posts-compact { margin: 30px 0; padding: 20px; background: #f8f9fa; border-left: 4px solid #0073aa; border-radius: 4px; }
.lk-fdemo .linkilo-compact-title { font-size: 1.2em; margin: 0 0 15px 0; color: #333; }
.lk-fdemo .linkilo-compact-list { list-style: none; margin: 0; padding: 0; }
.lk-fdemo .linkilo-compact-item { margin: 8px 0; padding-left: 20px; position: relative; }
.lk-fdemo .linkilo-compact-item:before { content: "→"; position: absolute; left: 0; color: #0073aa; font-weight: bold; }
.lk-fdemo .linkilo-compact-link { color: #0073aa; text-decoration: none; font-size: 0.95em; transition: color 0.3s ease; }
.lk-fdemo .linkilo-compact-link:hover { color: #005177; text-decoration: underline; }

/* ---- Demo chrome (theme) ---- */
.lk-fdemo { position: relative; background: #fff; color: #1f2937; border: 1px solid var(--lk-line); border-radius: var(--lk-r-lg); box-shadow: var(--lk-sh-lg); overflow: visible; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.lk-fdemo__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--lk-line); border-radius: var(--lk-r-lg) var(--lk-r-lg) 0 0; font-size: 12px; color: var(--lk-ink-500); }
.lk-fdemo__label { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lk-ink-600); }
.lk-fdemo__ctl { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lk-ink-600); }
.lk-fdemo__ctl select { font: inherit; font-size: 12px; padding: 3px 6px; border: 1px solid var(--lk-line); border-radius: 6px; background: #fff; color: var(--lk-ink-700); }
.lk-fdemo__tabs { display: flex; gap: 4px; }
.lk-fdemo__tab { font: inherit; font-size: 12px; font-weight: 600; padding: 5px 10px; border: 1px solid var(--lk-line); border-radius: 999px; background: #fff; color: var(--lk-ink-600); cursor: pointer; }
.lk-fdemo__tab[aria-selected="true"] { background: var(--lk-blue); border-color: var(--lk-blue); color: #fff; }
.lk-fdemo__body { padding: 18px 20px 20px; }
.lk-fdemo__article { font-size: 15px; line-height: 1.7; color: #1f2937; }
.lk-fdemo__article h4 { margin: 0 0 8px; font-size: 17px; color: #0f172a; }
.lk-fdemo__article p { margin: 0 0 10px; }
.lk-fdemo__article a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.lk-fdemo__hint { margin: 12px 0 0; font-size: 12px; color: var(--lk-ink-500); }
.lk-fdemo .link-preview-tooltip { display: block; opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 10px 30px rgba(15,23,42,.18); max-width: 300px; }
.lk-fdemo .link-preview-tooltip.is-open { opacity: 1; pointer-events: auto; }
.lk-fdemo .link-preview-tooltip .preview-image { background: linear-gradient(135deg, #1E294D, #177EE5); height: 110px; }
.lk-fdemo .link-preview-tooltip img.preview-image.img-left, .lk-fdemo .link-preview-tooltip img.preview-image.img-right { height: 70px; }
.lk-fdemo .link-preview-tooltip.is-dark { --linkilo-preview-bg-color: #1f2937; --linkilo-preview-border-color: #374151; --linkilo-preview-title-color: #fff; --linkilo-preview-desc-color: #d1d5db; --linkilo-preview-hostname-color: #9ca3af; }
.lk-fdemo .linkilo-related-posts-list, .lk-fdemo .linkilo-related-posts-grid, .lk-fdemo .linkilo-related-posts-carousel, .lk-fdemo .linkilo-related-posts-compact { margin: 0; padding: 0; }
.lk-fdemo .linkilo-related-posts-compact { padding: 16px 20px; }
.lk-fdemo .linkilo-post-thumbnail img { display: block; }
.lk-fdemo .linkilo-carousel-track-container { overflow: hidden; }
.lk-fdemo .linkilo-carousel-track { display: flex; transition: transform .35s ease; }
.lk-fdemo .linkilo-carousel-slide { min-width: 100%; box-sizing: border-box; padding: 0 44px; }
.lk-fdemo .linkilo-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lk-fdemo .linkilo-carousel-container { position: relative; }
.lk-fdemo .linkilo-carousel .linkilo-post-thumbnail, .lk-fdemo .linkilo-related-posts-carousel .linkilo-post-thumbnail { height: 150px; }
.lk-fdemo .linkilo-related-posts-grid .linkilo-post-thumbnail { height: 110px; }
.lk-fdemo .linkilo-related-posts-grid .linkilo-grid-container { gap: 12px; }
.lk-fdemo .linkilo-related-posts-grid[data-columns="3"] .linkilo-grid-container { grid-template-columns: repeat(3, 1fr); }
.lk-fdemo .linkilo-related-posts-grid .linkilo-post-content { padding: 12px; }
.lk-fdemo .linkilo-related-posts-grid .linkilo-post-title { font-size: .95em; }
.lk-fdemo .linkilo-grid-title, .lk-fdemo .linkilo-list-title, .lk-fdemo .linkilo-carousel-title, .lk-fdemo .linkilo-compact-title { font-size: 1.1em; margin-bottom: 12px; }
.lk-fdemo .linkilo-related-post-item { padding: 10px; }
.lk-fdemo .linkilo-post-excerpt { margin: 4px 0; }
.lk-fdemo [hidden] { display: none !important; }
/* Auto links: the inserted link is the plugin's; the pulse is the demo saying "this just happened". */
.lk-fdemo .linkilo_internal_link { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; background: linear-gradient(transparent 60%, rgba(23,126,229,.18) 0); }
.lk-fdemo.is-animating .linkilo_internal_link { animation: lk-fdemo-pop .6s ease; }
@keyframes lk-fdemo-pop { 0% { background-color: rgba(23,126,229,.35); } 100% { background-color: transparent; } }
.lk-fdemo__stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lk-fdemo__pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #f1f5f9; color: var(--lk-ink-700); }
.lk-fdemo__pill--ok { background: #dcfce7; color: #166534; }
.lk-fdemo__pill--warn { background: #fef3c7; color: #92400e; }
.lk-fdemo__switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--lk-ink-700); cursor: pointer; }
.lk-fdemo__switch input { appearance: none; width: 34px; height: 18px; border-radius: 999px; background: #cbd5e1; position: relative; cursor: pointer; margin: 0; }
.lk-fdemo__switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.lk-fdemo__switch input:checked { background: var(--lk-blue); }
.lk-fdemo__switch input:checked::after { left: 18px; }
@media (prefers-reduced-motion: reduce) { .lk-fdemo .link-preview-tooltip, .lk-fdemo .linkilo-carousel-track { transition: none; animation: none !important; } }

