/**
 * StreamSignal Universal CSS
 * Compatible with WordPress core themes and modern block themes
 * Version: 2.0.3
 */

/* ============================================
   CORE LIVE MENU ITEM STYLES
   Works with standard WordPress navigation
   ============================================ */

/* Base live menu item styling */
.is-live > a,
.is-live a {
    color: #e10600 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    position: relative !important;
    display: inline-block !important;
}

/* YouTube-style circular play button before "Live" text */
.is-live > a::before,
.is-live a::before {
    content: '▶' !important;
    display: inline-block !important;
    margin-right: 0.4rem !important;
    font-size: 0.55em !important;
    vertical-align: middle !important;
    color: #fff !important;
    background-color: #e10600 !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
    line-height: 16px !important;
    position: relative !important;
    left: 1px !important;
    transform: translateY(-1px) !important;
}

/* Hover states */
.is-live > a:hover,
.is-live a:hover {
    color: #cc0000 !important;
    text-decoration: none !important;
}

.is-live > a:hover::before,
.is-live a:hover::before {
    background-color: #cc0000 !important;
    color: #fff !important;
}

/* Remove any unwanted pseudo-elements */
.is-live > a::after,
.is-live a::after {
    display: none !important;
}

/* ============================================
   TWENTY TWENTY-FIVE THEME COMPATIBILITY
   ============================================ */

/* Block theme navigation compatibility */
.wp-block-navigation .is-live .wp-block-navigation-item__content {
    color: #e10600 !important;
    font-weight: 700 !important;
}

.wp-block-navigation .is-live .wp-block-navigation-item__content::before {
    content: '▶' !important;
    display: inline-block !important;
    margin-right: 0.4rem !important;
    font-size: 0.55em !important;
    vertical-align: middle !important;
    color: #fff !important;
    background-color: #e10600 !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
    line-height: 16px !important;
    position: relative !important;
    left: 1px !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   ELEMENTOR COMPATIBILITY LAYER
   Maintains backward compatibility
   ============================================ */

.elementor-nav-menu .is-live > a.elementor-item,
.elementor-nav-menu .is-live a.elementor-item {
    color: #e10600 !important;
    font-weight: 700 !important;
    position: relative !important;
    display: inline-block !important;
}

.elementor-nav-menu .is-live > a.elementor-item::before,
.elementor-nav-menu .is-live a.elementor-item::before {
    content: '▶' !important;
    display: inline-block !important;
    margin-right: 0.4rem !important;
    font-size: 0.55em !important;
    vertical-align: middle !important;
    color: #fff !important;
    background-color: #e10600 !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
    line-height: 16px !important;
    position: relative !important;
    left: 1px !important;
    transform: translateY(-1px) !important;
}

/* ============================================
   SHORTCODE STYLES
   For [streamsignal] shortcode usage
   ============================================ */

.streamsignal-shortcode.is-live {
    display: inline-block;
    color: #e10600 !important;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(225, 6, 0, 0.1);
    border: 1px solid #e10600;
    transition: all 0.3s ease;
}

.streamsignal-shortcode.is-live::before {
    content: '▶' !important;
    display: inline-block !important;
    margin-right: 0.4rem !important;
    font-size: 0.55em !important;
    vertical-align: middle !important;
    color: #fff !important;
    background-color: #e10600 !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    text-align: center !important;
    line-height: 16px !important;
    position: relative !important;
    left: 1px !important;
    transform: translateY(-1px) !important;
}

.streamsignal-shortcode.is-live:hover {
    background: rgba(225, 6, 0, 0.2);
    color: #cc0000 !important;
}

.streamsignal-shortcode.is-live:hover::before {
    background-color: #cc0000 !important;
    color: #fff !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .is-live > a::before,
    .is-live a::before {
        font-size: 0.5em !important;
        margin-right: 0.3rem !important;
        width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }
    
    .wp-block-navigation .is-live .wp-block-navigation-item__content::before {
        font-size: 0.5em !important;
        margin-right: 0.3rem !important;
        width: 14px !important;
        height: 14px !important;
        line-height: 14px !important;
    }
}

/* ============================================
   ACCESSIBILITY & FOCUS MANAGEMENT
   ============================================ */

/* Remove focus outline after click while preserving keyboard accessibility */
.is-live > a:focus:not(:focus-visible),
.is-live a:focus:not(:focus-visible) {
    outline: none !important;
}

/* Keep outline for keyboard navigation */
.is-live > a:focus-visible,
.is-live a:focus-visible {
    outline: 2px solid #e10600 !important;
    outline-offset: 2px !important;
}

/* Screen reader support */
.is-live > a::before,
.is-live a::before {
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .is-live > a::before,
    .is-live a::before {
        display: none !important;
    }
}