/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site - big or small. From huge corporate portals to studio or personal sites - The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

/**
 * =============================================================================
 * DeskBump Custom Navigation - Portal Standout CTA Button
 * =============================================================================
 * Styles any main menu item linking to the DeskBump portal or containing "portal"
 * in its link / ID to render as a prominent, glowing Call-To-Action (CTA) button.
 *
 * Selectors targeted:
 * - Any menu item with href containing "portal" (via modern :has() & attribute selectors)
 * - Specific menu item ID: .menu-item-11457
 * - Optional custom menu class: .portal-menu-item
 * =============================================================================
 */

/* 1. Ensure overflow is visible so glowing shadows and hover transforms are not clipped */
.main-nav > li:has(a[href*="portal"]),
.dt-nav-menu-horizontal li:has(a[href*="portal"]),
li.menu-item:has(> a[href*="portal"]),
li.menu-item.menu-item-11457,
li.menu-item.portal-menu-item,
.main-nav > li:has(a[href*="portal"]) > a,
li.menu-item:has(> a[href*="portal"]) > a,
li.menu-item.menu-item-11457 > a,
li.menu-item.portal-menu-item > a,
li.menu-item > a[href*="portal"] {
    overflow: visible !important;
}

/* 2. Suppress The7 default underline/hover line decorations on the CTA button */
.main-nav > li:has(a[href*="portal"]) > a::before,
.main-nav > li:has(a[href*="portal"]) > a::after,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a::before,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a::after,
li.menu-item:has(> a[href*="portal"]) > a::before,
li.menu-item:has(> a[href*="portal"]) > a::after,
li.menu-item.menu-item-11457 > a::before,
li.menu-item.menu-item-11457 > a::after,
li.menu-item.portal-menu-item > a::before,
li.menu-item.portal-menu-item > a::after,
li.menu-item > a[href*="portal"]::before,
li.menu-item > a[href*="portal"]::after {
    display: none !important;
    content: none !important;
}

/* 3. The Standout Button / Pill Container (.item-content) */
.main-nav > li:has(a[href*="portal"]) > a .item-content,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a .item-content,
li.menu-item:has(> a[href*="portal"]) > a .item-content,
li.menu-item.menu-item-11457 > a .item-content,
li.menu-item.portal-menu-item > a .item-content,
li.menu-item > a[href*="portal"] .item-content {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 18px !important;
    margin: 4px 6px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: db-portal-glow-pulse 3.5s infinite ease-in-out !important;
    position: relative !important;
    z-index: 2 !important;
}

/* 4. Text and Label Styling inside CTA */
.main-nav > li:has(a[href*="portal"]) > a .menu-text,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a .menu-text,
li.menu-item:has(> a[href*="portal"]) > a .menu-text,
li.menu-item.menu-item-11457 > a .menu-text,
li.menu-item.portal-menu-item > a .menu-text,
li.menu-item > a[href*="portal"] .menu-text,
.main-nav > li:has(a[href*="portal"]) > a .menu-item-text,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a .menu-item-text,
li.menu-item:has(> a[href*="portal"]) > a .menu-item-text,
li.menu-item.menu-item-11457 > a .menu-item-text,
li.menu-item.portal-menu-item > a .menu-item-text,
li.menu-item > a[href*="portal"] .menu-item-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    line-height: 1.2 !important;
}

/* 5. Submenu Indicator Chevron Icon (if submenu present) */
.main-nav > li:has(a[href*="portal"]) .submenu-indicator i,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) .submenu-indicator i,
li.menu-item:has(> a[href*="portal"]) .submenu-indicator i,
li.menu-item.menu-item-11457 .submenu-indicator i,
li.menu-item.portal-menu-item .submenu-indicator i,
li.menu-item > a[href*="portal"] .submenu-indicator i {
    color: #ffffff !important;
    font-size: 11px !important;
    margin-left: 6px !important;
    vertical-align: middle !important;
}

/* 6. Interactive Hover & Focus State */
.main-nav > li:has(a[href*="portal"]) > a:hover .item-content,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a:hover .item-content,
li.menu-item:has(> a[href*="portal"]) > a:hover .item-content,
li.menu-item.menu-item-11457 > a:hover .item-content,
li.menu-item.portal-menu-item > a:hover .item-content,
li.menu-item > a[href*="portal"]:hover .item-content {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.65), 0 0 12px rgba(6, 182, 212, 0.45) !important;
    transform: translateY(-2px) !important;
    animation: none !important;
}

.main-nav > li:has(a[href*="portal"]) > a:hover .menu-text,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a:hover .menu-text,
li.menu-item:has(> a[href*="portal"]) > a:hover .menu-text,
li.menu-item.menu-item-11457 > a:hover .menu-text,
li.menu-item.portal-menu-item > a:hover .menu-text,
li.menu-item > a[href*="portal"]:hover .menu-text {
    color: #ffffff !important;
}

/* 7. Active / Pressed State */
.main-nav > li:has(a[href*="portal"]) > a:active .item-content,
.dt-nav-menu-horizontal li:has(a[href*="portal"]) > a:active .item-content,
li.menu-item:has(> a[href*="portal"]) > a:active .item-content,
li.menu-item.menu-item-11457 > a:active .item-content,
li.menu-item.portal-menu-item > a:active .item-content,
li.menu-item > a[href*="portal"]:active .item-content {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4) !important;
}

/* 8. Smooth Ambient Breathing Glow Animation */
@keyframes db-portal-glow-pulse {
    0%, 100% {
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 0 4px 22px rgba(37, 99, 235, 0.65), 0 0 10px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
}

/* 9. Mobile Navigation Adaptation */
.mobile-main-nav > li:has(a[href*="portal"]) > a .item-content,
.mobile-main-nav > li.menu-item-11457 > a .item-content,
.mobile-main-nav > li.portal-menu-item > a .item-content,
.mobile-main-nav > li > a[href*="portal"] .item-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    margin: 8px 12px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3) !important;
}

.mobile-main-nav > li:has(a[href*="portal"]) > a .menu-text,
.mobile-main-nav > li.menu-item-11457 > a .menu-text,
.mobile-main-nav > li.portal-menu-item > a .menu-text,
.mobile-main-nav > li > a[href*="portal"] .menu-text {
    color: #ffffff !important;
    font-weight: 700 !important;
}
