/* =========================================================
   VIDEO LIBRARY
   File: css/videos.css
========================================================= */

/* =========================================================
   00 — VARIABLES
========================================================= */

:root {
  --vl-green: var(--site-color-01, #0a7700);
  --vl-green-dark: var(--site-color-01-hover, #075700);
  --vl-green-light: #9fd798;

  --vl-dark: #171717;
  --vl-dark-soft: #222222;
  --vl-dark-card: #292929;

  --vl-white: #ffffff;
  --vl-off-white: #f5f6f4;

  --vl-text-dark: #222222;
  --vl-text-medium: #626262;

  --vl-border-dark: rgba(0, 0, 0, 0.1);
  --vl-border-light: rgba(255, 255, 255, 0.14);

  --vl-radius-small: 10px;
  --vl-radius-medium: 16px;
  --vl-radius-large: 24px;

  --vl-shadow-small: 0 10px 28px rgba(0, 0, 0, 0.08);

  --vl-shadow-medium: 0 18px 42px rgba(0, 0, 0, 0.14);

  --vl-shadow-large: 0 24px 60px rgba(0, 0, 0, 0.24);

  --vl-section-padding: 8rem;
}

/* =========================================================
   01 — GENERAL
========================================================= */

.vl-page {
  width: 100%;
}

.vl-section {
  position: relative;

  width: 100%;

  padding: var(--vl-section-padding) 0;
}

.vl-section img {
  display: block;

  max-width: 100%;
}

.vl-section-heading {
  max-width: 880px;

  margin: 0 auto 4.5rem;

  text-align: center;
}

.vl-section-heading .section-eyebrow {
  margin-bottom: 0.9rem;
}

.vl-section-heading h2 {
  margin-bottom: 1.5rem;

  color: var(--vl-text-dark);

  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;

  text-transform: none;
}

.vl-section-heading > p:not(.section-eyebrow) {
  max-width: 720px;

  margin: 0 auto;

  color: var(--vl-text-medium);

  font-size: 1.6rem;
  line-height: 1.7;
}

/* =========================================================
   02 — HERO
========================================================= */

.vl-hero {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 620px;

  overflow: hidden;

  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55)),
    url("/img/created/compressed_img/box_at_night.jpg") center / cover no-repeat;
}

.vl-hero-content {
  position: relative;

  z-index: 2;

  width: 100%;

  padding: 8rem 4rem;
}

.vl-hero-content > * {
  max-width: 760px;
}

.vl-hero-content .section-eyebrow {
  margin-bottom: 1.2rem;

  color: var(--vl-green-light);

  font-size: 1.3rem;
  font-weight: 900;

  letter-spacing: 0.08em;
}

.vl-hero-content h1 {
  margin-bottom: 1.8rem;

  color: #ffffff;

  font-size: clamp(4.2rem, 6vw, 6.5rem);
  font-weight: 900;
  line-height: 1.02;

  text-align: left;
  text-transform: none;

  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.vl-hero-content > p:not(.section-eyebrow) {
  max-width: 700px;

  margin-bottom: 2.8rem;

  color: rgba(255, 255, 255, 0.84);

  font-size: 1.7rem;
  line-height: 1.7;
}

.vl-hero .button {
  display: inline-flex;

  width: auto;
}

/* =========================================================
   03 — FEATURED VIDEO
========================================================= */

.vl-featured {
  background: linear-gradient(180deg, #f7f8f6, #eceeeb);
}

.vl-featured-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);

  gap: 4.5rem;

  align-items: center;

  max-width: 1180px;

  margin: 0 auto;
}

.vl-featured-video {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: var(--vl-radius-large);

  background-color: #000000;

  box-shadow: var(--vl-shadow-large);
}

.vl-featured-copy {
  padding-right: 1rem;
}

.vl-featured-copy h3 {
  margin-bottom: 1.5rem;

  color: var(--vl-text-dark);

  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.12;

  text-transform: none;
}

.vl-featured-copy > p:not(.vl-video-category) {
  margin-bottom: 2rem;

  color: var(--vl-text-medium);

  font-size: 1.55rem;
  line-height: 1.7;
}

/* =========================================================
   04 — VIDEO CATEGORY LABEL
========================================================= */

.vl-video-category {
  margin-bottom: 0.8rem;

  color: var(--vl-green);

  font-size: 1.1rem;
  font-weight: 900;

  text-transform: uppercase;

  letter-spacing: 0.08em;
}

/* =========================================================
   05 — LIBRARY SECTION
========================================================= */

.vl-library {
  background-color: #ffffff;
}

/* =========================================================
   06 — SEARCH + FILTERS
========================================================= */

.vl-library-tools {
  max-width: 1180px;

  margin: 0 auto 3rem;
}

.vl-search-wrap {
  max-width: 760px;

  margin: 0 auto 2.4rem;
}

.vl-search-label {
  display: block;

  margin-bottom: 0.7rem;

  color: var(--vl-text-dark);

  font-size: 1.1rem;
  font-weight: 800;
}

