/**
 * Tactical Video Engine Styles
 * Professional video-style controls and UI
 */

.tactical-video-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(180deg, #07111d 0%, #0b1622 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.tactical-video-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

/* Video Controls */
.tactical-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tactical-video-container:hover .tactical-video-controls {
    opacity: 1;
}

/* Control Buttons */
.tv-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.tv-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.tv-btn:active {
    transform: scale(0.95);
}

.tv-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Record Button */
.tv-record {
    background: rgba(230, 57, 70, 0.3);
    position: relative;
}

.tv-record::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #e63946;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s;
}

.tv-record.recording::after {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    animation: pulse-record 1s infinite;
}

@keyframes pulse-record {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Export GIF Button */
.tv-export-gif {
    background: rgba(76, 175, 80, 0.3);
}

.tv-export-gif svg {
    fill: #4caf50;
}

/* Timeline */
.tv-timeline {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.tv-progress {
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.tv-scrubber {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

/* Time Display */
.tv-time {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    min-width: 100px;
    text-align: center;
}

/* Export Modal */
.tv-export-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tv-export-modal-content {
    background: linear-gradient(180deg, #1a2332 0%, #0b1622 100%);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
}

.tv-export-modal h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 24px;
}

.tv-export-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.tv-export-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    min-width: 120px;
}

.tv-export-option:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tv-export-option svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    fill: currentColor;
}

.tv-export-option span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

/* Loading Spinner */
.tv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .tactical-video-controls {
        opacity: 1;
        padding: 0 10px;
        gap: 8px;
    }
    
    .tv-btn {
        width: 36px;
        height: 36px;
    }
    
    .tv-time {
        font-size: 12px;
        min-width: 80px;
    }
}
