/**
 * Scootercam Video Player Styles
 * Version: 1.0.0
 */

/* Live Video Player */
.scootercam-live-player {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.scootercam-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.scootercam-camera-selector label,
.scootercam-filter-group label {
    margin-right: 10px;
    font-weight: 600;
}

.scootercam-camera-select,
.scootercam-timelapse-camera,
.scootercam-timelapse-period,
#timelapse-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.scootercam-video-type {
    display: flex;
    gap: 10px;
}

.scootercam-type-btn {
    padding: 10px 20px;
    border: 2px solid #0073aa;
    background: white;
    color: #0073aa;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.scootercam-type-btn:hover {
    background: #f0f0f0;
}

.scootercam-type-btn.active {
    background: #0073aa;
    color: white;
}

.scootercam-type-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Video Container */
.scootercam-video-container {
    position: relative;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.scootercam-video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

.scootercam-poster-fallback {
    width: 100%;
}

.scootercam-poster-fallback picture {
    display: block;
    width: 100%;
}

.scootercam-poster-fallback img {
    width: 100%;
    height: auto;
    display: block;
}

.scootercam-video-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #ddd;
    font-size: 14px;
    color: #666;
}

.scootercam-timestamp {
    font-weight: 600;
}

.scootercam-size {
    color: #999;
}

/* No Content States */
.scootercam-no-video,
.scootercam-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #f9f9f9;
    color: #666;
}

.scootercam-no-video picture {
    max-width: 100%;
    margin-bottom: 20px;
}

.scootercam-no-video p,
.scootercam-no-image {
    font-size: 18px;
    margin: 0;
}

.scootercam-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
    color: #c33;
    text-align: center;
}

/* Loading State */
.scootercam-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 40px;
    border-radius: 4px;
    font-size: 16px;
    z-index: 100;
}

/* Timelapse Browser */
.scootercam-timelapse-browser {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.scootercam-timelapse-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 4px;
    align-items: flex-end;
}

.scootercam-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.scootercam-btn {
    padding: 10px 30px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s ease;
}

.scootercam-btn:hover {
    background: #005a87;
}

.scootercam-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.scootercam-timelapse-player {
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    min-height: 400px;
}

.scootercam-timelapse-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: #999;
    font-size: 18px;
}

/* Responsive Picture Elements */
.scootercam-poster picture {
    display: block;
    width: 100%;
}

.scootercam-poster img {
    width: 100%;
    height: auto;
    display: block;
}

/* Snapshot Shortcode */
.scootercam-snapshot-container {
    max-width: 100%;
    margin: 20px 0;
}

.scootercam-snapshot-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.scootercam-snapshot-link:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.scootercam-snapshot-link::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scootercam-snapshot-link:hover::after {
    opacity: 0.9;
}

.scootercam-snapshot-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.scootercam-camera-name {
    font-weight: 600;
    color: #333;
}

.scootercam-snapshot-time {
    color: #999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .scootercam-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scootercam-camera-selector,
    .scootercam-video-type {
        width: 100%;
    }
    
    .scootercam-video-type {
        justify-content: stretch;
    }
    
    .scootercam-type-btn {
        flex: 1;
    }
    
    .scootercam-timelapse-filters {
        flex-direction: column;
    }
    
    .scootercam-filter-group {
        width: 100%;
    }
    
    .scootercam-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .scootercam-live-player,
    .scootercam-timelapse-browser {
        padding: 10px;
    }
    
    .scootercam-type-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .scootercam-video-info {
        flex-direction: column;
        gap: 5px;
    }
}
