/* Performance Page Specific Styles */

.performance-hero {
  background: linear-gradient(
    135deg,
    var(--vpt-primary) 0%,
    var(--vpt-primary-dark) 100%
  );
  color: white;
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.performance-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: heroShine 8s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%);
  }
  100% {
    transform: translateX(100%) translateY(100%);
  }
}

@keyframes heroShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.performance-nav {
  position: sticky;
  top: 80px;
  background: white;
  border-bottom: 1px solid var(--vpt-gray-200);
  z-index: 100;
  margin-bottom: 0;
}

.performance-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.performance-nav-link {
  text-decoration: none;
  color: var(--vpt-gray-600);
  font-weight: 500;
  white-space: nowrap;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  transition: var(--transition-fast);
  position: relative;
  flex: 1;
  text-align: center;
}

.performance-nav-link:hover,
.performance-nav-link.active {
  color: var(--vpt-red);
  background: linear-gradient(
    135deg,
    rgba(145, 22, 43, 0.1) 0%,
    rgba(145, 22, 43, 0.05) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(145, 22, 43, 0.15);
  border-top: 3px solid var(--vpt-red);
}

.performance-nav-link.active {
  color: var(--vpt-red);
  background: linear-gradient(
    135deg,
    rgba(145, 22, 43, 0.15) 0%,
    rgba(145, 22, 43, 0.08) 100%
  );
  font-weight: 600;
  border-top: 3px solid var(--vpt-red);
}

.punchline-section {
  background: linear-gradient(
    135deg,
    var(--vpt-gray-900) 0%,
    var(--vpt-gray-800) 100%
  );
  color: white;
  padding: 3rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.punchline-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: punchlineShine 6s infinite;
}

@keyframes punchlineShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.punchline-content {
  position: relative;
  z-index: 2;
}

.punchline-text {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.punchline-accent {
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--vpt-red) 0%,
    var(--vpt-red-light) 100%
  );
  margin: 1.5rem auto 0;
  border-radius: 2px;
  position: relative;
}

.punchline-accent::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    90deg,
    var(--vpt-red) 0%,
    var(--vpt-red-light) 100%
  );
  border-radius: 4px;
  opacity: 0.3;
  filter: blur(4px);
  z-index: -1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--vpt-gray-200);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--vpt-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--vpt-primary),
    var(--vpt-primary-light)
  );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--vpt-gray-900);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--vpt-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Spacer to push tech specs to bottom */
.feature-card .tech-spec {
  margin-bottom: 1.5rem;
  margin-top: auto;
}

.feature-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.feature-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--vpt-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.feature-badge-lite {
  background: var(--vpt-subscription-lite);
}

.feature-badge-standard {
  background: var(--vpt-subscription-standard);
}

.feature-badge-pro {
  background: var(--vpt-subscription-pro);
}

.feature-premium {
  background: var(--vpt-primary);
}

.demo-section {
  background: linear-gradient(
    135deg,
    var(--vpt-primary) 0%,
    var(--vpt-primary-dark) 100%
  );
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-section {
  background: white;
  color: var(--vpt-gray-900);
  padding: 4rem 0;
  text-align: center;
}

.tech-spec {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--vpt-primary);
}

.tech-spec h4 {
  color: var(--vpt-gray-900);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tech-spec p {
  color: var(--vpt-gray-600);
  font-size: 0.95rem;
  margin: 0;
}

/* Fix for app badge consistency in hero section */
.performance-hero .modern-app-badge {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.performance-hero .modern-app-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.performance-hero .modern-app-badge img {
  border-radius: calc(var(--radius-lg) - 2px);
  background: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  .performance-hero {
    padding: 6rem 0 3rem;
  }

  .performance-nav-container {
    padding: var(--space-md);
    gap: var(--space-lg);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .punchline-section {
    padding: 2rem 0;
  }

  .punchline-text {
    font-size: 1.75rem;
  }
}
