/* ═══════════════════════════════════════════════════════════════
   EMIX — Entertainment Booking Dashboard
   Home.css — Main content & layout styles only
   (Sidebar + Topbar styles live in Navbar.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ───────────────────────────────────────────── */
:root {
  --bg-gradient:    linear-gradient(135deg, #000000 0%, #DA3662 55%, #ffffff 100%);
  --crimson:        #7b1e3a;
  --neon-pink:      #ff2d78;
  --neon-pink-soft: #ff6fa0;
  --neon-glow:      rgba(255, 45, 120, 0.35);
  --neon-glow-sm:   rgba(255, 45, 120, 0.15);
  --blush:          #fde8f0;
  --text-primary:   #fdeef5;
  --text-secondary: #c9839e;
  --text-muted:     #8a5570;
  --glass-bg:       rgba(10, 2, 6, 0.62);
  --glass-border:   rgba(255, 45, 120, 0.15);
  --glass-border-strong: rgba(255, 45, 120, 0.3);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(255,45,120,0.08);
  --shadow-hover:   0 16px 48px rgba(0,0,0,0.65), 0 4px 16px rgba(255,45,120,0.2);
  --sidebar-w:      252px;
  --right-panel-w:  290px;
  --topbar-h:       72px;
  --radius-card:    20px;
  --radius-sm:      12px;
  --font-display:   'Montserrat', sans-serif;
  --font-body:      'Poppins', sans-serif;
  --transition:     0.28s cubic-bezier(.4,0,.2,1);
}

/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.35;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: none; cursor: pointer; font-family: var(--font-body); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 4px; }


/* ════════════════════════════════════════════════════════════════
   MAIN CONTENT — offset by sidebar width (from Navbar.css)
   ════════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--topbar-h);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
  position: relative;
  z-index: 1;
}


/* ════════════════════════════════════════════════════════════════
   LAYOUT WRAPPER
   ════════════════════════════════════════════════════════════════ */
.layout-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ── CENTER FEED (scrollable) ────────────────────────────────── */
.center-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 28px 24px;
  margin-right: var(--right-panel-w);
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* ════════════════════════════════════════════════════════════════
   HERO CARD
   ════════════════════════════════════════════════════════════════ */
.hero-card {
  border-radius: var(--radius-card);
  background:
    linear-gradient(125deg, rgba(123,30,58,0.85) 0%, rgba(61,15,31,0.93) 50%, rgba(10,2,6,0.98) 100%),
    url('https://images.unsplash.com/photo-1598488035139-bdbb2231ce04?w=1200&q=80') center/cover no-repeat;
  min-height: 320px;
  height: auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-card), 0 0 40px rgba(255,45,120,0.08) inset;
  transition: box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card:hover { box-shadow: var(--shadow-hover), 0 0 60px rgba(255,45,120,0.13) inset; }

.hero-bg-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,45,120,0.09) 0%, transparent 60%);
  pointer-events: none;
}

.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span {
  position: absolute; border-radius: 50%; background: var(--neon-pink);
  opacity: 0; animation: float-particle 8s ease-in-out infinite;
}
.hero-particles span:nth-child(1) { width: 4px; height: 4px; top: 20%; left: 75%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { width: 3px; height: 3px; top: 60%; left: 85%; animation-delay: 2.5s; }
.hero-particles span:nth-child(3) { width: 5px; height: 5px; top: 40%; left: 70%; animation-delay: 5s; }
.hero-particles span:nth-child(4) { width: 2px; height: 2px; top: 75%; left: 80%; animation-delay: 3s; }
@keyframes float-particle {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-40px); }
}

