/* live.css — NovaLIVE module styles.
   Owns: LIVE page layout, featured stream hero, category tabs, creator grid.
   Does NOT own: sidebar, app shell globals. */

.live-page { padding: 24px 28px 60px; max-width: 1280px; margin: 0 auto; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

/* Header */
.live-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.live-header-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #FF4D6D 0%, #FF2D55 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-header-icon svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
.live-header { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.live-header-icon { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #FF4D6D 0%, #FF2D55 100%); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-header-icon svg { width: 20px; height: 20px; fill: #fff; stroke: none; }
.live-header h1 { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0; letter-spacing: -0.02em; }
.live-header h1 span { color: #FF4D6D; }
.live-header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.live-go-live-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; background: #FF4D6D; color: #fff;
  border-radius: 20px; font-size: 0.82rem; font-weight: 700;
  text-decoration: none; transition: all 0.15s;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.live-go-live-btn:hover { background: #ff3358; transform: translateY(-1px); }
.live-go-live-btn svg { width: 14px; height: 14px; fill: #fff; stroke: none; }

/* Featured stream hero */
.live-featured { position: relative; border-radius: 16px; overflow: hidden; background: #1A1A1A; margin-bottom: 32px; cursor: pointer; transition: transform 0.2s; aspect-ratio: 16 / 7; min-height: 260px; }
.live-featured:hover { transform: scale(1.005); }
.live-featured-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #1a0a10 0%, #0d0d1a 40%, #0a1a1a 100%); }
.live-featured-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%); }
.live-featured-visual { position: absolute; inset: 0; overflow: hidden; }
.live-featured-visual::before { content: ''; position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,77,109,0.12) 0%, transparent 70%); animation: livePulse 3s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.live-featured-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; z-index: 2; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #FF4D6D; border-radius: 4px; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.live-badge-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: liveDot 1.5s ease-in-out infinite; }
@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-featured-creator { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.live-featured-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #FF4D6D; object-fit: cover; background: #2a2a2a; }
.live-featured-name { font-size: 1.2rem; font-weight: 700; color: #fff; }
.live-featured-handle { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 2px; }
.live-featured-title { font-size: 1.05rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; font-weight: 400; }
.live-featured-meta { display: flex; align-items: center; gap: 16px; }
.live-viewers { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 500; }
.live-viewers svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 2; }
.live-category-tag { display: inline-flex; padding: 3px 10px; background: rgba(255,255,255,0.08); border-radius: 12px; color: rgba(255,255,255,0.6); font-size: 0.78rem; font-weight: 500; }

/* Filter buttons */
.live-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.live-filter-btn {
  padding: 6px 16px; border-radius: 20px;
  background: #1A1A1A; color: #aaa; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.06); cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s;
}
.live-filter-btn:hover { background: #252525; color: #fff; }
.live-filter-btn.active { background: #FF4D6D; color: #fff; border-color: #FF4D6D; }

/* Category tabs */
.live-tabs { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.live-tabs::-webkit-scrollbar { display: none; }
.live-tab { padding: 8px 18px; border-radius: 20px; background: #1A1A1A; color: #aaa; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.06); cursor: pointer; white-space: nowrap; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.live-tab:hover { background: #252525; color: #fff; }
.live-tab.active { background: #FF4D6D; color: #fff; border-color: #FF4D6D; }
.live-section-heading { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0 0 16px; letter-spacing: -0.01em; }

/* Creator grid */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 40px; }
.live-card { background: #1A1A1A; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.04); transition: transform 0.15s, border-color 0.15s; cursor: pointer; text-decoration: none; display: block; color: inherit; }
.live-card:hover { transform: translateY(-2px); border-color: rgba(255,77,109,0.2); }
.live-card-preview { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #121218 0%, #1a1020 100%); overflow: hidden; }
.live-card-preview::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(255,77,109,0.05) 0%, rgba(0,242,234,0.05) 100%); animation: cardShimmer 4s ease-in-out infinite alternate; }
@keyframes cardShimmer { 0% { opacity: 0.3; } 100% { opacity: 0.8; } }
.live-card-preview .live-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.live-card-viewers { position: absolute; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,0.65); padding: 3px 8px; border-radius: 6px; color: #fff; font-size: 0.72rem; font-weight: 600; z-index: 2; }
.live-card-viewers svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 2; }
/* Wave animation for card content */
.live-card-wave { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: flex-end; gap: 3px; height: 32px; z-index: 1; }
.live-card-wave span { width: 4px; background: rgba(255,77,109,0.3); border-radius: 2px; animation: waveBar 1.2s ease-in-out infinite; }
.live-card-wave span:nth-child(1) { height: 40%; animation-delay: 0s; }
.live-card-wave span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.live-card-wave span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.live-card-wave span:nth-child(4) { height: 80%; animation-delay: 0.45s; }
.live-card-wave span:nth-child(5) { height: 35%; animation-delay: 0.6s; }
@keyframes waveBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.5); } }
.live-card-info { padding: 14px 16px; }
.live-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.live-card-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #FF4D6D; object-fit: cover; background: #2a2a2a; flex-shrink: 0; }
.live-card-name { font-size: 0.92rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-card-category { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.live-card-description { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Suggested creators */
.live-suggested { margin-top: 8px; }
.live-suggested-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.live-suggested-card { background: #1A1A1A; border-radius: 12px; padding: 20px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid rgba(255,255,255,0.04); transition: border-color 0.15s; text-decoration: none; color: inherit; }
.live-suggested-card:hover { border-color: rgba(255,77,109,0.15); }
.live-suggested-avatar { width: 56px; height: 56px; border-radius: 50%; background: #2a2a2a; border: 2px solid rgba(255,77,109,0.3); object-fit: cover; margin-bottom: 10px; }
.live-suggested-name { font-size: 0.88rem; font-weight: 600; color: #fff; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.live-suggested-followers { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.live-suggested-notify-btn { margin-top: 10px; padding: 6px 16px; border: 1px solid rgba(255,77,109,0.3); background: rgba(255,77,109,0.08); color: #FF4D6D; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.15s; font-family: 'Inter', sans-serif; }
.live-suggested-notify-btn:hover { background: rgba(255,77,109,0.15); }

/* Empty state */
.live-empty { text-align: center; padding: 60px 20px; color: rgba(255,255,255,0.4); }
.live-empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: rgba(255,255,255,0.04); border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.live-empty-icon svg { width: 28px; height: 28px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1.5; }
.live-empty h3 { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.live-empty p { font-size: 0.88rem; max-width: 320px; margin: 0 auto; line-height: 1.5; }

/* Responsive */
@media (max-width: 768px) {
  .live-page { padding: 16px 16px 60px; }
  .live-featured { aspect-ratio: auto; min-height: 220px; }
  .live-featured-content { padding: 20px; }
  .live-featured-name { font-size: 1rem; }
  .live-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .live-suggested-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .live-grid { grid-template-columns: 1fr; }
  .live-suggested-grid { grid-template-columns: repeat(2, 1fr); }
}
