/* SNS Metric Overlay Extension CSS */

.sns-metric-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  z-index: 99999 !important;
  user-select: none;
}

/* Photo 1 Exact Matching: Fixed Viewport Floating Vertical Left Layout (Escapes all overflow:hidden & contain:paint) */
.sns-metric-container.vertical-float {
  position: fixed !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 5px !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  pointer-events: auto !important;
}

/* Base Badge Pill */
.sns-metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sns-metric-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

/* Standard Metric Pill (Dark Slate) */
.sns-metric-pill.pill-standard {
  background-color: #262b32;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sns-metric-pill.pill-standard .pill-label {
  color: #94a3b8;
  font-weight: 500;
  font-size: 10.5px;
}

.sns-metric-pill.pill-standard .pill-value {
  color: #ffffff;
  font-weight: 700;
}

/* Multiplier Badges */
.sns-metric-pill.multiplier-super {
  background: linear-gradient(135deg, #ff6b00 0%, #ff3b00 100%);
  color: #ffffff;
  border: 1px solid #ff7a1a;
  font-size: 12.5px;
  padding: 4px 11px;
  animation: pulse-glow 2s infinite alternate;
}

.sns-metric-pill.multiplier-high {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  color: #ffffff;
  border: 1px solid #8b5cf6;
  font-size: 12.5px;
  padding: 4px 11px;
}

.sns-metric-pill.multiplier-medium {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #1e1b4b;
  font-weight: 700;
  font-size: 12px;
}

.sns-metric-pill.multiplier-normal {
  background-color: #334155;
  color: #f1f5f9;
  border: 1px solid #475569;
}

.sns-metric-pill.multiplier-low {
  background-color: #3b424a;
  color: #cbd5e1;
  border: 1px solid #4b5563;
}

.sns-metric-pill .emoji {
  font-size: 12px;
  line-height: 1;
}

/* Photo 1 Right Chick Action Button 🐥 (Fixed Viewport Positioning) */
.sns-chick-action-btn {
  position: fixed !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  border: 2px solid #facc15 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 19px !important;
  z-index: 99999 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  user-select: none !important;
  margin: 0 !important;
}

.sns-chick-action-btn:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.6) !important;
}

.sns-chick-action-btn:active {
  transform: scale(0.95) !important;
}

/* Dark Action Popup Modal */
.sns-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(4px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: fadeIn 0.2s ease;
}

.sns-action-modal {
  background-color: #121620 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  width: 210px !important;
  padding: 18px 16px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  animation: popIn 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none !important;
}

.sns-modal-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.sns-modal-title.sns-title-sub {
  margin-top: 14px;
}

/* Modal Button Base */
.sns-modal-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sns-modal-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sns-modal-btn:active {
  transform: translateY(1px);
}

.sns-modal-btn.btn-gradient {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  color: #0f172a;
  font-weight: 700;
}

.sns-modal-btn.btn-purple {
  background: linear-gradient(135deg, #5850ec 0%, #4338ca 100%);
  color: #ffffff;
}

.sns-dual-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.sns-modal-btn.btn-half {
  margin-bottom: 0;
}

.sns-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  margin: 10px auto 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sns-modal-close-btn:hover {
  background-color: #dc2626;
  transform: scale(1.12);
}

.sns-toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background-color: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.sns-toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
