/* =======================================================================
   UI / UX ENHANCEMENTS: PILL BUTTONS ONLY
   To disable these enhancements, simply remove the link to this file 
   in header.php.
========================================================================== */

/* Modernized Filter Buttons (Pill Style) */
.filter-wrap .masonry-filter {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 50px;
    display: inline-flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-wrap .masonry-filter>li {
    margin: 4px;
}

.filter-wrap .masonry-filter>li a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #555 !important;
    background: transparent;
    transition: all 0.3s ease;
}

/* Active and Hover states for Pill Buttons */
.filter-wrap .masonry-filter>li.active a,
.filter-wrap .masonry-filter>li a:hover {
    background: #6bc441 !important;
    /* Primary Brand Yellow */
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(107, 196, 65, 0.4);
}

/* Remove the '/' separator from the old link style */
.masonry-filter.link-style>li:after {
    display: none !important;
}

/* =======================================================================
   HEADER ALIGNMENT (DESKTOP): Logo left — Nav far right
========================================================================== */

/* ---- DESKTOP NAV (#desktop-nav) ---- */
@media (min-width: 992px) {

    /* Logo stays at the left with a small offset */
    .header-style-3 .logo-header {
        margin-left: 20px !important;
    }

    /* Make the main-bar full-width so position:absolute right:15px anchors properly */
    .header-style-3 .main-bar {
        width: 100% !important;
    }

    /* Show the desktop nav, hide the Bootstrap collapse one */
    #desktop-nav {
        display: flex !important;
    }

    .header-style-3 .header-nav.navbar-collapse {
        display: none !important;
    }

    /* Hide the submenu-toogle divs that custom.js injects into our desktop nav */
    #desktop-nav .submenu-toogle {
        display: none !important;
    }

    /* Suppress any pseudo-element content */
    #desktop-nav ul li::before,
    #desktop-nav ul li::after,
    #desktop-nav ul li a::before,
    #desktop-nav ul li a::after {
        display: none !important;
        content: none !important;
    }

    /* Desktop nav link styling — matches .header-nav nav>li>a */
    #desktop-nav ul li a {
        display: block !important;
        padding: 20px 12px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        color: #5a5a5a !important;
        text-decoration: none !important;
        transition: color 0.2s linear !important;
    }

    #desktop-nav ul li a:hover {
        color: #000000 !important;
    }



    .header-style-3.color-fill #desktop-nav ul li a:hover {
        color: #000000 !important;
    }

    /* Hide mobile toggle on desktop */
    .header-style-3 .navbar-toggler {
        display: none !important;
    }
}

/* ---- MOBILE VIEW ---- */
@media (max-width: 991px) {

    /* Hide the desktop nav completely on mobile */
    #desktop-nav {
        display: none !important;
    }
}

@media (min-width: 992px) {

    /* Hide the navbar when idle, overriding visibility */
    .site-header.idle-hidden .main-bar {
        transform: translateY(-100%) !important;
        transition: transform 0.4s ease-in-out !important;
    }
}

/* ============================================================
   IMAGE PROTECTION (Global)
   Prevents dragging and selecting images
============================================================ */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Specifically for Magnific Popup to still allow clicks if necessary */
img.mfp-img {
    pointer-events: auto;
}

/* ============================================================
   WATERMARK ON MAGNIFIED IMAGES (Magnific Popup)
============================================================ */
/* Positioning the container to hold the overlay */
.mfp-figure {
    position: relative;
    display: inline-block;
}

/* The watermark overlay */
.mfp-figure::after {
    content: "Pishons Design Studio";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5vw;
    /* Scales with screen width */
    font-weight: 300;
    color: rgb(255, 255, 255);
    opacity: 0.3;
    /* White text, semi-transparent */
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Adds slight contrast */
    pointer-events: none;
    /* Allows user to interact/click through the watermark */
    z-index: 9999;
}