/* Extensions Hub Tabs Styles */
.extensions-hub {
  margin-top: 3rem;
}

/* Tab Navigation - Header Style */
.tabs-navigation {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding: 0.75rem 0;
  margin-bottom: -1px;
  transition: color 0.3s ease;
  white-space: nowrap;
  text-align: left;
  box-sizing: border-box;
  display: inline-block;
}

/* Fixed width to prevent jumping */
.tab-btn[data-tab="dendromap"] {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
}

.tab-btn[data-tab="kpi-cards"] {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

/* Prevent font-weight changes from causing shifts */
.tab-btn.active {
  font-weight: 500; /* Keep same weight */
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #0085FF;
  transition: width 0.3s ease;
}

.tab-btn[data-tab="dendromap"]::after {
  max-width: 160px;
}

.tab-btn[data-tab="kpi-cards"]::after {
  max-width: 80px;
}

.tab-btn[data-tab="dendromap"]:hover::after,
.tab-btn[data-tab="dendromap"].active::after {
  width: 160px !important;
}

.tab-btn[data-tab="kpi-cards"]:hover::after,
.tab-btn[data-tab="kpi-cards"].active::after {
  width: 80px !important;
}

.tab-btn:hover {
  color: #0085FF;
}

.tab-btn:hover::after {
  width: 100%;
}

.tab-btn.active {
  color: #0085FF;
}

.tab-btn.active::after {
  width: 100%;
}

/* Tab Content */
.tabs-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  min-height: 400px;
  overflow: hidden !important;
}

/* Hide all scrollbars completely */
.extensions-hub {
  overflow: hidden !important;
}

.extensions-hub * {
  overflow: visible !important;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.extensions-hub *::-webkit-scrollbar {
  display: none !important; /* Chrome, Safari and Opera */
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

/* Extension Header */
.extension-header {
  margin-bottom: 2.5rem;
  text-align: left;
  padding: 0 1rem;
}

.extension-header .section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e293b;
  text-align: left;
  padding-left: 0;
}

.extension-header .product-description {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #64748b;
  max-width: 800px;
  margin: 0 auto;
}

/* Compact Features */
.compact-features {
  margin: 2.5rem 0;
}

.features-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.feature-compact {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-compact:hover {
  background: #f1f5f9;
  transform: translateX(5px);
}

.feature-icon-small {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  color: #0085FF;
}

.feature-icon-small svg {
  width: 20px;
  height: 20px;
}

.feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-text strong {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.feature-text span {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

/* Tab CTA */
.tab-cta {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Live Demo Button */


/* Animated Live Demo Button */
.btn-live-demo {
  position: relative;
  overflow: hidden;
  color: white;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  background-size: 200% 200%;
  animation: shimmerGradient 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-live-demo::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  animation: shine 2.5s infinite;
}

.btn-live-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  animation: shimmerGradient 1.5s ease-in-out infinite;
}

.btn-live-demo:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

@keyframes shimmerGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* Secondary Button Override for tabs */
.tab-cta .btn-secondary {
  background: transparent;
  color: #0855c4;
  border: 1px solid #0855c4;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tab-cta .btn-secondary:hover {
  background: rgba(0, 133, 255, 0.05);
  color: #0855c4;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 85, 196, 0.15);
}

/* Demo Placeholder */
.demo-placeholder {
  padding: 3rem 1rem;
  margin: 2rem 0;
}

.placeholder-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #0085FF 0%, #0855c4 100%);
  border-radius: 16px;
  color: white;
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
}

.placeholder-box h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.placeholder-box p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.placeholder-box .btn-secondary {
  background: white;
  color: #0085FF;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.placeholder-box .btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 133, 255, 0.2);
}

.placeholder-box .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Coming Soon Box */
.coming-soon-box {
  text-align: center;
  padding: 4rem 2rem;
}

.coming-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0085FF 0%, #0855c4 100%);
  border-radius: 20px;
  color: white;
}

.coming-icon svg {
  width: 40px;
  height: 40px;
}

.coming-soon-box h3 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.coming-soon-box p {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.subscribe-box {
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.subscribe-box p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Services Grid Update */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

/* Services grid uses original styles from main.scss */

/* Why Work With Me uses original feature-card styles from main.scss */

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tabs-navigation {
    gap: 0.5rem;
  }
  
  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .tab-btn .tab-icon {
    font-size: 1rem;
  }
  
  .tabs-content {
    padding: 1.5rem;
  }
  
  .features-row {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .achievements {
    grid-template-columns: 1fr;
  }
}

/* KPI Demo section visibility (JS toggles .active) */
.kpi-demo-section { display: none; }
.kpi-demo-section.active { display: block !important; animation: slideDown .5s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Coming Soon Button Styles */
.btn-coming-soon {
  position: relative;
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
}

.btn-coming-soon:hover {
  opacity: 0.8;
  transform: none;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #f97316;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}