/* CONCENTER.IO Threat Intelligence Monitor - Styles */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

/* Reset styles for Elementor compatibility */
#concenter-threat-monitor-container,
#concenter-threat-monitor-container * {
    box-sizing: border-box !important;
}

#concenter-threat-monitor-container {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 60vh !important;
    max-height: 90vh !important;
    background-color: #000 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    /* Responsive aspect ratio - adapts to container */
    aspect-ratio: 16 / 9;
}

/* Override Elementor/WordPress styles that might interfere */
.elementor-widget-shortcode #concenter-threat-monitor-container,
.elementor-element #concenter-threat-monitor-container,
.elementor-widget-html #concenter-threat-monitor-container {
    width: 100% !important;
    height: auto !important;
    min-height: 60vh !important;
    max-height: 90vh !important;
    overflow: hidden !important;
}

/* Prevent any parent containers from adding scroll */
.elementor-widget-shortcode,
.elementor-element,
.elementor-widget-html {
    overflow: hidden !important;
}

#globeViz {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    user-select: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure the canvas inside covers entire container with background */
/* Canvas is larger to cover container and globe is visually shifted towards the right side */
#globeViz canvas {
    display: block !important;
    width: 133.33% !important;
    height: 133.33% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: -16.67% !important;
    left: 0 !important;
    object-fit: cover !important;
    pointer-events: none !important;
    user-select: none !important;
    max-width: none !important;
    max-height: none !important;
    /* Ensure canvas fills container properly */
    min-width: 100% !important;
    min-height: 100% !important;
}

/* UI Overlay */
.overlay {
    position: absolute;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    box-shadow: inset 0 0 100px rgba(0, 255, 204, 0.1);
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 10;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.apt-details {
    position: absolute !important;
    bottom: clamp(8px, 1%, 15px) !important;
    left: clamp(8px, 1%, 15px) !important;
    z-index: 20 !important;
    width: clamp(220px, 25%, 450px) !important;
    min-height: clamp(100px, 15%, 220px) !important;
    max-width: 85% !important;
    border: clamp(1px, 0.08vw, 2px) solid #00ffcc !important;
    background: rgba(0, 20, 20, 0.9) !important;
    padding: clamp(8px, 1%, 18px) !important;
    display: none;
    /* Hidden by default */
    box-sizing: border-box !important;
    margin: 0 !important;
}

.apt-details h2 {
    margin-top: 0;
    color: #ff3333;
    text-shadow: 0 0 clamp(2px, 0.3vw, 6px) #ff3333;
    font-size: clamp(14px, 1.6vw, 24px);
    margin-bottom: clamp(6px, 0.8vh, 12px);
}

.apt-details p {
    font-size: clamp(10px, 1.2vw, 16px);
    line-height: 1.5;
    color: #00ffcc;
    margin-bottom: 0;
    margin-top: 0;
}

.label {
    color: #888;
    font-size: clamp(8px, 1vw, 12px);
    text-transform: uppercase;
    display: block;
    margin-bottom: clamp(1px, 0.15vh, 3px);
    margin-top: clamp(8px, 1vh, 14px);
}

.label:first-of-type {
    margin-top: 0;
}

.attack-index {
    position: absolute;
    bottom: clamp(6px, 0.8vh, 12px);
    right: clamp(6px, 0.8vw, 12px);
    color: #888;
    font-size: clamp(8px, 0.9vw, 11px);
    font-family: 'Share Tech Mono', monospace;
}

.header-title {
    position: absolute !important;
    top: clamp(8px, 1%, 15px) !important;
    left: clamp(10px, 2%, 20px) !important;
    z-index: 30 !important;
    padding: clamp(0.3rem, 0.6%, 0.6rem) clamp(0.6rem, 0.9%, 0.9rem) !important;
    border: 1px solid #00ffcc !important;
    background: rgba(0, 20, 20, 0.85) !important;
    color: #00ffcc !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: clamp(11px, 1.2vw, 16px) !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 6px #00ffcc !important;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.25) !important;
    max-width: 85% !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    /* Ensure title has minimum height to prevent overlap */
    min-height: clamp(28px, 3.5vh, 45px) !important;
    line-height: 1.4 !important;
}

.header-subtitle {
    position: absolute !important;
    /* Position below title with enough space - responsive calculation */
    top: clamp(45px, 5.5vh, 70px) !important;
    left: clamp(10px, 2%, 20px) !important;
    z-index: 29 !important; /* Slightly lower than title */
    padding: clamp(0.2rem, 0.4%, 0.4rem) clamp(0.4rem, 0.7%, 0.7rem) !important;
    color: #888 !important;
    font-family: 'Share Tech Mono', monospace !important;
    font-size: clamp(7px, 0.8vw, 10px) !important;
    letter-spacing: 0.08em !important;
    max-width: 85% !important;
    margin: 0 !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    /* Ensure subtitle doesn't overlap with title */
    white-space: nowrap !important;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .header-title {
        font-size: clamp(10px, 1vw, 14px) !important;
        padding: clamp(0.25rem, 0.5%, 0.5rem) clamp(0.5rem, 0.8%, 0.8rem) !important;
        min-height: clamp(32px, 4vh, 50px) !important;
    }
    
    .header-subtitle {
        /* More space on mobile to ensure it's below title */
        top: clamp(50px, 6.5vh, 80px) !important;
        font-size: clamp(6px, 0.7vw, 9px) !important;
    }
}

.header-subtitle a {
    color: #00ffcc !important;
    text-decoration: none !important;
    text-shadow: 0 0 4px #00ffcc;
    transition: color 0.3s ease;
    border-bottom: none !important;
}

.header-subtitle a:hover {
    color: #00cc99;
    text-shadow: 0 0 6px #00cc99;
}

