/* ==========================================================================
   BookWellNow Demos Page Styling (Competitor Inspired - Premium SaaS Polish)
   ========================================================================== */

/* Page Wrapper & Layout */
.demos-page-wrapper {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  overflow-x: hidden;
  background-color: #fafafa;
}

.demos-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

/* Hero Section */
.demos-hero {
  position: relative;
  padding: 140px 0 60px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
}

/* Ambient Glow Blobs */
.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.blob-1 {
  top: -10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #5700B4 0%, rgba(255,255,255,0) 70%);
}

.blob-2 {
  bottom: -20%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(255,255,255,0) 70%);
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(87, 0, 180, 0.06);
  color: #5700B4;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(87, 0, 180, 0.1);
}

.demos-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #111827;
  margin-bottom: 20px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gradient-text {
  background: linear-gradient(135deg, #5700B4 30%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.demos-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: #4b5563;
  margin: 0 auto;
  max-width: 650px;
}

/* Showcase Section */
.demos-showcase {
  padding: 60px 0 100px;
}

/* Filter Tab Bar */
.demos-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
  position: relative;
  z-index: 10;
}

.filter-tab {
  background: #ffffff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-tab:hover {
  border-color: #cbd5e1;
  color: #111827;
  transform: translateY(-1px);
}

.filter-tab.active {
  background: #5700B4;
  color: #ffffff;
  border-color: #5700B4;
  box-shadow: 0 4px 12px rgba(87, 0, 180, 0.15);
}

/* Demos Grid */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 5;
}

/* Demo Card */
.demo-card {
  background: #ffffff;
  border: 1px solid #e5e0d4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  border-color: rgba(87, 0, 180, 0.15);
}

/* Card Visual Header */
.demo-card-visual {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.demo-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
}

.demo-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-card-badge {
  display: inline-block;
  color: #5700B4;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.demo-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.demo-card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 24px;
  flex: 1;
}

/* Actions Container */
.demo-card-actions {
  display: flex;
  gap: 12px;
}

/* CTA Buttons */
.btn-demo {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-demo svg {
  transition: transform 0.2s ease;
}

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

.btn-demo-primary {
  background: #5700B4;
  color: #ffffff !important;
  border: 1px solid #5700B4;
  box-shadow: 0 2px 4px rgba(87, 0, 180, 0.1);
}

.btn-demo-primary:hover {
  background: #460096;
  border-color: #460096;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(87, 0, 180, 0.2);
}

.btn-demo-secondary {
  background: #ffffff;
  color: #4b5563 !important;
  border: 1px solid #e5e7eb;
}

.btn-demo-secondary:hover {
  background: #fdfbf7;
  border-color: #5700B4;
  color: #5700B4 !important;
  transform: translateY(-1px);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .demos-container {
    padding: 0 2rem;
  }
  .demos-hero {
    padding: 120px 0 50px;
  }
}

@media (max-width: 768px) {
  .demos-container {
    padding: 0 1.25rem;
  }
  .demos-hero {
    padding: 100px 0 40px;
  }
  .demos-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }
  .demos-filter-bar::-webkit-scrollbar {
    height: 4px;
  }
  .demos-filter-bar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 10px;
  }
  .demos-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
  }
  .demo-card-actions {
    flex-direction: column;
    gap: 8px;
  }
}
