/* Video Freshness Monitoring Styles */

/* Video Grid and Item Styles */
.video-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Freshness Status Borders and Backgrounds */
.video-item.freshness-fresh {
    border: 2px solid #28a745;
}

.video-item.freshness-warning {
    border: 2px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1, #ffffff);
}

.video-item.freshness-expired {
    border: 2px solid #dc3545;
    background: linear-gradient(135deg, #ffebee, #ffffff);
    opacity: 0.85;
}

.video-item.freshness-unknown {
    border: 2px solid #6c757d;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

/* Freshness Indicator Badge */
.freshness-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.8);
}

/* Video Information */
.video-info {
    padding: 16px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.video-source {
    font-weight: 500;
    color: #555;
}

.video-date {
    color: #777;
}

.video-age {
    color: #999;
    font-style: italic;
}

/* Content Category Badge */
.video-category {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    text-align: center;
}

.video-category:contains("⚡ Critical") {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.video-category:contains("🌿 Evergreen") {
    background: linear-gradient(135deg, #26de81, #20bf6b);
}

.video-category:contains("📚 Standard") {
    background: linear-gradient(135deg, #4834d4, #686de0);
}

/* Freshness Status Warnings */
.freshness-warning-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
}

.freshness-expired-text {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}

/* Video Categories Filter Enhancement */
.video-categories {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.category-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--color-secondary);
    background: var(--color-light);
}

.category-btn.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

/* Freshness Filter Buttons */
.freshness-filters {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.freshness-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.freshness-btn.fresh {
    border-color: #28a745;
    color: #28a745;
}

.freshness-btn.fresh.active {
    background: #28a745;
    color: white;
}

.freshness-btn.warning {
    border-color: #ffc107;
    color: #856404;
}

.freshness-btn.warning.active {
    background: #ffc107;
    color: #856404;
}

.freshness-btn.expired {
    border-color: #dc3545;
    color: #dc3545;
}

.freshness-btn.expired.active {
    background: #dc3545;
    color: white;
}

/* Video Placeholder Enhancement */
.video-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    color: #6c757d;
}

.video-placeholder h3 {
    margin-bottom: 16px;
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-grid-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .video-categories {
        flex-direction: column;
        gap: 12px;
    }
    
    .category-btn,
    .freshness-btn {
        width: 100%;
        text-align: center;
    }
    
    .video-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .freshness-indicator {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}