/* =======================================
   video.css - Simple YouTube Videos Page
   Use with skats.css and rakstiem.css as base
   ======================================= */

/* Video section */
.video-section {
    margin: 32px 0;
}

.video-section h2 {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

/* Simple video grid */
.video-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Video cards - reuse your existing card styles */
.video-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Let YouTube iframe be responsive naturally */
.video-card iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

/* Video info - reuse existing styles */
.video-info {
    padding: 16px 18px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

.video-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Channel link */
.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    margin: 24px 0;
    padding: 10px 16px;
    background: rgba(30, 106, 103, 0.08);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.channel-link:hover {
    background: rgba(30, 106, 103, 0.15);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}