/* ==========================================================================
   Work Page Styles — AI Generated Content & Commercial Motion Direction
   ========================================================================== */

.work-page {
  background: #0d0e11;
  color: var(--cream);
}

.work-header-block {
  padding-top: 40px;
  margin-bottom: 20px;
}

.work-tag-label {
  display: inline-block;
  font-family: var(--nunito);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

/* Editorial Hero Section */
.work-hero {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 54px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 8%;
  align-items: flex-start;
  margin-bottom: 48px;
}

.hero-lead h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.hero-lead h2 em {
  color: var(--orange);
  font-style: italic;
}

.hero-body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-strong {
  font-size: 1.2rem;
  color: #fff8e7;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-body p + p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.hero-body strong {
  color: var(--cream);
}

.work-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 230, 189, 0.12);
}

.stat-pill {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--nunito);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1.1;
}

.stat-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 4px;
}

/* Filter Bar */
.works-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.filter-label {
  font-family: var(--nunito);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-family: var(--nunito);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  border-color: var(--orange);
  background: rgba(235, 68, 0, 0.1);
}

.filter-tab.active {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

/* Reels Grid */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

/* Reel Card */
.reel-card {
  background: #141518;
  border: 1px solid rgba(242, 230, 189, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.reel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 68, 0, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.reel-card.is-playing {
  border-color: var(--orange);
  box-shadow: 0 18px 40px rgba(235, 68, 0, 0.15);
}

/* 9:16 Video Player Container */
.reel-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #08080a;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.reel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none; /* Disables native right-click/download on the video */
  user-select: none;
  -webkit-touch-callout: none;
}

/* Protective Click Shield */
.reel-shield {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: pointer;
  background: transparent;
}

/* Badges */
.reel-badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.badge-pill {
  font-family: var(--nunito);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10, 11, 14, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-pill.live-tag {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

/* Sound Button */
.reel-sound-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 11, 14, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reel-sound-btn:hover {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  transform: scale(1.08);
}

.reel-sound-btn.is-unmuted {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
}

/* Center Play Button Overlay */
.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(15, 16, 20, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.reel-player-box:hover .reel-play-btn {
  background: var(--orange);
  color: #000;
  border-color: var(--orange);
  transform: translate(-50%, -50%) scale(1.06);
}

.reel-card.is-playing .reel-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.85);
}

.reel-card.is-playing .reel-player-box:hover .reel-play-btn {
  opacity: 0.85;
}

/* Scrubber Bar */
.reel-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 14px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  pointer-events: auto;
}

.reel-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 6px;
  position: relative;
}

.reel-progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.08s linear;
}

.reel-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--nunito);
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
}

.reel-status-indicator {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--orange);
  font-weight: 800;
}

/* Card Meta */
.reel-meta {
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.meta-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.client-label {
  font-family: var(--nunito);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.category-tag {
  font-size: 0.74rem;
  color: var(--muted);
}

.reel-title {
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--cream);
  margin-bottom: 10px;
}

.reel-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: #dfd8c2;
  line-height: 1.45;
  margin-bottom: 16px;
  border-left: 2px solid var(--orange);
  padding-left: 10px;
}

.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  font-family: var(--nunito);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d8d8d8;
}

.reel-info-toggle {
  background: transparent;
  border: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--nunito);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  transition: color 0.2s ease;
}

.reel-info-toggle:hover {
  color: var(--orange);
}

.toggle-arrow {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--orange);
}

.reel-drawer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.drawer-inner p + p {
  margin-top: 8px;
}

.drawer-inner strong {
  color: var(--cream);
}

/* R&D Sandbox Section */
.work-rd-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 0 70px;
  margin-bottom: 70px;
}

.rd-header {
  margin-bottom: 36px;
  max-width: 760px;
}

.rd-badge {
  font-family: var(--nunito);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.rd-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--cream);
  margin: 10px 0 12px;
}

.rd-subtitle {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.rd-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.rd-card {
  background: #141518;
  border: 1px solid rgba(242, 230, 189, 0.12);
  border-radius: 14px;
  padding: 28px;
}

.rd-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rd-card-tag {
  font-family: var(--nunito);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.rd-card-stat {
  font-family: monospace;
  font-size: 0.75rem;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

.rd-card h3 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}

.rd-card p {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.rd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rd-pills span {
  font-family: var(--nunito);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream);
}

/* Commission / Hire CTA Banner */
.work-cta-banner {
  background: linear-gradient(135deg, rgba(235, 68, 0, 0.08) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid rgba(235, 68, 0, 0.3);
  border-radius: 18px;
  padding: 48px;
  margin-bottom: 80px;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-tag {
  font-family: var(--nunito);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.cta-text h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: var(--cream);
  margin: 10px 0 12px;
}

.cta-text p {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 10px;
  font-family: var(--nunito);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-whatsapp {
  background: #25D366;
  color: #000;
}

.cta-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

.cta-email {
  background: var(--orange);
  color: #000;
}

.cta-email:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}

/* Toast Notification for Disabled Download Actions */
.action-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 19, 22, 0.95);
  border: 1px solid var(--orange);
  color: var(--cream);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--nunito);
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.action-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-6px);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .work-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .work-stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .rd-cards-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .reels-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .works-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
