/* =========================================================
   The Flying Eagle — Universal Social & Forum Share Modal
   Dark Tactical Blueprint (#0b1320) & Metallic Gold (#e5b94c)
   ========================================================= */

.fe-share-fab {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 94;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(229, 185, 76, 0.48);
  background: rgba(18, 22, 31, 0.94);
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.fe-share-fab:hover {
  transform: translateY(-2px);
  border-color: #e5b94c;
  background: #1b2230;
}

.fe-share-fab-icon {
  color: #e5b94c;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .fe-share-fab {
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media print {
  .fe-share-fab,
  .fe-share-backdrop {
    display: none !important;
  }
}

.fe-share-backdrop[hidden] {
  display: none !important;
}

.fe-share-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 9, 16, 0.84);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
}

.fe-share-modal {
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  overflow-y: auto;
  background: #0b1320;
  color: #e8eef7;
  border: 1px solid #2b4669;
  border-radius: 12px;
  padding: 18px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.fe-share-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.22);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.fe-share-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #f8fafc;
}

.fe-share-head h2 span {
  color: #e5b94c;
}

.fe-share-close {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  border-radius: 8px;
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fe-share-close:hover {
  border-color: #e5b94c;
  color: #ffffff;
}

.fe-share-grid {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 580px) {
  .fe-share-grid {
    grid-template-columns: 1fr;
  }
}

.fe-share-preview-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fe-share-preview {
  width: 100%;
  max-width: 185px;
  aspect-ratio: 9 / 16;
  border: 1px solid #355782;
  border-radius: 8px;
  background: #070d17;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.fe-share-dim-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fe-share-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fe-share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fe-share-actions button {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid #355782;
  background: #132238;
  color: #f2f6fc;
  font-size: 0.81rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.fe-share-actions button:hover {
  background: #1a3050;
  border-color: #60a5fa;
}

.fe-share-actions button.fe-btn-primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: #f59e0b;
  color: #ffffff;
}

.fe-share-actions button.fe-btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.fe-share-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #9fb3cc;
  margin-top: 2px;
}

#feShareSnippet {
  width: 100%;
  box-sizing: border-box;
  background: #070d17;
  color: #e2e8f0;
  border: 1px solid #2b4669;
  border-radius: 7px;
  padding: 9px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  resize: vertical;
}

.fe-share-status {
  min-height: 1.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
}

.fe-share-video {
  object-fit: cover;
  display: block;
}

.fe-share-preview[hidden] {
  display: none !important;
}
