/* css/videos.css */

.videos-section {
    padding: 60px 0;
    background: var(--bg-color);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.video-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000000;
    cursor: pointer;
}

.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail-container img {
    opacity: 0.7;
    transform: scale(1.05);
}

.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-on-primary, #000);
    font-size: 24px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(229, 169, 59, 0.4);
}

.video-card:hover .play-overlay-btn {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 25px rgba(229, 169, 59, 0.6);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.video-info-body {
    padding: 20px;
}

.video-info-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-info-body p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.video-views-meta {
    font-size: 12px;
    color: var(--text-light);
}

/* Playback Modal Container Styling */
.video-player-container {
    width: 100%;
    height: 380px;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-player-container iframe, .video-player-container video {
    width: 100%;
    height: 100%;
    border: none;
}

.video-sim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
}

.video-sim-overlay span {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.video-sim-overlay h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-sim-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.video-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.8);
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.video-popup-content{
    width:85%;
    max-width:900px;
    position:relative;
}

.video-popup iframe{
    width:100%;
    aspect-ratio:16/9;
    border:none;
}

.close-video{
    position:absolute;
    top:-40px;
    right:0;
    color:white;
    font-size:40px;
    cursor:pointer;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}
