/* Retina — Pro Outlier Engine Styling */

body {
  background-color: #090a10;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* YouTube Responsive Grid: 3 columns x 2 rows */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 24px;
}

@media (min-width: 768px) {
  .yt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .yt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Pro Elevated Video Card */
.pro-card {
  display: flex;
  flex-direction: column;
  background-color: #13141f;
  border: 1px solid #1e2132;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.pro-card:hover {
  transform: translateY(-2px);
  border-color: #3b3f5c;
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.6);
}

/* Thumbnail Box (16:9, rounded-xl) */
.yt-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0c0d14;
  cursor: pointer;
}

.yt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.yt-thumb-box:hover .yt-thumb-img {
  transform: scale(1.025);
}

/* Top-Right Index Badge (1 / 90, 2 / 90) */
.thumb-index-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  z-index: 10;
}

/* Bottom-Right Duration / Multiplier Badge */
.yt-outlier-pill {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  z-index: 10;
}

.pill-unicorn {
  background: rgba(139, 92, 246, 0.95);
  color: #ffffff;
  border: 1px solid #c084fc;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.pill-super {
  background: rgba(249, 115, 22, 0.95);
  color: #ffffff;
  border: 1px solid #fb923c;
}

.pill-solid {
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  border: 1px solid #34d399;
}

.pill-standard {
  background: rgba(15, 16, 25, 0.88);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Play Button Overlay */
.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yt-thumb-box:hover .yt-play-btn {
  opacity: 1;
}

/* Details Section */
.yt-details {
  display: flex;
  margin-top: 12px;
  gap: 12px;
}

/* Creator Avatar */
.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2a2d45, #181928);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 13px;
  flex-shrink: 0;
  border: 1px solid #2d314d;
}

/* Video Title */
.yt-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25rem;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.yt-title:hover {
  color: #a78bfa;
}

/* Metadata Row */
.yt-meta-row {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.yt-channel-name {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.yt-channel-name:hover {
  color: #f8fafc;
}

/* Tango Action Chip */
.tango-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 9px;
  background: #181a28;
  border: 1px solid #282b40;
  border-radius: 9999px;
  font-size: 10.5px;
  color: #c084fc;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tango-chip-btn:hover {
  background: #25283f;
  border-color: #8b5cf6;
  color: #ffffff;
}

.tango-chip-btn.has-notes {
  background: #311c59;
  border-color: #8b5cf6;
  color: #e9d5ff;
}

/* INLINE EXPANDED NOTES */
.inline-notes-box {
  display: none;
  background: #0b0c12;
  border: 1px solid #1e2132;
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  font-size: 11px;
}

.show-inline-notes .inline-notes-box {
  display: block;
}

/* MOBILE TEST MODE: Shrinks thumbnails to real smartphone scale */
.mobile-test-active .yt-thumb-box {
  max-width: 120px !important;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 2px solid #ec4899;
}

.mobile-test-active .pro-card {
  align-items: center;
  text-align: center;
}

.mobile-test-active .yt-details {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.mobile-test-active .yt-avatar {
  display: none;
}

/* Sticky Note inside Feed */
.yt-sticky-card {
  background: #fef08a;
  color: #713f12;
  border-radius: 16px;
  padding: 16px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.sticky-blue {
  background: #bfdbfe;
  color: #1e3a8a;
}

.sticky-purple {
  background: #e9d5ff;
  color: #581c87;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Retina Capsule Dock Filter Bar (Floating Clean Filter Bar)
   ========================================================================== */
.retina-dock-bar {
  background: rgba(11, 13, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.dock-chip {
  background: rgba(18, 20, 34, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.dock-chip:hover {
  background: rgba(28, 32, 54, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

/* Active State for Filter Chips: Vibrant Violet + Ambient Glow */
.dock-chip.active {
  background: #6324c4 !important;
  border-color: #9333ea !important;
  color: #ffffff !important;
  box-shadow: 0 0 24px -2px rgba(147, 51, 234, 0.65), 0 4px 14px rgba(99, 36, 196, 0.5) !important;
}

/* Active Bottom Pill Indicator */
.dock-chip .active-indicator {
  display: none;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
}

.dock-chip.active .active-indicator {
  display: block;
}

.dock-chip.active .pct-badge {
  background: rgba(33, 14, 66, 0.95) !important;
  border-color: rgba(168, 85, 247, 0.5) !important;
}

.dock-chip.active .pct-val {
  color: #ffffff !important;
}

.dock-chip.active .pct-count {
  color: #e9d5ff !important;
}

/* Compact List View layout for YouTube feed */
.compact-list-view {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.compact-list-view .pro-card {
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 10px 14px !important;
}

.compact-list-view .yt-thumb-box {
  width: 180px !important;
  aspect-ratio: 16 / 9 !important;
  flex-shrink: 0 !important;
}

.compact-list-view .yt-details {
  margin-top: 0 !important;
  flex: 1 !important;
}

/* Custom Thin Scrollbar for Sidebar Creator List */
.custom-thin-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-thin-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.custom-thin-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.custom-thin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.creator-item {
  transition: all 0.15s ease;
}
.creator-item:hover {
  transform: translateX(2px);
}

/* Renovated Card Highlight */
.card-renovated {
  border-color: rgba(168, 85, 247, 0.6) !important;
  box-shadow: 0 0 25px -3px rgba(147, 51, 234, 0.25), 0 8px 24px -4px rgba(0, 0, 0, 0.6) !important;
  background: linear-gradient(180deg, #16152b 0%, #13141f 100%) !important;
}

.card-renovated::before {
  content: "✨ RENOVACIÓN IA";
  position: absolute;
  top: -10px;
  left: 14px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
  z-index: 20;
}

/* Creator Image Dropzone */
.creator-dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.35);
  transition: all 0.2s ease;
}
.creator-dropzone:hover, .creator-dropzone.dragover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

/* Pulse animation for AI progress */
@keyframes aiPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.ai-pulse {
  animation: aiPulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Layout Comparativo ANTES / DESPUÉS (Modal & Drawer) */
.badge-antes {
  background: rgba(22, 25, 38, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.badge-despues {
  background: rgba(36, 26, 10, 0.92);
  border: 2px solid #eab308;
  color: #facc15;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 20px;
  box-shadow: 0 0 25px rgba(234, 179, 8, 0.45);
}

.card-despues {
  border: 2px solid #eab308 !important;
  box-shadow: 0 0 40px rgba(234, 179, 8, 0.35), inset 0 0 20px rgba(234, 179, 8, 0.06) !important;
  background: #11121d !important;
  position: relative;
}

.card-despues-sparkles {
  position: absolute;
  top: -18px;
  right: -10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.sparkle-1 {
  font-size: 22px;
  filter: drop-shadow(0 0 8px #facc15);
  animation: sparkleTwinkle 2.2s ease-in-out infinite;
}

.sparkle-2 {
  font-size: 14px;
  margin-left: 16px;
  margin-top: -6px;
  filter: drop-shadow(0 0 6px #facc15);
  animation: sparkleTwinkle 2.2s ease-in-out infinite 0.7s;
}

@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
  50% { transform: scale(1.2) rotate(12deg); opacity: 1; }
}

.value-prop-card {
  background: #11121d;
  border: 1px solid #1e2132;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.value-prop-card:hover {
  transform: translateY(-2px);
  border-color: #3b3f5c;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.modal-backdrop-blur {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-fade-scale {
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}




