/* Camera Button */
.camera-button {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 150, 255, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.camera-button:hover {
    background: rgba(0, 150, 255, 1);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.camera-button:disabled {
    background: rgba(100, 100, 100, 0.7);
    cursor: not-allowed;
    transform: translateX(-50%);
}

/* Streaming Banner */
.streaming-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    z-index: 1000;
    max-height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
}

.video-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.video-wrapper {
    position: relative;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.video-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.local-video-wrapper {
    border-color: rgba(0, 150, 255, 0.6);
}

.local-video, .remote-video {
    width: 160px;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px 10px 6px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.mute-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mute-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.stream-controls {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.stop-stream-button {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stop-stream-button:hover {
    background: rgba(255, 0, 0, 1);
    transform: translateY(-1px);
}

/* Death Overlay */
.death-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: deathOverlayFadeIn 0.5s ease-out;
}

.death-overlay-content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.death-overlay h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: pulse 1s ease-in-out infinite alternate;
}

.death-overlay h2 {
    font-size: 24px;
    font-weight: normal;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.respawn-countdown {
    font-size: 18px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
}

@keyframes deathOverlayFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Spectator Panel (for future implementation) */
.spectator-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    padding: 20px;
    z-index: 999;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.spectator-panel h3 {
    color: white;
    margin: 0 0 15px 0;
    font-size: 18px;
    text-align: center;
}

.spectator-stream {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.spectator-stream video {
    width: 100%;
    height: auto;
    display: block;
}

.spectator-stream-info {
    padding: 10px;
    color: white;
    font-size: 12px;
}

.spectator-stream-info .player-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.spectator-stream-info .player-stats {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .streaming-banner {
        padding: 10px;
        max-height: 150px;
    }
    
    .local-video, .remote-video {
        width: 120px;
        height: 90px;
    }
    
    .camera-button {
        top: 20px;
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .death-overlay h1 {
        font-size: 36px;
    }
    
    .death-overlay h2 {
        font-size: 18px;
    }
    
    .spectator-panel {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .streaming-banner {
        padding: 8px;
        max-height: 120px;
    }
    
    .local-video, .remote-video {
        width: 100px;
        height: 75px;
    }
    
    .video-name-overlay {
        font-size: 10px;
        padding: 6px 8px 4px;
    }
    
    .mute-button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .death-overlay h1 {
        font-size: 28px;
    }
    
    .death-overlay h2 {
        font-size: 16px;
    }
    
    .respawn-countdown {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* Loading States */
.camera-button.loading {
    animation: buttonPulse 1.5s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Connection Status Indicators */
.video-wrapper.connecting::after {
    content: "Connecting...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.video-wrapper.error::after {
    content: "Connection Failed";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
} 