/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Template: generatepress
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: CAConnect.ca Child Theme - Industrial Infrastructure Hub. Custom logic for 2026 Global Launch.
Tags: featured-images, industrial-tech, cloud-logic
Version: 3.6.1.1768528140
Updated: 2026-01-16 13:45:00
*/

/* --- CAConnect Industrial Image Styling --- 
   Adds a technical "frame" to featured images to mimic architectural blueprints.
*/

.post-image img, 
.featured-image img,
.wp-block-image img {
    border: 1px solid rgba(0, 102, 204, 0.4); /* Data Blue Blueprint Border */
    padding: 8px; /* Breathing room for the frame */
    background: #ffffff;
    box-shadow: 6px 6px 0px 0px rgba(20, 20, 20, 0.08); /* Industrial "offset" shadow */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 1px; /* Sharp, high-precision edges */
    max-width: 100%;
    height: auto;
}

/* Hover effect: The "Cloud" Glow
   Visual feedback for global users interacting with the data.
*/
.post-image img:hover, 
.featured-image img:hover,
.wp-block-image img:hover {
    border-color: #0066cc;
    box-shadow: 10px 10px 0px 0px rgba(0, 102, 204, 0.12);
    transform: translate(-3px, -3px);
}

/* --- The "INSIGHT 2026" Technical Badge ---
   Positions a technical label in the top-right of all featured images.
*/
.post-image, 
.featured-image,
.wp-block-image {
    position: relative;
    display: block; /* Ensures the badge anchors to the image container */
}

.post-image::after,
.featured-image::after,
.wp-block-image::after {
    content: "INSIGHT 2026";
    position: absolute;
    top: 30px; /* Positioned inside the frame */
    right: 30px;
    background: #0066cc; /* Brand Data Blue */
    color: #ffffff;
    font-size: 11px;
    font-family: 'Courier New', Courier, monospace; /* Monospace for engineering feel */
    padding: 5px 12px;
    letter-spacing: 2px;
    font-weight: 700;
    border-radius: 1px;
    opacity: 0.95;
    z-index: 5;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.15);
    pointer-events: none; /* Allows clicks to pass through to the image */
    text-transform: uppercase;
}

/* Responsive adjustment for mobile devices */
@media (max-width: 768px) {
    .post-image::after,
    .featured-image::after {
        top: 20px;
        right: 20px;
        font-size: 9px;
        padding: 3px 8px;
    }
}