/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Container & Grid Setup */
.yt-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Enforces 2 equal columns */
  gap: 50px;
  width: 100%;
  background-color: transparent;
}

/* Individual Video Card */
.yt-card {
  background: #0a0a0a;
  border: 1px solid rgba(234, 230, 225, 0.12);
  border-radius: 4px; /* Crisp, architectural corners */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-card:hover {
  border-color: rgba(234, 230, 225, 0.5);
  transform: translateY(-4px);
}

/* Media Area & Scaling Controls */
.yt-thumbnail-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #050505;
}

.yt-thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(105%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.yt-card:hover .yt-thumbnail-wrapper img {
  transform: scale(1.04);
  filter: grayscale(0%) contrast(100%);
}

/* Clean Play Overlay */
.yt-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.yt-play-overlay svg {
  width: 42px;
  height: 42px;
  fill: #eae6e1;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.yt-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-card:hover .yt-play-overlay svg {
  transform: scale(1);
}

/* Minimalist Duration Pill */
.yt-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #0a0a0a;
  color: #eae6e1;
  font-family: monospace, sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid rgba(234, 230, 225, 0.2);
  line-height: 1;
  z-index: 2;
}

/* Editorial Typography */
.yt-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.yt-title {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-title a {
  color: #eae6e1;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.yt-title a:hover {
  opacity: 0.75;
}

/* Date & Meta Display */
.yt-date {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(234, 230, 225, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .yt-grid-container {
    grid-template-columns: 1fr; /* Collapses to 1 column on smaller devices */
    gap: 20px;
  }
}

/* Load More Button Wrapper */
.yt-load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 48px;
  width: 100%;
}

/* Load More Button */
#yt-load-more-btn {
  background: transparent;
  color: #eae6e1;
  border: 1px solid rgba(234, 230, 225, 0.3);
  padding: 14px 36px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#yt-load-more-btn:hover {
  background: #eae6e1;
  color: #0a0a0a;
  border-color: #eae6e1;
}

#yt-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(234, 230, 225, 0.15);
}
