/* ======================================================
   EXTENSION TWITCH LIVE DETECTOR - STYLES
   ====================================================== */

/* 1. Bannière en haut de page */
.tl-banner {
  background: linear-gradient(90deg, #9146FF 0%, #6441a5 100%);
  color: #ffffff;
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: inherit;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(145, 70, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tl-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pastille rouge de la bannière haut */
.tl-pill {
  background-color: #e50914;
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tl-whiteDot {
  width: 7px;
  height: 7px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: tl-pulse 1.5s infinite ease-in-out;
}

.tl-btn {
  background-color: #ffffff;
  color: #9146FF;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: transform 0.2s, background-color 0.2s;
}

.tl-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.04);
}

/* 2. Actions (Uptime Twitch + Bouton) */
.tl-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-uptime {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* 3. Centrage parfait du bouton Twitch avec le point rouge */
.button-twitch.tl-is-live {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 2px solid #9146FF !important;
  box-shadow: 0 0 12px rgba(145, 70, 255, 0.4);
}

.tl-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* Le point rouge clignotant centré */
.tl-redDot {
  width: 8px;
  height: 8px;
  background-color: #e50914;
  border-radius: 50%;
  display: block;
  animation: tl-pulse 1.5s infinite ease-in-out;
  margin: 0 !important;
}

/* Animation d'impulsion */
@keyframes tl-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.6;
  }
}

/* Adaptation mobile */
@media (max-width: 480px) {
  .tl-banner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 12px 10px;
    gap: 10px;
  }

  .tl-content {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .tl-content span {
    text-wrap: balance;
  }

  .tl-actions {
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }

  .tl-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }
}