/* 
 * Video Library Front-End Styling
 * Author: Henock Yohannes
 */

/* === General === */
.vl-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.vl-grid-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease;
}

.vl-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.vl-thumbnail {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 160px;
}

.vl-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 28px;
    padding: 10px 15px;
    border-radius: 50%;
}

.vl-title {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 5px;
    padding: 0 10px;
    color: #333;
}

.vl-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.vl-empty {
    text-align: center;
    font-style: italic;
    color: #777;
}

/* === Single Video Page === */
.vl-single-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.vl-player {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.vl-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* === Comments === */
.vl-comments-section {
    margin-top: 25px;
}

.vl-comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.vl-comment-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.vl-comment-text {
    font-size: 14px;
    color: #222;
}

.vl-comment-form label {
    font-weight: 600;
    color: #333;
}

.vl-comment-form input[type="text"],
.vl-comment-form input[type="email"],
.vl-comment-form textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    margin-top: 5px;
}

/* === Pagination === */
.vl-pagination {
    margin-top: 15px;
    text-align: center;
}

.vl-page-link {
    display: inline-block;
    background: #f1f1f1;
    padding: 6px 10px;
    margin: 2px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.vl-page-link:hover {
    background: #0073aa;
    color: white;
}

.vl-active-page {
    background: #0073aa;
    color: white;
}

/* === Mobile Adjustments === */
@media (max-width: 600px) {
    .vl-grid-container {
        grid-template-columns: 1fr;
    }
    .vl-single-container iframe {
        height: 260px;
    }
}
