/**
 * VJInfotech Live Demo & Sandbox Launcher Styles
 * Minimalist, ultra-responsive layout for direct sandbox access.
 */

.vji-demo-page {
  background-color: var(--vji-bg, #f8fafc);
  min-height: 85vh;
  color: var(--vji-text-body, #334155);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.vji-demo-hero {
  padding: 4.5rem 0 3rem;
  background: radial-gradient(circle at 50% 0%, rgba(79, 70, 229, 0.08) 0%, transparent 70%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--vji-border, #e2e8f0);
  text-align: center;
}

.vji-demo-hero__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vji-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--vji-primary, #4f46e5);
  padding: 0.35rem 0.95rem;
  border-radius: var(--vji-radius-full, 9999px);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px -1px rgba(79, 70, 229, 0.08);
  margin-bottom: 1.25rem;
}

.vji-demo-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: vjiPulse 2s infinite ease-in-out;
}

@keyframes vjiPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.vji-demo-hero__title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 1.15rem;
}

.vji-demo-hero__highlight {
  background: linear-gradient(135deg, var(--vji-primary, #4f46e5) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vji-demo-hero__desc {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--vji-text-muted, #64748b);
  max-width: 680px;
  margin-bottom: 1.75rem;
}

.vji-demo-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.vji-demo-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--vji-text-body, #334155);
}

.vji-demo-trust-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ==========================================================================
   Section & Cards Grid
   ========================================================================== */
.vji-demo-section {
  padding: 3.5rem 0 5.5rem;
}

.vji-demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.vji-demo-card {
  background: #ffffff;
  border: 1px solid var(--vji-border, #e2e8f0);
  border-radius: 18px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.04), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
  position: relative;
  overflow: hidden;
}

.vji-demo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, transparent);
  transition: background 250ms ease;
}

.vji-demo-card--wp::before {
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
}

.vji-demo-card--woo::before {
  background: linear-gradient(90deg, #7c3aed, #ec4899);
}

.vji-demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.09), 0 1px 3px 0 rgba(15, 23, 42, 0.04);
}

.vji-demo-card--wp:hover {
  border-color: rgba(79, 70, 229, 0.35);
}

.vji-demo-card--woo:hover {
  border-color: rgba(124, 58, 237, 0.35);
}

/* Card Header */
.vji-demo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vji-demo-card__icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vji-demo-card--wp .vji-demo-card__icon-wrap {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
  color: var(--vji-primary, #4f46e5);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.vji-demo-card--woo .vji-demo-card__icon-wrap {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(236, 72, 153, 0.12) 100%);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.vji-demo-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--vji-radius-full, 9999px);
  background: var(--vji-surface-muted, #f1f5f9);
  color: var(--vji-text-muted, #64748b);
  border: 1px solid var(--vji-border, #e2e8f0);
}

.vji-demo-card--wp .vji-demo-card__tag {
  background: #eef2ff;
  color: #4338ca;
  border-color: rgba(79, 70, 229, 0.2);
}

.vji-demo-card--woo .vji-demo-card__tag {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.2);
}

/* Card Body */
.vji-demo-card__body {
  flex: 1;
}

.vji-demo-card__title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--vji-text-heading, #0f172a);
  margin-bottom: 0.75rem;
}

.vji-demo-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--vji-text-muted, #64748b);
  margin-bottom: 1.5rem;
}

.vji-demo-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vji-demo-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--vji-text-body, #334155);
}

.vji-demo-card__features li svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Card Footer & Launch Buttons */
.vji-demo-card__footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.vji-demo-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.vji-demo-launch-btn--wp {
  background: var(--vji-primary, #4f46e5);
  box-shadow: 0 4px 14px -2px rgba(79, 70, 229, 0.4);
}

.vji-demo-launch-btn--wp:hover {
  background: var(--vji-primary-hover, #4338ca);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(79, 70, 229, 0.5);
}

.vji-demo-launch-btn--woo {
  background: #7c3aed;
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.4);
}

.vji-demo-launch-btn--woo:hover {
  background: #6d28d9;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -2px rgba(124, 58, 237, 0.5);
}

.vji-demo-launch-btn svg {
  transition: transform 180ms ease;
}

.vji-demo-launch-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Custom Content if user has Gutenberg blocks */
.vji-demo-custom-content {
  background: #ffffff;
  border: 1px solid var(--vji-border, #e2e8f0);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .vji-demo-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .vji-demo-hero {
    padding: 3.5rem 0 2.5rem;
  }

  .vji-demo-hero__desc {
    font-size: 1rem;
  }

  .vji-demo-card {
    padding: 1.75rem 1.35rem;
  }

  .vji-demo-trust-strip {
    flex-direction: column;
    gap: 0.75rem;
  }
}