.vl-search-box {
  position: relative;
}

.vl-search-icon {
  position: absolute;

  top: 50%;
  left: 1.3rem;

  color: #777777;

  font-size: 1.6rem;

  transform: translateY(-50%);

  pointer-events: none;
}

.vl-search-input {
  width: 100%;

  padding: 1.2rem 1.4rem 1.2rem 3.8rem;

  border: 1px solid rgba(0, 0, 0, 0.14);

  border-radius: 999px;

  background-color: #ffffff;

  color: var(--vl-text-dark);

  font-size: 1.25rem;

  box-shadow: var(--vl-shadow-small);

  transition:
    border-color 250ms ease,
    box-shadow 250ms ease;
}

.vl-search-input:focus {
  outline: none;

  border-color: rgba(10, 119, 0, 0.5);

  box-shadow:
    0 0 0 4px rgba(10, 119, 0, 0.09),
    var(--vl-shadow-small);
}

.vl-search-input::placeholder {
  color: #999999;
}

/* =========================================================
   07 — FILTER BUTTONS
========================================================= */

.vl-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 0.8rem;
}

.vl-filter-button {
  padding: 0.85rem 1.25rem;

  border: 1px solid rgba(0, 0, 0, 0.12);

  border-radius: 999px;

  background-color: #f1f2f0;

  color: #444444;

  font-size: 1.05rem;
  font-weight: 800;

  cursor: pointer;

  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    transform 250ms ease;
}

.vl-filter-button:hover {
  transform: translateY(-2px);

  border-color: rgba(10, 119, 0, 0.35);

  color: var(--vl-green);
}

.vl-filter-button.active {
  border-color: var(--vl-green);

  background-color: var(--vl-green);

  color: #ffffff;
}

/* =========================================================
   08 — RESULT COUNT
========================================================= */

.vl-results-heading {
  max-width: 1180px;

  margin: 0 auto 1.8rem;
}

.vl-results-heading p {
  color: #777777;

  font-size: 1.1rem;
}

.vl-results-heading strong {
  color: var(--vl-text-dark);
}

/* =========================================================
   09 — VIDEO GRID
========================================================= */

.vl-video-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 2.2rem;

  max-width: 1180px;

  margin: 0 auto;
}

/* =========================================================
   10 — VIDEO CARDS
========================================================= */

.vl-video-card {
  display: flex;
  flex-direction: column;

  min-width: 0;

  overflow: hidden;

  border: 1px solid rgba(0, 0, 0, 0.1);

  border-radius: var(--vl-radius-medium);

  background-color: #ffffff;

  box-shadow: var(--vl-shadow-small);

  transition:
    transform 350ms ease,
    box-shadow 350ms ease,
    border-color 350ms ease;
}

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

  border-color: rgba(10, 119, 0, 0.25);

  box-shadow: var(--vl-shadow-medium);
}

.vl-video-card[hidden] {
  display: none !important;
}

/* =========================================================
   11 — VIDEO PREVIEW
========================================================= */

.vl-video-card .youtube-video {
  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  overflow: hidden;

  background-color: #000000;
}

.youtube-video {
  position: relative;

  overflow: hidden;
}

.youtube-preview {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  cursor: pointer;
}

.youtube-preview-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 600ms ease,
    filter 600ms ease;
}

.vl-video-card:hover .youtube-preview-image {
  transform: scale(1.025);

  filter: brightness(0.92);
}

/* =========================================================
   12 — PLAY BUTTON
========================================================= */

.youtube-preview-play {
  position: absolute;

  top: 50%;
  left: 50%;

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

  width: 64px;
  height: 46px;

  border-radius: 12px;

  background-color: rgba(255, 0, 0, 0.94);

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.32);

  transform: translate(-50%, -50%);

  transition:
    transform 250ms ease,
    background-color 250ms ease;
}

.youtube-preview:hover .youtube-preview-play {
  transform: translate(-50%, -50%) scale(1.08);

  background-color: #ff0000;
}

.youtube-preview-play-icon {
  width: 0;
  height: 0;

  margin-left: 4px;

  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #ffffff;
}

/* =========================================================
   13 — GENERATED YOUTUBE IFRAME
========================================================= */

.youtube-video iframe {
  position: absolute;

  inset: 0;

  display: block;

  width: 100% !important;
  height: 100% !important;

  border: 0;
}

/* =========================================================
   14 — CARD CONTENT
========================================================= */

.vl-video-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 1.8rem;
}

.vl-video-card-content h3 {
  margin-bottom: 1rem;

  color: var(--vl-text-dark);

  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.25;

  text-transform: none;
}

.vl-video-card-content > p:not(.vl-video-category) {
  margin-bottom: 1.5rem;

  color: var(--vl-text-medium);

  font-size: 1.25rem;
  line-height: 1.6;
}

.vl-related-link {
  display: inline-flex;

  width: fit-content;

  margin-top: auto;

  padding-top: 0.6rem;

  color: var(--vl-green);

  font-size: 1.1rem;
  font-weight: 900;

  text-decoration: none;

  border-bottom: 1px solid rgba(10, 119, 0, 0.35);

  transition:
    color 250ms ease,
    border-color 250ms ease;
}