.hero-content {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 30px 16px; flex: 1;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--neon-pink-soft);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink); animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900; line-height: 1.1;
  color: #fff; letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-heading em {
  font-style: normal;
  background: linear-gradient(90deg, #fff 0%, var(--neon-pink-soft) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin: 6px 0 4px; }
.neon-text { color: var(--neon-pink); text-shadow: 0 0 14px var(--neon-glow), 0 0 30px rgba(255,45,120,0.2); }
.hero-desc { font-size: 12px; color: var(--text-muted); line-height: 1.65; max-width: 340px; margin-bottom: 18px; }

.hero-buttons { display: flex; gap: 12px; align-items: center; }
.btn-primary {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--neon-pink), #c0185a);
  color: #fff; font-size: 13.5px; font-weight: 700; padding: 12px 22px;
  border-radius: 50px; font-family: var(--font-body);
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,45,120,0.45); letter-spacing: 0.3px;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 30px rgba(255,45,120,0.6); }
.btn-primary i { font-size: 16px; }
.btn-secondary {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.07); backdrop-filter: blur(10px);
  color: var(--blush); font-size: 13.5px; font-weight: 600; padding: 11px 20px;
  border-radius: 50px; border: 1px solid rgba(255,255,255,0.16);
  font-family: var(--font-body); transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); border-color: rgba(255,255,255,0.28); }

.hero-stats { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.stat-bubble {
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,45,120,0.2); border-radius: 12px;
  padding: 10px 14px; text-align: center; transition: all var(--transition);
  min-width: 90px;
}
.stat-bubble:hover { background: rgba(255,45,120,0.1); border-color: rgba(255,45,120,0.4); box-shadow: 0 0 16px rgba(255,45,120,0.15); }
.stat-number { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 900; color: var(--neon-pink-soft); }
.stat-label { font-size: 9.5px; color: var(--text-muted); font-weight: 500; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; padding-bottom: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.35s ease; }
.dot.active { background: var(--neon-pink); width: 20px; border-radius: 3px; box-shadow: 0 0 8px var(--neon-glow); }


/* ════════════════════════════════════════════════════════════════
   PERFORMANCE DEMOS
   ════════════════════════════════════════════════════════════════ */
.demos-section {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card); padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.demos-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.demos-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--text-primary); margin-bottom: 3px; }
.demos-sub { font-size: 12px; color: var(--text-muted); }
.view-all {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--neon-pink-soft);
  border-bottom: 1px solid rgba(255,111,160,0.3); padding-bottom: 1px;
  transition: color var(--transition);
}
.view-all:hover { color: var(--neon-pink); }

.demos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }

.video-card {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(255,45,120,0.09); background: rgba(0,0,0,0.35);
  transition: all var(--transition); cursor: pointer;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px rgba(255,45,120,0.13); border-color: rgba(255,45,120,0.28); }
.video-card:hover .play-overlay { opacity: 1; }
.video-card:hover .play-circle { transform: scale(1.1); }

.video-thumb { position: relative; height: 140px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb-icon { font-size: 36px; color: rgba(255,255,255,0.08); position: absolute; }
.play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.play-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--neon-pink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; padding-left: 3px;
  box-shadow: 0 0 24px var(--neon-glow); transition: transform var(--transition);
}
.video-duration {
  position: absolute; bottom: 7px; right: 8px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px;
}
.video-info { padding: 10px 11px 11px; }
.video-title { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; line-height: 1.3; }
.video-meta { font-size: 10.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.demos-tagline {
  text-align: center; font-size: 12px; color: var(--text-muted);
  font-style: italic; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.demos-tagline i { color: var(--neon-pink); font-size: 14px; }


/* ════════════════════════════════════════════════════════════════
   HIGHLIGHT STRIP
   ════════════════════════════════════════════════════════════════ */
.highlight-strip {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card); padding: 16px 22px;
  display: flex; align-items: center; gap: 20px;
}
.strip-stat { display: flex; align-items: center; gap: 10px; flex: 1; }
.strip-num {
  font-family: var(--font-display); font-size: 24px; font-weight: 900;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-pink-soft));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap; line-height: 1;
}
.strip-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; max-width: 140px; }
.strip-divider { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, rgba(255,45,120,0.22), transparent); }
.strip-cta { flex-shrink: 0; }
.strip-btn {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--neon-pink), #c0185a); color: #fff;
  font-size: 13px; font-weight: 700; font-family: var(--font-body);
  padding: 12px 22px; border-radius: 50px;
  transition: all var(--transition); box-shadow: 0 4px 18px rgba(255,45,120,0.35);
}
.strip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,45,120,0.55); }


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* ── 1280px: right panel gets narrower, demos go 2-col ───────── */
@media (max-width: 1280px) {
  .center-feed {
    margin-right: var(--right-panel-w);
    padding: 14px 16px 24px 20px;
  }
  .demos-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-heading { font-size: 24px; }
  .hero-desc { font-size: 11.5px; }
}

