/* ==========================================================================
   MSQ ANALYTICS WORLD — DEMO CENTER STYLES
   ========================================================================== */

/* Demo Section Full-Width Layout (Eliminate Side Whitespace) */
.demo-hero-section .container,
#demo-catalog .container,
#live-simulator .container {
  max-width: 1840px !important;
  width: 96% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

#demo-catalog {
  padding: 2.25rem 0 3rem 0;
}

#live-simulator {
  padding: 3rem 0;
}

/* Demo Filter Navigation Bar */
.demo-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto 1.75rem auto;
  padding: 0.4rem 0.8rem;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  border: 1px solid var(--slate-200);
}

.demo-filter-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--slate-600);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-filter-btn:hover {
  color: var(--msq-navy-850);
  background: rgba(255, 255, 255, 0.6);
}

.demo-filter-btn.active {
  background: var(--msq-navy-850);
  color: var(--pure-white);
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.2);
}

/* Demo Gallery Grid */
.demo-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.demo-card {
  background: #F4F8FD;
  border: 1.5px solid #D6E4F0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(10, 25, 47, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  min-height: 290px;
  padding: 2.25rem 2.25rem 2rem 2.25rem;
}

.demo-card-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.demo-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  gap: 0.75rem;
}

.demo-category-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--msq-blue-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}

.demo-tech-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-600);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #D1DFED;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.demo-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--msq-navy-850);
  line-height: 1.3;
  margin-bottom: 0.85rem;
  font-family: var(--font-heading);
  transition: color var(--transition-fast);
}

.demo-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 82%;
  flex-grow: 1;
  transition: color var(--transition-fast);
}

.demo-card-footer {
  margin-top: auto;
  position: relative;
  z-index: 5;
}

.demo-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.25);
  color: var(--msq-blue-600);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

/* Artistic MSQ Logo Q in Top-Right Corner — Hidden by default, animates in smoothly on hover (ThoughtFocus style) */
.demo-logo-q-arc {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 155px;
  height: 155px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(35px, -35px) scale(0.6) rotate(-10deg);
  color: var(--msq-orange-500);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, filter 0.45s ease;
}

.demo-q-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   HOVER STATE: Solid MSQ Logo Blue background, White text, Animated World Q
   ========================================================================== */
.demo-card:hover {
  transform: translateY(-6px);
  background: radial-gradient(circle at 80% 20%, var(--msq-navy-700) 0%, var(--msq-navy-850) 70%, var(--msq-navy-950) 100%) !important;
  border-color: rgba(90, 205, 254, 0.4);
  box-shadow: 0 20px 45px rgba(10, 25, 47, 0.28), 0 0 25px rgba(1, 117, 254, 0.2);
}

.demo-card:hover .demo-title {
  color: var(--pure-white) !important;
}

.demo-card:hover .demo-desc {
  color: rgba(226, 232, 240, 0.9) !important;
}

.demo-card:hover .demo-category-tag {
  color: var(--msq-cyan-400) !important;
}

.demo-card:hover .demo-tech-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--pure-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.demo-card:hover .demo-read-more-btn {
  background: var(--msq-orange-500);
  border-color: var(--msq-orange-500);
  color: var(--pure-white);
  box-shadow: 0 4px 18px var(--msq-orange-glow);
  transform: translateX(4px);
}

.demo-card:hover .demo-logo-q-arc {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0deg);
  color: var(--msq-orange-500);
  filter: drop-shadow(0 0 20px var(--msq-orange-glow));
}

/* Demo Modal Fullscreen Viewer */
.demo-modal-dialog {
  max-width: 960px;
  max-height: 92vh;
}

.demo-modal-header {
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.demo-modal-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.demo-modal-body-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
}

.demo-visual-viewer {
  background: var(--msq-navy-950);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--pure-white);
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.demo-specs-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.demo-spec-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.demo-spec-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--slate-500);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.demo-spec-content {
  font-size: 0.9rem;
  color: var(--slate-800);
  line-height: 1.5;
}

.demo-benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.demo-benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--slate-700);
}

.demo-benefits-list li::before {
  content: '✓';
  color: #10B981;
  font-weight: bold;
}

/* Demo Center Hero Split Layout */
.demo-hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.12) 0%, rgba(10, 25, 47, 0.98) 75%), #0A192F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 3rem 0;
  overflow: hidden;
}

.demo-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.demo-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.demo-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.demo-report-showcase-card {
  position: relative;
  width: 100%;
  max-width: 680px;
  background: rgba(7, 19, 36, 0.9);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 229, 255, 0.2);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.demo-report-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 229, 255, 0.35);
  border-color: var(--msq-cyan-400);
}

.demo-report-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 25, 47, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.demo-report-title-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pure-white);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.demo-report-pbi-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F2C811;
  color: #000;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.demo-report-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--msq-cyan-400);
  font-family: var(--font-mono);
  background: rgba(0, 229, 255, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 229, 255, 0.3);
  font-weight: 600;
}

.demo-report-live-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
}

.demo-report-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #071324;
}

.demo-report-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-report-overlay-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(7, 19, 36, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--pure-white);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.demo-report-showcase-card:hover .demo-report-overlay-badge {
  background: var(--msq-blue-600);
  border-color: var(--msq-cyan-400);
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.6);
}

@media (max-width: 991px) {
  .demo-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .demo-hero-content {
    align-items: center;
  }
  .demo-report-showcase-card {
    max-width: 100%;
  }
}

