/**
 * Sekcja Filmy - Styling
 */

.video-section {
    background: #fff;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Video embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-duration svg {
    width: 14px;
    height: 14px;
}

/* Video thumbnail (fallback) */
.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(139, 195, 74, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.video-item:hover .play-overlay {
    background: rgba(139, 195, 74, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video content */
.video-content {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
}

.video-title a {
    color: var(--color-text, #333);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    min-height: 48px;
    min-width: 48px;
    padding: 8px 0;
    line-height: 1.5;
}

.video-title a:hover {
    color: var(--color-primary, #8bc34a);
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.video-meta .separator {
    color: #ddd;
}

.video-platform {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.video-platform.youtube {
    background: #c00000;
    color: #fff;
}

.video-platform.vimeo {
    background: #1ab7ea;
    color: #fff;
}

.video-excerpt {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Section footer */
.video-section .section-footer {
    margin-top: 3rem;
}

.video-section .section-footer .btn,
.video-section .section-footer a.btn-primary {
    display: inline-block;
    min-height: 48px;
    min-width: 48px;
    padding: 12px 30px;
    margin: 8px 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-content {
        padding: 1.25rem;
    }
}
