/* Live Camera Button Styles */

#live-camera-button-container {
    position: fixed;
    z-index: 9999;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

#live-camera-button-container.live-camera-button-right {
    right: 20px;
}

#live-camera-button-container.live-camera-button-left {
    left: 0;
}

#live-camera-button {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 4px 4px 4px 4px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3), 0 2px 8px rgba(2, 132, 199, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.3px;
    text-transform: none;
}

#live-camera-button:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4), 0 3px 10px rgba(2, 132, 199, 0.3);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #075985 100%);
}

#live-camera-button:active {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3), 0 2px 8px rgba(2, 132, 199, 0.2);
}

#live-camera-button:focus,
#live-camera-button:focus-visible,
#live-camera-button:active {
    outline: none;
    border: none;
}

.live-camera-icon {
    display: none; /* Peida ikoon */
}

.live-camera-text {
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.live-camera-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.live-camera-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.live-camera-modal-content {
    position: relative;
    background-color: #000;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 9999999 !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.live-camera-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000000 !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.live-camera-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.live-camera-frame-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-height: calc(90vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    flex: 1;
    overflow: hidden;
}

#live-camera-player-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#live-camera-player-container > div {
    width: 100% !important;
    height: 100% !important;
}

#live-camera-frame {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

.live-camera-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    padding: 40px;
    text-align: center;
}

.live-camera-placeholder p {
    font-size: 18px;
    margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    #live-camera-button {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .live-camera-text {
        display: block; /* Näita teksti ka mobiilil */
    }
    
    .live-camera-icon {
        display: none; /* Ikka peidetud */
    }
    
    #live-camera-button-container {
        top: 50%;
        transform: translateY(-50%);
    }
    
    #live-camera-button-container.live-camera-button-right {
        right: 10px;
    }
    
    #live-camera-button-container.live-camera-button-left {
        left: 0;
    }
    
    .live-camera-modal.active {
        padding: 10px;
    }
    
    .live-camera-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 95vh;
        padding: 10px;
        border-radius: 5px;
        margin: 0;
    }
    
    .live-camera-frame-container {
        width: 100%;
        min-height: 250px;
        max-height: calc(95vh - 60px);
        height: auto;
    }
    
    #live-camera-player-container {
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
        max-height: calc(95vh - 60px);
    }
    
    #live-camera-player-container > div {
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
        max-height: calc(95vh - 60px);
    }
    
    #live-camera-frame {
        width: 100% !important;
        height: auto !important;
        min-height: 250px;
        max-height: calc(95vh - 60px);
    }
    
    .live-camera-close {
        top: 5px;
        right: 5px;
        font-size: 28px;
        width: 32px;
        height: 32px;
    }
}

