/**
 * Tenbit Video Masterclasses & Lightbox Styles
 * Author: Team Tenbit Solution
 * URL: https://tenbitsol.com
 */

:root {
  --tenbit-brand-red: #c91818;
  --tenbit-brand-gold: #e5a93c;
  --tenbit-font-heading: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tenbit-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tenbit-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenbit-video-masterclass-wrap {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--tenbit-font-body);
}

.tenbit-masterclass-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .tenbit-masterclass-grid {
    grid-template-columns: 1fr;
  }
}

.tenbit-masterclass-card {
  background: #1a1b1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--tenbit-transition);
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
}

.tenbit-masterclass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
  border-color: var(--tenbit-brand-red);
}

.tenbit-masterclass-thumbnail {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

.tenbit-masterclass-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.tenbit-masterclass-card:hover .tenbit-masterclass-thumbnail img {
  transform: scale(1.08);
}

.tenbit-masterclass-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tenbit-transition);
}

.tenbit-masterclass-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--tenbit-brand-red);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(201, 24, 24, 0.8);
  transition: var(--tenbit-transition);
}

.tenbit-masterclass-card:hover .tenbit-masterclass-play-btn {
  transform: scale(1.15);
  background: #e51212;
}

.tenbit-masterclass-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.tenbit-masterclass-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tenbit-brand-gold);
}

.tenbit-masterclass-title {
  font-family: var(--tenbit-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

.tenbit-masterclass-desc {
  font-family: var(--tenbit-font-body);
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.5;
  margin: 0;
}

/* Footer CTA Row */
.tenbit-recipes-footer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.tenbit-recipes-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  min-width: 260px;
  background-color: var(--tenbit-brand-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(201, 24, 24, 0.35);
  transition: var(--tenbit-transition);
}

.tenbit-recipes-cta-btn:hover {
  background-color: #a81212;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 24, 24, 0.45);
}

.tenbit-recipes-yt-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.tenbit-recipes-yt-link:hover {
  color: #ffffff;
}

.tenbit-recipes-yt-link svg {
  fill: currentColor;
}

/* Video Lightbox Modal */
.tenbit-video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tenbit-video-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.tenbit-video-modal-inner {
  width: 100%;
  max-width: 860px;
  background: #111827;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.tenbit-video-modal-backdrop.open .tenbit-video-modal-inner {
  transform: scale(1);
}

.tenbit-video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 24px;
  line-height: 1;
  z-index: 20;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tenbit-video-modal-close:hover {
  background: #c91818;
  transform: scale(1.1);
}

.tenbit-video-modal-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.tenbit-video-modal-frame iframe,
.tenbit-video-modal-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
