/**
 * TestVerse Enhancements - Black/Grey/Green Theme
 * 3-Column Drill-Down Layout
 */

:root {
  /* Color Palette - Black/Grey/Purple Cosmic */
  --primary: #a855f7;
  --primary-hover: #9333ea;
  --primary-light: rgba(168, 85, 247, 0.1);
  --primary-border: rgba(168, 85, 247, 0.3);

  --sidebar-bg: #0a0a0a;
  --bg-body: #141414;
  --bg-panel: #1a1a1a;
  --bg-panel-2: #1f1f1f;
  --border-color: rgba(80, 80, 80, 0.4);

  --text-main: #f8fafc;
  --text-muted: #aaaaaa;
  --text-subtle: #808080;

  /* Layout */
  --sidebar-width: 76px;
  --col-1-width: 320px;
  --col-2-width: 380px;
}

/* ============================================================================
   LEFT SIDEBAR
   ============================================================================ */

.left-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  z-index: 100;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.sidebar-icon {
  color: var(--text-muted);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.sidebar-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}

.sidebar-icon.active {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* ============================================================================
   RIGHT PANEL - 3 COLUMN DRILL DOWN
   ============================================================================ */

.right-panel {
  position: fixed;
  right: -100%;
  top: 0;
  width: calc(100vw - var(--sidebar-width));
  height: 100vh;
  background: transparent;
  z-index: 200;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  display: flex;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.right-panel.open {
  right: 0;
  pointer-events: auto;
  animation: panelSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes panelSlideIn {
  from {
    right: -100%;
    opacity: 0.8;
  }
  to {
    right: 0;
    opacity: 1;
  }
}

/* Drill-Down Columns */
.drill-column {
  height: 100vh;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.drill-column.hidden {
  display: none;
}

#drillCol1 {
  width: var(--col-1-width);
  z-index: 3;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(25px) saturate(1.3);
  -webkit-backdrop-filter: blur(25px) saturate(1.3);
}

#drillCol2 {
  width: var(--col-2-width);
  z-index: 2;
  background: rgba(26, 26, 26, 0.80);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

#drillCol3 {
  flex: 1;
  z-index: 1;
  background: rgba(31, 31, 31, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-right: none;
}

/* Column Headers */
.drill-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.8);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drill-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

.drill-subtitle {
  font-size: 0.7rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.drill-content {
  overflow-y: auto;
  flex: 1;
}

.drill-content::-webkit-scrollbar {
  width: 6px;
}

.drill-content::-webkit-scrollbar-track {
  background: rgba(10, 10, 10, 0.5);
}

.drill-content::-webkit-scrollbar-thumb {
  background: rgba(80, 80, 80, 0.8);
  border-radius: 3px;
}

.drill-content::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 100, 100, 0.9);
}

/* Close Button */
.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Category Items */
.category-item {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(80, 80, 80, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.category-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.15), transparent);
  transition: width 0.3s ease;
}

.category-item:hover {
  background: rgba(168, 85, 247, 0.08);
  padding-left: 1.75rem;
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.1);
  transform: translateX(4px);
}

.category-item:hover::before {
  width: 100%;
}

.category-item.active {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding-left: calc(1.5rem - 4px);
  box-shadow: inset 0 0 25px rgba(168, 85, 247, 0.15), 0 2px 12px rgba(168, 85, 247, 0.2);
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.category-item.active .category-icon {
  background: var(--primary);
  color: #000;
}

.category-info {
  flex: 1;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.category-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.category-chevron {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Tool Items */
.tool-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(80, 80, 80, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.tool-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.12), transparent);
  transition: width 0.3s ease;
}

.tool-item:hover {
  background: rgba(168, 85, 247, 0.08);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px) translateX(4px);
}

.tool-item:hover::before {
  width: 100%;
}

