/* ==========================================================================
   LIVE STREAMING & CHAT STYLESHEET — FRANCE DU PEUPLE
   ========================================================================== */

body.live-body {
  background: #01040D;
  color: #F8FAFC;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.live-header {
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.live-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #0055A5;
  box-shadow: 0 0 12px rgba(0, 85, 165, 0.6);
}

.live-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-viewer-count-badge {
  background: rgba(239, 65, 53, 0.2);
  border: 1px solid #EF4135;
  color: #FF6B6B;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
}

/* MAIN LIVE WORKSPACE */
.live-main-container {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.live-grid-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  height: calc(100vh - 120px);
  min-height: 550px;
}

@media (max-width: 960px) {
  .live-grid-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* CAMERA VIEWPORT */
.live-video-column {
  display: flex;
  flex-direction: column;
}

.video-container-box {
  background: #000;
  border-radius: 16px;
  border: 1px solid rgba(0, 210, 255, 0.4);
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 85, 165, 0.3);
}

.live-video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050b14;

  /* FILTRE WEBCAM : NOIR & BLANC AUTOMATIQUE + LISSAGE DÉLICAT ANTI-RIDES */
  filter: grayscale(100%) contrast(118%) brightness(106%) blur(0.35px) drop-shadow(0 0 2px rgba(255, 255, 255, 0.15)) !important;
  transition: filter 0.4s ease-in-out;
}

.video-overlay-top {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.badge-pulse-red {
  background: #EF4135;
  color: #FFF;
  font-weight: 900;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  animation: pulse-live-red 1.5s infinite;
}

@keyframes pulse-live-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 65, 53, 0.8); }
  70% { box-shadow: 0 0 0 10px rgba(239, 65, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 65, 53, 0); }
}

.badge-black-translucent {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.85rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-overlay-bottom {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

/* LIVE CHAT STREAM */
.live-chat-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-color: rgba(0, 210, 255, 0.3);
  padding: 16px;
}

.chat-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.moderation-panel-box {
  background: rgba(0, 85, 165, 0.1);
  border: 1px solid rgba(0, 85, 165, 0.3);
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.live-chat-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
}

.live-chat-msg-item {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  position: relative;
  transition: background 0.2s ease;
}

.live-chat-msg-item:hover {
  background: rgba(0, 210, 255, 0.1);
}

.live-user-mod-btn {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(239, 65, 53, 0.2);
  border: 1px solid #EF4135;
  color: #FF6B6B;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.live-chat-msg-item:hover .live-user-mod-btn {
  display: inline-block;
}

.live-chat-input-area {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

/* COUNTDOWN OVERLAY */
.live-countdown-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.countdown-card {
  max-width: 700px;
  width: 100%;
  padding: 50px 30px;
}

.countdown-digits-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.digit-unit {
  background: rgba(2, 6, 23, 0.9);
  border: 2px solid #0077FF;
  border-radius: 14px;
  padding: 16px 24px;
  min-width: 100px;
  box-shadow: 0 0 20px rgba(0, 85, 165, 0.3);
}

.digit-unit span {
  font-size: 3rem;
  font-weight: 900;
  color: #0077FF;
  display: block;
}

.digit-unit small {
  color: #94a3b8;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.digit-separator {
  font-size: 3rem;
  font-weight: 900;
  color: #00d2ff;
}

/* LIVE CHAT FILTER TABS */
.live-chat-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-filter-btn {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-filter-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: #00d2ff;
  color: #FFF;
}

/* DISTINCT QUESTION HIGHLIGHT CARD */
.live-chat-msg-item.is-question {
  background: linear-gradient(135deg, rgba(0, 85, 165, 0.15) 0%, rgba(2, 6, 23, 0.9) 100%);
  border: 2px solid #0077FF;
  box-shadow: 0 0 15px rgba(0, 85, 165, 0.2);
}

.question-badge-cyan {
  background: #0077FF;
  color: #000;
  font-weight: 900;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.btn-mark-answered {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
}

.btn-mark-answered:hover {
  background: #10B981;
  color: #000;
}