.vl-related-link:hover {
  color: var(--vl-green-dark);

  border-bottom-color: var(--vl-green-dark);
}

/* =========================================================
   15 — NO RESULTS
========================================================= */

.vl-no-results {
  max-width: 620px;

  margin: 5rem auto 0;

  padding: 3.5rem;

  border: 1px dashed rgba(0, 0, 0, 0.16);

  border-radius: var(--vl-radius-medium);

  background-color: var(--vl-off-white);

  text-align: center;
}

.vl-no-results h3 {
  margin-bottom: 0.8rem;

  color: var(--vl-text-dark);

  font-size: 2.2rem;
  font-weight: 900;
}

.vl-no-results p {
  margin: 0;

  color: var(--vl-text-medium);

  font-size: 1.3rem;
}

/* =========================================================
   16 — YOUTUBE CTA
========================================================= */

.vl-youtube-cta {
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 10%, rgba(10, 119, 0, 0.24), transparent 35%),
    radial-gradient(circle at 90% 70%, rgba(150, 0, 0, 0.12), transparent 35%),
    linear-gradient(145deg, #151515, #292929);
}

.vl-youtube-cta-content {
  max-width: 880px;

  text-align: center;
}

.vl-youtube-cta-content .section-eyebrow {
  color: var(--vl-green-light);
}

.vl-youtube-cta-content h2 {
  margin-bottom: 1.5rem;

  color: #ffffff;

  font-size: clamp(3.2rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;

  text-transform: none;
}

.vl-youtube-cta-content > p:not(.section-eyebrow) {
  max-width: 700px;

  margin: 0 auto 2.6rem;

  color: rgba(255, 255, 255, 0.74);

  font-size: 1.6rem;
  line-height: 1.7;
}

/* =========================================================
   17 — TABLET
========================================================= */

@media only screen and (max-width: 1000px) {
  :root {
    --vl-section-padding: 6.5rem;
  }

  .vl-featured-layout {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .vl-featured-copy {
    max-width: 760px;

    padding-right: 0;

    margin: 0 auto;
  }

  .vl-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vl-featured-layout,
  .vl-library-tools,
  .vl-results-heading,
  .vl-video-grid {
    width: calc(100% - 3rem);
  }
}

/* =========================================================
   18 — SMALL TABLET
========================================================= */

@media only screen and (max-width: 760px) {
  :root {
    --vl-section-padding: 5rem;
  }

  .vl-hero {
    min-height: 560px;
  }

  .vl-hero-content {
    padding: 7rem 2rem 5.5rem;
  }

  .vl-hero-content h1 {
    font-size: clamp(3.6rem, 10vw, 4.8rem);
  }

  .vl-section-heading {
    margin-bottom: 3.5rem;

    text-align: left;
  }

  .vl-section-heading > p:not(.section-eyebrow) {
    margin-left: 0;
  }

  .vl-featured-copy {
    text-align: left;
  }

  .vl-filter-bar {
    justify-content: flex-start;
  }

  .vl-youtube-cta-content {
    text-align: left;
  }

  .vl-youtube-cta-content > p:not(.section-eyebrow) {
    margin-left: 0;
  }
}

/* =========================================================
   19 — MOBILE
========================================================= */

@media only screen and (max-width: 600px) {
  :root {
    --vl-section-padding: 4.5rem;
  }

  .vl-hero {
    min-height: 520px;

    background-position: 60% center;
  }

  .vl-hero-content h1 {
    font-size: clamp(3.3rem, 12vw, 4.5rem);
  }

  .vl-hero-content > p:not(.section-eyebrow) {
    font-size: 1.45rem;
  }

  .vl-section-heading h2 {
    font-size: 3rem;
  }

  .vl-section-heading > p:not(.section-eyebrow) {
    font-size: 1.45rem;
  }

  .vl-featured-layout,
  .vl-library-tools,
  .vl-results-heading,
  .vl-video-grid {
    width: 100%;
  }

  .vl-video-grid {
    grid-template-columns: 1fr;
  }

  .vl-search-input {
    font-size: 1.1rem;
  }

  .vl-filter-bar {
    gap: 0.6rem;
  }

  .vl-filter-button {
    padding: 0.7rem 1rem;

    font-size: 0.95rem;
  }

  .vl-video-card-content {
    padding: 1.5rem;
  }

  .vl-video-card-content h3 {
    font-size: 1.6rem;
  }

  .vl-video-card-content > p:not(.vl-video-category) {
    font-size: 1.15rem;
  }

  .youtube-preview-play {
    width: 56px;
    height: 40px;
  }

  .vl-youtube-cta-content h2 {
    font-size: 3rem;
  }

  .vl-youtube-cta-content > p:not(.section-eyebrow) {
    font-size: 1.45rem;
  }
}

/* =========================================================
   20 — REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .vl-page *,
  .vl-page *::before,
  .vl-page *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