.tool-item.active {
  background: rgba(168, 85, 247, 0.12);
  border-left: 4px solid var(--primary);
  box-shadow: inset 0 0 25px rgba(168, 85, 247, 0.15), 0 6px 20px rgba(168, 85, 247, 0.25);
  transform: translateX(4px);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tool-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.tool-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--text-subtle);
}

/* Badges */
.badge {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-oss {
  background: rgba(168, 85, 247, 0.15);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-commercial {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Detail Panel */
.detail-header {
  padding: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  background: rgba(10, 10, 10, 0.5);
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  margin-bottom: 1rem;
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  flex: 1;
}

.detail-website-btn {
  background: var(--primary);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
  flex-shrink: 0;
}

.detail-website-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

.detail-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 90%;
}

/* Action Toolbar */
.action-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: rgba(40, 40, 40, 0.5);
  color: var(--text-main);
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: var(--primary);
  color: var(--primary);
}

.action-btn svg {
  flex-shrink: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.stat-box {
  text-align: center;
  padding: 1.2rem;
  background: rgba(40, 40, 40, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Favorite Button */
.favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.favorite-btn.active {
  color: #fbbf24;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile & Tablet
   ============================================================================ */

/* Tablet and below (768px) */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 60px;
    --col-1-width: 280px;
    --col-2-width: 320px;
  }

  /* Left sidebar adjustments */
  .left-sidebar {
    width: var(--sidebar-width);
  }

  .sidebar-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  /* Right panel full width on mobile - slides in from right */
  .right-panel {
    width: 100vw !important;
    right: -100vw !important;
    z-index: 250 !important;
  }

  .right-panel.open {
    width: 100vw !important;
    right: 0 !important;
    z-index: 250 !important;
  }

  /* Drill columns take full width and enable horizontal scrolling */
  .drill-column {
    min-width: 100vw !important;
    width: 100vw !important;
  }

  /* Adjust column widths for mobile */
  #drillCol1 {
    width: 100vw !important;
  }

  #drillCol2 {
    width: 100vw !important;
  }

  #drillCol3 {
    width: 100vw !important;
  }

  /* Enable horizontal scroll for drill-down navigation */
  .right-panel.open {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .drill-column {
    scroll-snap-align: start;
  }

  /* Headers and text sizing */
  .drill-title {
    font-size: 1.3rem;
  }

  .drill-subtitle {
    font-size: 0.65rem;
  }

  /* Category items */
  .category-item {
    padding: 1rem;
  }

  .category-name {
    font-size: 0.95rem;
  }

  .category-count {
    font-size: 0.75rem;
  }

  /* Tool items */
  .tool-item {
    padding: 1rem;
  }

  .tool-name {
    font-size: 0.95rem;
  }

  .tool-stats {
    font-size: 0.75rem;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-box {
    padding: 0.75rem;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .stat-lbl {
    font-size: 0.7rem;
  }

  /* Tool details */
  .detail-header h2 {
    font-size: 1.5rem;
  }

  .detail-url {
    font-size: 0.8rem;
  }

  .detail-desc {
    font-size: 0.85rem;
  }

  /* Explorer panel full width on mobile */
  .tv-right {
    width: 100vw;
    right: -100vw;
  }

  .tv-right.open {
    right: 0;
  }

  /* Badges */
  .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  :root {
    --sidebar-width: 50px;
  }

  .left-sidebar {
    width: var(--sidebar-width);
    padding-top: 0.5rem;
  }

  .sidebar-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  /* Smaller text for mobile */
  .drill-title {
    font-size: 1.1rem;
  }

  .drill-subtitle {
    font-size: 0.6rem;
  }

  .category-item {
    padding: 0.875rem;
  }

  .category-name {
    font-size: 0.9rem;
  }

  .category-count {
    font-size: 0.7rem;
  }

  .tool-item {
    padding: 0.875rem;
  }

  .tool-name {
    font-size: 0.9rem;
  }

  .tool-stats {
    font-size: 0.7rem;
  }

  .tool-stats span {
    margin-right: 0.5rem;
  }

  /* Detail page adjustments */
  .detail-header {
    padding: 1.25rem;
  }

  .detail-header h2 {
    font-size: 1.3rem;
  }

  .detail-url {
    font-size: 0.75rem;
  }

  .detail-desc {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-box {
    padding: 0.625rem;
  }

  .stat-num {
    font-size: 1.2rem;
  }

  .stat-lbl {
    font-size: 0.65rem;
  }

  /* Explorer panel cards */
  .tv-card {
    padding: 1rem;
    margin: 0.75rem 1rem;
  }

  .tv-card-title {
    font-size: 0.85rem;
  }

  .tv-card-text {
    font-size: 0.75rem;
  }

  .tv-chip {
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
  }

  /* Close buttons */
  .close-btn {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
  }

  .tv-rp-close {
    font-size: 1.3rem;
    width: 32px;
    height: 32px;
  }
}

/* ============================================================================
   TESTIMONIALS SECTION
   ============================================================================ */

.testimonials-section {
  position: fixed;
  top: 0;
  right: -520px;
  bottom: 0;
  width: 500px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(30, 27, 75, 0.97));
  backdrop-filter: blur(40px);
  border-left: 1px solid rgba(168, 85, 247, 0.2);
  z-index: 250;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

.testimonials-section.visible {
  right: 0;
}

.testimonials-container {
  padding: 3rem 2rem;
  height: 100%;
}

.testimonials-header {
  position: relative;
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-close {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.testimonials-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(168, 85, 247, 0.5);
}

.testimonials-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.testimonials-subtitle {
  color: #a0a0a0;
  font-size: 1rem;
}

.testimonials-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2);
}

.testimonial-rating {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fbbf24;
}

.testimonial-text {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
}

.testimonial-name {
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #a0a0a0;
}

.testimonials-cta {
  text-align: center;
}

.testimonials-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(to right, #06b6d4, #8b5cf6);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.testimonials-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168, 85, 247, 0.5);
}

.testimonials-cta-text {
  margin-top: 1rem;
  color: #a0a0a0;
  font-size: 0.9rem;
}

/* Social Links Section */
.testimonials-social {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.testimonials-social-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.testimonials-social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #a0a0a0;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
  border-color: rgba(139, 92, 246, 0.5);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Toggle button for testimonials - Premium Design */
.testimonials-toggle {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 101;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.25));
  backdrop-filter: blur(20px);
  color: white;
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonials-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 30px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
}

.testimonials-toggle.hidden {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .testimonials-section {
    width: 100vw;
    right: -100vw;
  }

  .testimonials-section.visible {
    right: 0;
  }

  .testimonials-container {
    padding: 2rem 1.5rem;
  }

  .testimonials-title {
    font-size: 1.5rem;
  }

  .testimonials-grid {
    gap: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonials-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }
}


/* ============================================================================
   EXPLORER MODE - Right Panel Enhancement
   ============================================================================ */

.tv-right {
  position: fixed;
  right: -600px;
  top: 0;
  width: 600px;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border-color);
  z-index: 300;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
}

.tv-right.open {
  right: 0;
}

.tv-right.hidden {
  display: none;
}

.tv-rp-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
}

