/**
 * Live View Image Simulator - Public CSS
 * Styles for the live view simulation on the frontend
 */

.lvs-simulator-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.lvs-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.lvs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

/* Clock Styles */
.lvs-clock {
    position: absolute;
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
    z-index: 10;
    transform: translate(-50%, -50%);
    user-select: none;
}

.lvs-clock-digital {
    min-width: 125px;
    text-align: center;
}

.lvs-clock-basic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 0;
}

.lvs-clock-modern {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.lvs-clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0% 0%;
    pointer-events: none;
}

.lvs-clock-hour, .lvs-clock-minute, .lvs-clock-second {
    background-color: currentColor;
}

.lvs-clock-hour {
    width: 2px;
    height: 20px;
    margin-top: -1px;
    margin-left: -1px;
}

.lvs-clock-minute {
    width: 2px;
    height: 25px;
    margin-top: -1px;
    margin-left: -1px;
}

.lvs-clock-second {
    width: 1px;
    height: 28px;
    margin-top: -0.5px;
    margin-left: -0.5px;
    background-color: rgba(255, 0, 0, 0.7);
}

.lvs-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    margin-left: -3px;
    background-color: currentColor;
    border-radius: 50%;
    z-index: 11;
}

/* Ticker Styles */
.lvs-ticker {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(255, 0, 0, 0.8);
    overflow: hidden;
    z-index: 10;
}

.lvs-ticker-content {
    white-space: nowrap;
    padding: 5px 0;
    animation: lvs-ticker-scroll linear infinite;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.lvs-live-indicator {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.9);
    color: #f00;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 3px;
    margin-right: 10px;
    animation: lvs-pulse 2s infinite;
}

/* Static and scan line effects */
.lvs-static-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyAQMAAAAk8RryAAAABlBMVEUAAAD///+l2Z/dAAAAAnRSTlP/AOW3MEoAAAAZSURBVBjTY6AZYPz/HwzRVMZQk0cNHs4AAKJyDq6bwid9AAAAAElFTkSuQmCC');
    opacity: 0.03;
    pointer-events: none;
    z-index: 5;
}

.lvs-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    animation: lvs-scan-line 8s linear infinite;
    pointer-events: none;
    z-index: 6;
    opacity: 0.7;
}

.lvs-glitch:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 255, 0.05);
    mix-blend-mode: color;
    z-index: 7;
    pointer-events: none;
}

/* Animations */
@keyframes lvs-ticker-scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes lvs-scan-line {
    0% {
        top: -2px;
    }
    100% {
        top: 100%;
    }
}

@keyframes lvs-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lvs-clock {
        font-size: 14px;
    }
    
    .lvs-clock-basic, .lvs-clock-modern {
        width: 50px;
        height: 50px;
    }
    
    .lvs-ticker {
        height: 25px;
    }
    
    .lvs-ticker-content {
        font-size: 12px;
    }
}
