/*
Theme Name: Hibiscus Video Theme
Theme URI: https://hibiscustechnolab.com/
Author: Hibiscus Technolab
Author URI: https://hibiscustechnolab.com/
Description: A modern YouTube-style video grid theme with search and pagination.
Version: 1.2
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hibiscus-video-theme
Tags: video, grid, responsive, blog, custom-post-type
*/

/* =========================
   GLOBAL RESET
========================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #000;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   HEADER (YouTube Style)
========================= */
.yt-header {
    position: sticky;
    top: 0;
    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 30px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* LOGO */
.logo a {
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

/* SEARCH BAR */
.search-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.search-box input {
    width: 60%;
    max-width: 500px;
    padding: 10px 18px;
    border-radius: 25px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.search-box input:focus {
    border-color: #000;
}

/* =========================
   WRAPPER
========================= */
.video-wrapper {
    width: 100%;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* =========================
   GRID LAYOUT
========================= */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* =========================
   VIDEO CARD
========================= */
.video-card {
    display: block;
    color: #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

/* THUMBNAIL */
.thumb-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   VIDEO INFO
========================= */
.video-info {
    margin-top: 10px;
}

/* TITLE */
.video-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   PAGINATION
========================= */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    margin: 5px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #000;
    font-size: 14px;
}

.pagination a:hover {
    background: #000;
    color: #fff;
}

.pagination .current {
    background: #000;
    color: #fff;
}

/* =========================
   EMPTY STATE
========================= */
.video-grid p {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #777;
}
.video-info h3
{
    font-weight:600;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    .yt-header {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .search-box input {
        width: 100%;
    }

    .video-wrapper {
        padding: 15px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {

    .logo a {
        font-size: 18px;
    }

    .video-title {
        font-size: 14px;
    }
}