/* Video Streaming Plugin Styles */

/* Admin Styles */
.vs-admin-container {
    margin-top: 20px;
}

.vs-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.vs-status-pending {
    background-color: #f0f0f0;
    color: #666;
}

.vs-status-encoding {
    background-color: #fff3cd;
    color: #856404;
}

.vs-status-completed {
    background-color: #d4edda;
    color: #155724;
}

.vs-status-failed {
    background-color: #f8d7da;
    color: #721c24;
}

.vs-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 4px;
    overflow: hidden;
}

.vs-progress-fill {
    height: 100%;
    background-color: #007cba;
    transition: width 0.3s ease;
}

.vs-delete-video {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.vs-delete-video:hover {
    background-color: #c82333;
}

/* Frontend Video Player Styles */
.vs-video-player {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vs-video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.vs-video-title {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 10px 0;
    color: #333;
}

.vs-video-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Video List Styles */
.vs-video-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.vs-video-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.vs-video-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vs-video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.vs-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vs-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.vs-video-info {
    padding: 15px;
}

.vs-video-card .vs-video-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    color: #333;
}

.vs-video-card .vs-video-description {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
}

.vs-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vs-video-size {
    font-size: 12px;
    color: #999;
}

.vs-watch-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.vs-watch-btn:hover {
    background: #005a87;
    color: white;
}

/* Login Required Styles */
.vs-login-required,
.vs-product-required {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    direction: rtl;
}

.vs-login-icon,
.vs-product-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.vs-login-required h3,
.vs-product-required h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
}

.vs-login-required p,
.vs-product-required p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.vs-login-btn,
.vs-product-btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vs-login-btn:hover,
.vs-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* User Videos Styles */
.vs-user-videos {
    margin: 20px 0;
}

.vs-user-videos h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.vs-user-video-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
}

.vs-user-video-item h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.vs-user-video-item p {
    color: #666;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vs-video-list {
        grid-template-columns: 1fr;
    }
    
    .vs-video-thumbnail {
        height: 150px;
    }
    
    .vs-login-required,
    .vs-product-required {
        padding: 30px 15px;
    }
    
    .vs-login-icon,
    .vs-product-icon {
        font-size: 36px;
    }
}

/* Loading Animation */
.vs-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: vs-spin 1s linear infinite;
}

@keyframes vs-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.vs-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #f5c6cb;
}

.vs-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
    border: 1px solid #c3e6cb;
}
