/* ═══════════════════════════════════════════════════════════
   THE TRUMP TRADE — seo-social.css
   Share bar, email capture, Reddit widget
═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1. FLOATING SHARE BAR
══════════════════════════════════════════════════════════ */
#share-bar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.share-btn:hover {
  transform: scale(1.12);
  background: var(--bg-3);
  border-color: var(--border-light);
  color: var(--text-1);
}

.share-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.share-btn-label {
  line-height: 1;
  text-transform: uppercase;
}

/* Per-platform accent colours on hover */
.share-btn-twitter:hover {
  background: rgba(29, 155, 240, 0.12);
  border-color: rgba(29, 155, 240, 0.45);
  color: #1d9bf0;
  box-shadow: 0 0 14px rgba(29, 155, 240, 0.2);
}

.share-btn-reddit:hover {
  background: rgba(255, 69, 0, 0.12);
  border-color: rgba(255, 69, 0, 0.45);
  color: #ff4500;
  box-shadow: 0 0 14px rgba(255, 69, 0, 0.2);
}

.share-btn-copy:hover {
  background: rgba(0, 200, 150, 0.1);
  border-color: rgba(0, 200, 150, 0.35);
  color: var(--green);
  box-shadow: 0 0 14px rgba(0, 200, 150, 0.15);
}

/* Copy toast */
#copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-3);
  border: 1px solid var(--border-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 200;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

#copy-toast.copy-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Mobile: horizontal bottom bar ──────────────────────── */
@media (max-width: 767px) {
  #share-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 0 12px;
    gap: 0;
    border-radius: 0;
    z-index: 50;
  }

  .share-btn {
    flex: 1;
    width: auto;
    height: 44px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    flex-direction: row;
    gap: 6px;
    font-size: 11px;
  }

  .share-btn:hover {
    transform: none;
    background: var(--bg-3);
  }

  /* Pad body so mobile bar doesn't obscure footer content */
  body {
    padding-bottom: 56px;
  }
}

/* ══════════════════════════════════════════════════════════
   2. EMAIL CAPTURE SECTION
══════════════════════════════════════════════════════════ */
#email-capture-section {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
}

.email-capture-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.email-capture-icon {
  font-size: 36px;
  line-height: 1;
}

.email-capture-headline {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.5px;
  line-height: 1.15;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.email-capture-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 440px;
}

.email-capture-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.email-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.email-capture-input {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
}

.email-capture-input::placeholder {
  color: var(--text-3);
}

.email-capture-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.email-capture-btn {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.email-capture-btn:hover {
  background: #e0122f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.email-capture-btn:active {
  transform: translateY(0);
}

.email-capture-error {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  min-height: 18px;
  text-align: left;
  padding-left: 4px;
}

/* Success state */
.email-capture-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
  width: 100%;
  animation: fadeIn 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.email-capture-success[hidden] {
  display: none !important;
}

.email-success-check {
  font-size: 20px;
  font-weight: 900;
  flex-shrink: 0;
}

.email-capture-legal {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}

/* Responsive: stack input + button on narrow screens */
@media (max-width: 480px) {
  .email-input-row {
    flex-direction: column;
  }

  .email-capture-btn {
    width: 100%;
  }

  .email-capture-headline {
    font-size: 22px;
  }
}

/* ══════════════════════════════════════════════════════════
   3. REDDIT WIDGET (sidebar)
      Inherits .sidebar-widget, .widget-header, .quick-link
      styles from styles.css — only add delta styles here.
══════════════════════════════════════════════════════════ */
#reddit-widget {
  /* Matches .sidebar-widget exactly — no overrides needed */
}

.reddit-widget-link {
  /* Inherits .quick-link; just add the external arrow */
  justify-content: flex-start;
}

.reddit-widget-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-4);
  transition: color 0.15s ease;
}

.reddit-widget-link:hover .reddit-widget-arrow {
  color: var(--gold);
}

.reddit-widget-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.reddit-widget-post-btn {
  display: block;
  width: 100%;
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid rgba(255, 69, 0, 0.35);
  border-radius: var(--radius-md);
  color: #ff4500;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-align: center;
}

.reddit-widget-post-btn:hover {
  background: rgba(255, 69, 0, 0.18);
  border-color: rgba(255, 69, 0, 0.6);
  color: #ff6020;
}
