/**
 * PORTFOLIO SHOWCASE STYLES
 * Ultra-High-End Dark Aesthetic, Metrics, Views Badges & Interactive Carousels
 */

/* ── HERO BANNER ── */
.portfolio-hero-section {
  padding: 64px 0 40px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 0%, rgba(255,107,0,0.08) 0%, transparent 65%);
}

.portfolio-hero-content {
  max-width: 860px;
  margin-inline: auto;
}

.portfolio-page-title {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 18px 0 14px;
}

.portfolio-page-lead {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 740px;
  margin-inline: auto;
}

/* ── STATS BAR ── */
.portfolio-stats-bar {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin: 28px auto 0;
  padding: 14px 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-medium);
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.port-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.port-stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
}

.port-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 700;
}

.port-stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-subtle);
}

/* ── SECTION BLOCKS ── */
.port-section {
  padding: 56px 0 72px;
}

.port-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.port-block-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-primary);
}

.port-block-badge.yt-badge svg { color: #FF0000; }
.port-block-badge.ig-badge svg { color: #E1306C; }

.port-count-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-orange);
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.25);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ── YOUTUBE MAIN GRID ── */
.yt-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.yt-main-card {
  background: var(--color-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.yt-main-card:hover {
  border-color: var(--border-orange);
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.7), 0 0 35px rgba(255,107,0,0.12);
}

.yt-main-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.yt-main-card:hover .yt-main-thumb img {
  transform: scale(1.05);
}

.yt-main-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: var(--t);
}

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

.yt-big-play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px var(--color-orange-glow);
  transform: scale(0.9);
  transition: var(--t);
}

.yt-main-card:hover .yt-big-play {
  transform: scale(1);
}

.yt-hover-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.yt-corner-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(7, 8, 12, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--color-orange);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-xs);
}

.yt-number-badge {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border-subtle);
}

/* ── METRICS PILLS ON CARD ── */
.yt-metrics-strip {
  position: absolute;
  bottom: 10px;
  inset-inline: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  z-index: 2;
}

.yt-metric-badge {
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.yt-metric-badge.views-badge {
  color: var(--color-orange);
  border-color: rgba(255,107,0,0.3);
}

.yt-metric-badge.retention-badge {
  color: #50DCA0;
  border-color: rgba(80,220,160,0.3);
}

.yt-main-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.yt-type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  display: block;
}

.yt-main-info h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}

.yt-main-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.yt-main-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.play-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #000;
  background: var(--color-orange);
  padding: 6px 14px;
  border-radius: var(--r-xs);
  box-shadow: 0 0 16px var(--color-orange-glow);
  transition: var(--t);
}

.yt-main-card:hover .play-cta-pill {
  background: #ff8c00;
  transform: scale(1.03);
}

.yt-open-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--t);
}

.yt-open-link:hover {
  color: var(--color-orange);
}

/* ═══════════════════════════════════════════
   REELS CAROUSEL / TRACK
═══════════════════════════════════════════ */
.reels-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reel-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t);
}

.reel-scroll-btn:hover {
  background: var(--color-orange);
  color: #000;
  border-color: var(--color-orange);
  transform: scale(1.08);
}

.reels-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.reels-track-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 14px 0 28px;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.reels-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  animation: reelScrollAnim 40s linear infinite;
}

[dir="rtl"] .reels-track {
  animation: reelScrollAnimRTL 40s linear infinite;
}

.reels-track.is-paused,
.reels-track-wrapper:hover .reels-track,
.reels-track:hover {
  animation-play-state: paused !important;
}


@keyframes reelScrollAnim {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

@keyframes reelScrollAnimRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(50% + 10px));
  }
}


/* ── REEL CARD (PHONE FRAME LOOK) ── */
.reel-phone-card {
  width: 290px;
  flex-shrink: 0;
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--t);
  position: relative;
  display: flex;
  flex-direction: column;
}

.reel-phone-card:hover {
  border-color: rgba(225, 48, 108, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.7), 0 0 28px rgba(225, 48, 108, 0.2);
}

.reel-phone-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.reel-phone-frame {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000;
  overflow: hidden;
}

.reel-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

.reel-phone-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--t);
}

.reel-phone-card:hover .reel-phone-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.reel-tap-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #E1306C;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(225, 48, 108, 0.6);
  transition: var(--t);
}

.reel-phone-card:hover .reel-tap-circle {
  transform: scale(1.12);
  box-shadow: 0 0 32px rgba(225, 48, 108, 0.8);
}

.reel-tap-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── REEL METRICS BAR ON FRAME ── */
.reel-metrics-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(225, 48, 108, 0.4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

.reel-views-pill {
  position: absolute;
  bottom: 12px;
  inset-inline: 12px;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.reel-stat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: #50DCA0;
}

.reel-views-count {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--color-orange);
}

.reel-phone-footer {
  padding: 14px 16px;
  background: #090a0f;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reel-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reel-num-badge {
  font-size: 0.72rem;
  font-weight: 900;
  color: #E1306C;
  background: rgba(225, 48, 108, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.reel-role-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

.reel-ig-link {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.reel-ig-link:hover {
  color: #E1306C;
}

/* ── LIGHTBOX MODAL ── */
.video-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.video-modal-container {
  max-width: 920px;
  width: 100%;
  max-height: 94vh;
  background: #09090e;
  border: 1px solid var(--border-orange);
  border-radius: var(--r-md);
  overflow: hidden;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.95), 0 0 40px rgba(255,107,0,0.2);
  animation: slideUp 0.3s var(--ease);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--t);
  cursor: pointer;
}

.video-modal-close:hover {
  background: var(--color-orange);
  color: #000;
  border-color: var(--color-orange);
}

.video-iframe-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.video-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-footer {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
}

.video-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .yt-main-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-stats-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: var(--r-md);
    gap: 14px;
    padding: 16px 20px;
    width: 100%;
    max-width: 520px;
  }
  .port-stat-divider {
    display: none;
  }
  .port-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .portfolio-hero-section {
    padding: 36px 0 24px;
  }
  .portfolio-page-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .portfolio-page-lead {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .portfolio-stats-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }
  .reel-phone-card {
    width: 250px;
  }
  .video-modal-backdrop {
    padding: 10px;
  }
  .video-modal-container {
    max-height: 94vh;
    border-radius: 14px;
  }
  .video-modal-footer {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .video-modal-title {
    font-size: 0.88rem;
    line-height: 1.35;
  }
  .port-cta-box {
    padding: 32px 18px;
  }
}

