/**
 * Vector Security Widget CSS
 * Frontend [vector] shortcode styling
 * 
 * @version 7.0.0 WRAITH
 * @author Bitghost.com
 */

:root {
    --vector-black: #000000;
    --vector-surface: #0a0a0a;
    --vector-card: #111111;
    --vector-border: #222222;
    --vector-muted: #666666;
    --vector-text: #999999;
    --vector-text-light: #cccccc;
    --vector-white: #ffffff;
    --vector-green: #00ff88;
    --vector-radius: 12px;
    --vector-radius-lg: 22px;
}

/* Base Widget */
.vector-widget {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    box-sizing: border-box;
}

.vector-widget *,
.vector-widget *::before,
.vector-widget *::after {
    box-sizing: inherit;
}

/* Widget Inner Container */
.vector-widget-inner {
    position: relative;
    background: var(--vector-black);
    border: 1px solid var(--vector-border);
    border-radius: var(--vector-radius-lg);
    padding: 12px 16px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
}

/* Shimmer Effect */
.vector-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: vector-shimmer 3s ease-in-out infinite;
}

@keyframes vector-shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

/* Content Layout */
.vector-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Brand Section */
.vector-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vector-logo {
    font-size: 16px;
    color: var(--vector-white);
}

.vector-name {
    font-weight: 600;
    color: var(--vector-white);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}

.vector-divider {
    color: var(--vector-border);
}

.vector-link {
    color: var(--vector-muted);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.2s ease;
}

.vector-link:hover {
    color: var(--vector-text-light);
}

/* Status Section */
.vector-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
}

.vector-dot {
    width: 6px;
    height: 6px;
    background: var(--vector-green);
    border-radius: 50%;
    animation: vector-pulse 2s ease-in-out infinite;
}

@keyframes vector-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--vector-green); }
    50% { opacity: 0.5; box-shadow: none; }
}

.vector-status-text {
    color: var(--vector-green);
    font-size: 10px;
    font-weight: 500;
}

/* Visitor Info Section */
.vector-visitor-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--vector-card);
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    color: var(--vector-text);
}

.vector-visitor-info .vector-flag {
    font-size: 14px;
}

.vector-visitor-info .vector-ip {
    color: var(--vector-text-light);
}

.vector-visitor-info .vector-location {
    color: var(--vector-muted);
}

.vector-loading {
    color: var(--vector-muted);
    font-style: italic;
}

/* Style Variations */

/* Minimal Style */
.vector-style-minimal .vector-widget-inner {
    padding: 8px 12px;
    border-radius: var(--vector-radius);
}

.vector-style-minimal .vector-brand {
    gap: 4px;
}

.vector-style-minimal .vector-status {
    padding: 2px 8px;
}

.vector-style-minimal .vector-visitor-info {
    padding: 2px 8px;
}

/* Card Style (Default) */
.vector-style-card .vector-widget-inner {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hidden Style - Only tracking, no visual */
.vector-style-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* Position Variations */
.vector-fixed-bottom {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.vector-fixed-top {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 600px) {
    .vector-widget-inner {
        padding: 10px 12px;
    }
    
    .vector-content {
        gap: 8px;
    }
    
    .vector-brand .vector-link {
        display: none;
    }
    
    .vector-brand .vector-divider {
        display: none;
    }
    
    .vector-fixed-bottom,
    .vector-fixed-top {
        left: 10px;
        right: 10px;
    }
    
    .vector-fixed-bottom .vector-widget-inner,
    .vector-fixed-top .vector-widget-inner {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support (already dark) */
@media (prefers-color-scheme: dark) {
    .vector-widget-inner {
        background: var(--vector-black);
    }
}

/* Animation for entrance */
.vector-widget-inner {
    animation: vector-fade-in 0.5s ease-out;
}

@keyframes vector-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