/* ── 1100px: right panel hidden, feed goes full width ─────────── */
@media (max-width: 1100px) {
  .center-feed { margin-right: 0; }

  .highlight-strip {
    flex-wrap: wrap;
    gap: 14px;
  }
  .strip-stat { flex: 1 1 40%; }
  .strip-divider { display: none; }
  .strip-cta { flex: 1 1 100%; display: flex; justify-content: center; }
  .strip-btn { width: 100%; max-width: 260px; justify-content: center; }
}

/* ── 1024px: sidebar collapses to icon-only ───────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 68px; }

  .main-content { margin-left: var(--sidebar-w); }

  .center-feed { padding: 14px 16px 24px 16px; }

  .hero-content { padding: 20px 22px 14px; gap: 16px; }
  .hero-heading { font-size: 22px; }
  .hero-desc { font-size: 11px; max-width: 280px; }
  .btn-primary,
  .btn-secondary { font-size: 12.5px; padding: 10px 18px; }

  .demos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ── 768px: mobile — sidebar hidden, single col layout ──────────  */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 0px;
    --topbar-h:  60px;
  }

  body { overflow-y: auto; overflow-x: hidden; }

  .main-content {
    margin-left: 0;
    margin-top: var(--topbar-h);
    height: auto;
    min-height: calc(100vh - var(--topbar-h));
    overflow: visible;
  }

  .layout-wrapper {
    flex-direction: column;
    overflow: visible;
  }

  .center-feed {
    margin-right: 0;
    overflow-y: visible;
    height: auto;
    padding: 12px 14px 32px;
    gap: 14px;
  }

  /* Hero card */
  .hero-card { min-height: 260px; }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 12px;
    gap: 14px;
  }

  .hero-heading { font-size: 22px; }
  .hero-subtitle { font-size: 13px; }
  .hero-desc { font-size: 11.5px; max-width: 100%; margin-bottom: 14px; }

  .hero-buttons { flex-wrap: wrap; gap: 10px; }
  .btn-primary,
  .btn-secondary { font-size: 12.5px; padding: 10px 18px; }

  .hero-stats { flex-direction: row; gap: 8px; width: 100%; }
  .stat-bubble { flex: 1; min-width: unset; padding: 8px 10px; }
  .stat-number { font-size: 15px; }

  /* Demos */
  .demos-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .video-thumb { height: 110px; }
  .demos-title { font-size: 15px; }

  /* Highlight strip */
  .highlight-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
  }
  .strip-stat { flex: unset; width: 100%; }
  .strip-num { font-size: 20px; }
  .strip-divider { display: none; }
  .strip-cta { width: 100%; }
  .strip-btn { width: 100%; justify-content: center; font-size: 12.5px; padding: 11px 18px; }
}

/* ── 480px: small mobile ────────────────────────────────────────── */
@media (max-width: 480px) {
  .center-feed { padding: 10px 10px 28px; gap: 12px; }

  .hero-card { min-height: 220px; border-radius: 14px; }
  .hero-content { padding: 16px 14px 10px; }
  .hero-eyebrow { font-size: 9px; }
  .hero-heading { font-size: 19px; }
  .hero-subtitle { font-size: 12px; }
  .hero-desc { font-size: 11px; }
  .btn-primary,
  .btn-secondary { font-size: 11.5px; padding: 9px 15px; }

  .demos-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .video-thumb { height: 95px; }
  .video-title { font-size: 11.5px; }
  .demos-section { padding: 14px; }

  .highlight-strip { border-radius: 14px; padding: 12px 14px; }
  .strip-num { font-size: 18px; }
  .strip-desc { font-size: 10.5px; }
}