/* =============================================
   SOCIAL SHARE BAR
   ============================================= */
.report-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.report-share-bar .share-label {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.share-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
}

.share-facebook:hover { background: #1877f2; border-color: #1877f2; }
.share-x:hover { background: #333; border-color: #333; }
.share-whatsapp:hover { background: #25d366; border-color: #25d366; }

.share-copy span {
  transition: opacity 0.2s;
}

/* Mobile: hide labels, show only icons */
@media (max-width: 768px) {
  .report-share-bar {
    justify-content: center;
    padding: 8px 10px;
  }
  .report-share-bar .share-label {
    display: none;
  }
  .share-btn span {
    display: none;
  }
  .share-btn {
    padding: 8px;
    border-radius: 50%;
  }
}

/* =============================================
   AI SHARE BUTTON
   ============================================= */
/* The container used to hardcode background:#1a1a2e, which put a dark navy slab in the
   middle of a white card under the light theme. It now takes the card token, so it sits
   on whatever surface the theme is using. Teal, not the site orange: the button lives
   beside a solid orange "Read Interpretation" and under an all-orange nav, so in the old
   10%-opacity orange it read as the disabled twin of the button above it. */
.ai-share-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: var(--dark-color2, #17384e);
  border: 1px solid rgba(14, 116, 144, 0.35);
  border-left: 4px solid #0e7490;
  border-radius: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.ai-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid #0e7490;
  background: #0e7490;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.ai-share-btn:hover {
  background: #0b5f76;
  border-color: #0b5f76;
  transform: translateY(-1px);
}

.ai-share-btn:active {
  transform: translateY(0);
}

.ai-share-btn:focus-visible {
  outline: 2px solid #0e7490;
  outline-offset: 2px;
}

/* was rgba(255,255,255,0.45): invisible on a light card once the slab was removed */
.ai-share-hint {
  color: var(--primary-color, #e5f0f5);
  opacity: 0.7;
  font-size: 12px;
}

@media (max-width: 768px) {
  .ai-share-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .ai-share-btn {
    justify-content: center;
  }
}

/* =============================================
   SWIPE INDICATOR (mobile only)
   ============================================= */
@media (max-width: 768px) {
  .tab-pane.active {
    position: relative;
  }

  /* Subtle swipe hint on first load */
  .swipe-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 9999;
    animation: swipeHintFade 3s ease forwards;
    pointer-events: none;
  }

  @keyframes swipeHintFade {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; }
  }
}
