/* --- Global / Page Wrapper --- */
.vl-page-wrapper {
    min-height: 100vh;
    background-color: #f9fafb; /* Equivalent to bg-gray-50 */
    display: flex;
    flex-direction: column;
}

/* --- Navigation Placeholder (for context) --- */
.vl-navigation-placeholder {
    height: 80px; /* Example height for navigation */
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; /* Fix navigation to top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* --- Main Content Area --- */
.vl-main-content-area {
     /* Equivalent to pt-32 (32 * 0.25rem = 8rem) - to account for fixed nav */
    position: relative;
    min-height: calc(100vh - 80px); /* Adjust min-height to fill remaining viewport after nav */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keeps background fixed during scroll */
    display: flex;
    flex-direction: column; /* To make footer push to bottom if content is short */
}

.vl-main-content-area .container {
    position: relative;
}

.vl-background-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.5); /* Equivalent to bg-white/50 */
    backdrop-filter: blur(4px); /* Equivalent to backdrop-blur-sm */
    z-index: 0;
}

.vl-main-content-inner {
    position: relative;
    z-index: 10;
    flex-grow: 1; /* Allows content to push footer down */
    display: flex;
    flex-direction: column;
}

/* --- Header Section (Page Title & Search) --- */
.vl-header-section {
    padding-top: 2rem; /* Equivalent to py-16 */
    padding-bottom: 2rem; /* Equivalent to py-16 */
}

.vl-header-content-container {
    max-width: 80rem; /* Equivalent to max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem; /* Equivalent to px-4 */
    padding-right: 1rem;
}

@media (min-width: 640px) { /* sm breakpoint */
    .vl-header-content-container {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem;
    }
    .vl-header-section {
        padding-top: 4rem; /* Equivalent to py-16 */
        padding-bottom: 4rem; /* Equivalent to py-16 */
    }

}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-header-content-container {
        padding-left: 2rem; /* lg:px-8 */
        padding-right: 2rem;
    }
}

.vl-header-layout-grid {
    display: flex;
    flex-direction: column; /* Default: flex-col */
    align-items: center; /* items-center */
    justify-content: space-between; /* justify-between */
    gap: 1.5rem; /* gap-6 */
}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-header-layout-grid {
        flex-direction: row; /* lg:flex-row */
        text-align: left; /* reset text-align for lg */
    }
}

.vl-page-title {
    font-size: 1.5rem; /* Equivalent to text-2xl */
    font-weight: 700; /* Equivalent to font-bold */
    color: #1a202c; /* Equivalent to text-gray-900 */
    text-align: center; /* text-center */
}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-page-title {
        font-size: 1.875rem; /* Equivalent to lg:text-3xl */
        text-align: left; /* lg:text-left */
    }
}

/* Search Bar */
.vl-search-bar-container {
    width: 100%; /* Default w-full */
}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-search-bar-container {
        flex: 1; /* lg:flex-1 */
        max-width: 20rem; /* Equivalent to lg:max-w-sm (sm is 24rem, adjusted for example) */
        margin-left: 2rem; /* Equivalent to lg:ml-8 */
    }
}

.vl-search-input-wrapper {
    position: relative;
}

.vl-search-input {
    width: 100%; /* w-full */
    padding-left: 0.75rem; /* pl-3 */
    padding-right: 2.5rem; /* pr-10 (for icon) */
    padding-top: 0.5rem; /* py-2 */
    padding-bottom: 0.5rem; /* py-2 */
    border: 0;
    border-bottom: 1px solid var(--gray-300); /* border-b border-gray-300 */
    background-color: transparent; /* bg-transparent */
    color: var(--gray-900); /* text-gray-900 */
    font-size: 0.875rem; /* text-sm */
    transition: border-color 0.2s ease-in-out; /* transition-colors duration-200 */
    outline: none; /* focus:outline-none */
}

    .vl-search-input::placeholder {
        color: var(--gray-500); /* placeholder-gray-500 */
    }

    .vl-search-input:focus {
        border-color: var(--daikin-blue); /* focus:border-daikin-blue */
    }

.vl-search-icon-wrapper {
    position: absolute;
    inset: 0 auto;
    right: 0;
    padding-right: 0.5rem; /* pr-2 */
    display: flex;
    align-items: center;
    pointer-events: none;
}

.vl-search-icon {
    height: 1rem; /* h-4 */
    width: 1rem; /* w-4 */
    color: #9ca3af; /* text-gray-400 */
    stroke: currentColor;
}

/* --- Videos Section --- */
.vl-videos-section {
    padding-bottom: 3rem; /* pb-12 */
    flex-grow: 1; /* Allows this section to grow and take available space */
}

.vl-videos-grid-container {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 0rem; /* px-4 */
    padding-right: 0rem;
}