.tv-rp-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.tv-rp-subtitle {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tv-rp-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.tv-rp-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tv-card {
  background: rgba(40, 40, 40, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 1.5rem;
}

.tv-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.tv-card-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.tv-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.75rem 0;
}

.tv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tv-chip {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tv-chip:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.tv-chip.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.tv-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.tv-mini {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.tv-map {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  min-height: 60px;
}

.tv-map-item {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--text-main);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tv-map-item:hover {
  background: rgba(168, 85, 247, 0.25);
  transform: scale(1.05);
}

.tv-map-item.current {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.tv-map-arrow {
  color: var(--text-subtle);
  font-size: 1rem;
  font-weight: 700;
}

.tv-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tv-steps li {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tv-steps li::before {
  content: "→ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

#tvRpEmpty {
  margin-top: 2rem;
}

#tvRpExplorer.hidden {
  display: none;
}

  </style>
    @keyframes fade-in {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes zoom-in-95 {
      from { transform: scale(0.95); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    @keyframes slide-in-from-bottom-2 {
      from { transform: translateY(0.5rem); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .animate-in {
      animation: fade-in 0.3s ease-out, zoom-in-95 0.3s ease-out;
    }
    body {
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    /* Enhanced radial gradient ambient glow when panels open */
    body.panels-open #root {
      filter: blur(12px) brightness(0.85);
      transition: filter 0.6s ease-out;
    }

    /* Multi-layer stunning radial gradient glow overlay */
    body.panels-open::before {
      content: '';
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 90;
      pointer-events: none;
      background:
        /* Intense purple glow - top right */
        radial-gradient(1400px 900px at 75% 20%, rgba(168, 85, 247, 0.45), transparent 68%),
        /* Deep purple - top left */
        radial-gradient(1200px 800px at 20% 30%, rgba(147, 51, 234, 0.38), transparent 65%),
        /* Cyan accent - right side */
        radial-gradient(1100px 700px at 85% 50%, rgba(34, 211, 238, 0.28), transparent 70%),
        /* Blue glow - center */
        radial-gradient(1300px 900px at 50% 55%, rgba(59, 130, 246, 0.25), transparent 72%),
        /* Pink glow - bottom right */
        radial-gradient(1000px 650px at 75% 85%, rgba(236, 72, 153, 0.22), transparent 68%),
        /* Green tint - bottom left */
        radial-gradient(1100px 750px at 25% 80%, rgba(168, 85, 247, 0.18), transparent 70%),
        /* Ambient deep base */
        radial-gradient(ellipse at center, rgba(15, 10, 25, 0.65), rgba(5, 5, 15, 0.85));
      opacity: 0;
      transition: opacity 0.6s ease-out;
      animation: ambientPulse 15s ease-in-out infinite;
    }

    @keyframes ambientPulse {
      0%, 100% {
        opacity: 1;
        transform: scale(1);
      }
      50% {
        opacity: 0.92;
        transform: scale(1.02);
      }
    }

    body.panels-open::before {
      opacity: 1;
    }

    /* Enhanced backdrop blur for depth */
    body.panels-open::after {
      content: '';
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 89;
      pointer-events: none;
      backdrop-filter: blur(3px) saturate(1.3) brightness(0.95);
      -webkit-backdrop-filter: blur(3px) saturate(1.3) brightness(0.95);
      opacity: 0;
      transition: opacity 0.6s ease-out;
    }

    body.panels-open::after {
      opacity: 1;
    }

    /* Center area gradient background layer - Enhanced beautiful blur effect */
    .center-gradient-bg {
      position: fixed;
      left: var(--sidebar-width);
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 91;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.6s ease-out;
      background:
        /* Primary purple glow - top center */
        radial-gradient(1400px 900px at 50% 20%, rgba(168, 85, 247, 0.40), transparent 70%),
        /* Deep purple - left side */
        radial-gradient(1200px 800px at 20% 50%, rgba(147, 51, 234, 0.35), transparent 65%),
        /* Cyan accent - top right */
        radial-gradient(1000px 700px at 80% 30%, rgba(34, 211, 238, 0.28), transparent 68%),
        /* Blue glow - center */
        radial-gradient(1300px 900px at 50% 60%, rgba(59, 130, 246, 0.25), transparent 72%),
        /* Pink accent - bottom right */
        radial-gradient(900px 600px at 70% 80%, rgba(236, 72, 153, 0.22), transparent 65%),
        /* Green tint - bottom left */
        radial-gradient(1000px 700px at 30% 85%, rgba(168, 85, 247, 0.20), transparent 70%),
        /* Ambient overlay */
        radial-gradient(ellipse at center, rgba(15, 15, 25, 0.7), rgba(5, 5, 15, 0.90));
      animation: gradientShift 20s ease-in-out infinite;
    }

    @keyframes gradientShift {
      0%, 100% {
        filter: hue-rotate(0deg) saturate(1);
      }
      25% {
        filter: hue-rotate(5deg) saturate(1.1);
      }
      50% {
        filter: hue-rotate(-5deg) saturate(0.95);
      }
      75% {
        filter: hue-rotate(3deg) saturate(1.05);
      }
    }

    body.panels-open .center-gradient-bg {
      opacity: 1;
    }

    /* ============================================================================
       ANIMATION LIBRARY - Smooth Fade-Ins & Stagger Effects
       ============================================================================ */

    /* Fade in from opacity 0 to 1 */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Slide in from right */
    @keyframes slideInRight {
      from {
        opacity: 0;
        transform: translateX(30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Slide in from left */
    @keyframes slideInLeft {
      from {
        opacity: 0;
        transform: translateX(-30px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Skeleton shimmer loading effect */
    @keyframes shimmer {
      0% {
        background-position: -1000px 0;
      }
      100% {
        background-position: 1000px 0;
      }
    }

    /* Apply fade-in to category items */
    .category-item {
      animation: fadeIn 0.4s ease-out forwards;
      opacity: 0;
    }

    /* Stagger animation delays for categories */
    .category-item:nth-child(1) { animation-delay: 0.05s; }
    .category-item:nth-child(2) { animation-delay: 0.08s; }
    .category-item:nth-child(3) { animation-delay: 0.11s; }
    .category-item:nth-child(4) { animation-delay: 0.14s; }
    .category-item:nth-child(5) { animation-delay: 0.17s; }
    .category-item:nth-child(6) { animation-delay: 0.20s; }
    .category-item:nth-child(7) { animation-delay: 0.23s; }
    .category-item:nth-child(8) { animation-delay: 0.26s; }
    .category-item:nth-child(9) { animation-delay: 0.29s; }
    .category-item:nth-child(10) { animation-delay: 0.32s; }
    .category-item:nth-child(n+11) { animation-delay: 0.35s; }

    /* Apply fade-in to tool items */
    .tool-item {
      animation: slideInRight 0.3s ease-out forwards;
      opacity: 0;
    }

    /* Stagger animation delays for tools */
    .tool-item:nth-child(1) { animation-delay: 0.05s; }
    .tool-item:nth-child(2) { animation-delay: 0.08s; }
    .tool-item:nth-child(3) { animation-delay: 0.11s; }
    .tool-item:nth-child(4) { animation-delay: 0.14s; }
    .tool-item:nth-child(5) { animation-delay: 0.17s; }
    .tool-item:nth-child(6) { animation-delay: 0.20s; }
    .tool-item:nth-child(7) { animation-delay: 0.23s; }
    .tool-item:nth-child(8) { animation-delay: 0.26s; }
    .tool-item:nth-child(n+9) { animation-delay: 0.29s; }

    /* Tool details fade in */
    #toolDetails > * {
      animation: fadeIn 0.5s ease-out forwards;
      opacity: 0;
    }

    /* Skeleton loading state */
    .skeleton {
      background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
      );
      background-size: 1000px 100%;
      animation: shimmer 2s infinite linear;
      border-radius: 4px;
    }

    .skeleton-line {
      height: 16px;
      margin-bottom: 8px;
      background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
      );
      background-size: 1000px 100%;
      animation: shimmer 2s infinite linear;
      border-radius: 4px;
    }

    .skeleton-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 100%
      );
      background-size: 1000px 100%;
      animation: shimmer 2s infinite linear;
    }
  </style>