@media (min-width: 640px) { /* sm breakpoint */
    .vl-videos-grid-container {
        padding-left: 0rem; /* sm:px-6 */
        padding-right: 0rem;
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-videos-grid-container {
        padding-left: 0rem; /* lg:px-8 */
        padding-right: 0rem;
    }
}

/* No Videos Found Message */
.vl-no-videos-message {
    text-align: center;
    padding-top: 4rem; /* py-16 */
    padding-bottom: 4rem; /* py-16 */
    display: none; /* hidden by default, shown by JS */
}

.vl-no-videos-message:not(.hidden) {
    display: block;
}

.vl-no-videos-text {
    color: #4b5563; /* text-gray-700 */
    font-size: 1.25rem; /* text-xl */
}

/* Videos Grid */
.vl-videos-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* grid-cols-1 */
    gap: 2rem; /* gap-8 */
}

@media (min-width: 768px) { /* md breakpoint */
    .vl-videos-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}

@media (min-width: 1024px) { /* lg breakpoint */
    .vl-videos-grid {
        grid-template-columns: repeat(3, 1fr); /* lg:grid-cols-3 */
    }
}

/* --- Individual Video Card --- */
.vl-video-card {
    background-color: #fff; /* bg-white */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    overflow: hidden; /* overflow-hidden */
    cursor: pointer; /* cursor-pointer */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* transition-all duration-300 */
    border: 1px solid #e5e7eb; /* border border-gray-200 */
}

.vl-video-card.group:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* hover:shadow-lg */
    transform: scale(1.02); /* hover:scale-[1.02] */
}

.vl-video-card.group.hidden {
    display: none;
}

.vl-video-thumbnail-wrapper {
    position: relative;
}

.vl-video-thumbnail-aspect {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio for aspect-video */
    background-color: #f3f4f6; /* bg-gray-100 */
    overflow: hidden;
}

.vl-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* object-cover */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* transition-transform duration-300 */
}

.vl-video-card.group:hover .vl-video-thumbnail {
    transform: scale(1.05); /* group-hover:scale-105 */
}

.vl-video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0); /* bg-black bg-opacity-0 */
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* transition-all duration-300 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vl-video-card.group:hover .vl-video-overlay {
    background-color: rgba(0, 0, 0, 0.4); /* group-hover:bg-opacity-40 */
}

.vl-play-button-circle {
    background-color: var(--daikin-blue); /* bg-daikin-blue */
    color: #fff; /* text-white */
    border-radius: 9999px; /* rounded-full */
    padding: 0.75rem; /* p-3 */
    opacity: 0; /* opacity-0 */
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* transition-opacity duration-300 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.vl-video-card.group:hover .vl-play-button-circle {
    opacity: 1; /* group-hover:opacity-100 */
}

.vl-play-icon {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    fill: currentColor; /* fill-current */
    stroke: none; /* No stroke for fill-current icon */
}

.vl-video-details {
    padding: 1.5rem; /* p-6 */
}

.vl-video-title {
    font-weight: 600; /* font-semibold */
    color: #111827; /* text-gray-900 */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.75rem; /* mb-3 */
    line-height: 1.375; /* leading-tight */
    /* line-clamp-2 equivalent (requires -webkit-box for older browsers) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease-in-out; /* transition-colors duration-200 */
}

.vl-video-card.group:hover .vl-video-title {
    color: var(--daikin-blue); /* group-hover:text-daikin-blue */
}

.vl-video-description {
    color: var(--gray-600); /* text-gray-600 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5; /* leading-relaxed */
    /* line-clamp-2 equivalent */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Footer Placeholder --- */
.vl-footer-placeholder {
    height: 100px; /* Example height for footer */
    background-color: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Push footer to bottom */
}

/* --- Video Modal Styles --- */
.vl-video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Ensure it's on top of everything */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

    .vl-video-modal-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

.vl-video-modal-content {
    position: relative;
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 0.5rem;
    width: min(100%, 650px);
    height: auto;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.vl-video-modal-overlay.is-open .vl-video-modal-content {
    transform: scale(1);
}

.vl-video-modal-close-button {
    position: absolute;
    top: -2.5rem;
    right: -0.5rem;
    background: none;
    border: none;
    font-size: 2rem; /* Large 'X' */
    color: #fff; /* White close button */
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    z-index: 1010; /* Above modal content */
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

    .vl-video-modal-close-button:hover {
        opacity: 1;
    }

.vl-video-modal-player-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000; /* Black background behind video */
    border-radius: 0.25rem; /* Small radius for player */
}

.vl-video-modal-player-container iframe {
    aspect-ratio: 16 / 9;
    border: none; /* Remove iframe border */
}
