/* ============================================================================
   Liquiplex Membership – Signal Pages CSS
   ============================================================================ */

:root {
  --lpm-radius: 12px;
  --lpm-shadow: 0 4px 24px rgba(0,0,0,.10);
  --lpm-primary: #7b2ff7;
  --lpm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Signal Header ──────────────────────────────────────────────────────────── */
.lpm-signal-header {
  font-family: var(--lpm-font);
  margin: 0 0 32px;
}

.lpm-signal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--lpm-radius);
  padding: 20px 24px;
  box-shadow: var(--lpm-shadow);
  flex-wrap: wrap;
}

.lpm-signal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.lpm-signal-name {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.lpm-ticker {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chain-color, #7b2ff7);
  margin-left: 6px;
  background: color-mix(in srgb, var(--chain-color, #7b2ff7) 12%, white);
  padding: 2px 10px;
  border-radius: 20px;
}

.lpm-live-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.lpm-price-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
}

.lpm-price-change {
  font-size: .9rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}
.lpm-price-change.positive { background: #d1fae5; color: #065f46; }
.lpm-price-change.negative { background: #fee2e2; color: #991b1b; }

.lpm-price-badge {
  background: #10b981;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  animation: lpm-pulse 2s ease-in-out infinite;
}

@keyframes lpm-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

.lpm-signal-tier-badge {
  margin-left: auto;
}
.lpm-signal-tier-badge span {
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-weight: 700;
}

/* ── TradingView Container ───────────────────────────────────────────────────── */
.lpm-tradingview-container {
  margin: 16px 0;
  border-radius: var(--lpm-radius);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* ── Signal Summary Panel ───────────────────────────────────────────────────── */
.lpm-signal-summary {
  background: linear-gradient(135deg, #f8f4ff 0%, #eff6ff 100%);
  border: 1px solid #e0d7f3;
  border-radius: var(--lpm-radius);
  padding: 20px 24px;
  margin: 16px 0;
}

.lpm-signal-summary-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .95rem;
}

.lpm-signal-data {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.lpm-signal-item {
  background: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

.lpm-signal-item-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  margin-bottom: 4px;
}

.lpm-signal-item-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.lpm-signal-item-value.bullish { color: #059669; }
.lpm-signal-item-value.bearish { color: #dc2626; }
.lpm-signal-item-value.neutral { color: #d97706; }

/* ── Access Wall ─────────────────────────────────────────────────────────────── */
.lpm-access-wall {
  text-align: center;
  padding: 60px 32px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border: 2px dashed #d1d5db;
  border-radius: var(--lpm-radius);
  margin: 24px 0;
}

.lpm-access-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 20px;
}

.lpm-access-wall h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}

.lpm-access-wall p {
  color: #6b7280;
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 24px;
}

.lpm-access-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.lpm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.lpm-btn-primary {
  background: var(--lpm-primary);
  color: #fff;
}
.lpm-btn-primary:hover {
  background: #6320d4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123,47,247,.35);
}

.lpm-btn-outline {
  background: transparent;
  color: var(--lpm-primary);
  border: 2px solid var(--lpm-primary);
}
.lpm-btn-outline:hover {
  background: var(--lpm-primary);
  color: #fff;
}

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.lpm-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: var(--lpm-primary);
  border-radius: 50%;
  animation: lpm-spin .7s linear infinite;
}
@keyframes lpm-spin { to { transform: rotate(360deg); } }

/* ── Archive (Signal Index) ──────────────────────────────────────────────────── */
.lpm-signal-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px 0;
}

.lpm-signal-card {
  background: #fff;
  border-radius: var(--lpm-radius);
  border: 1px solid #e5e7eb;
  box-shadow: var(--lpm-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.lpm-signal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
}

.lpm-signal-card-header {
  padding: 20px 20px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.lpm-signal-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.lpm-signal-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 2px;
}

.lpm-signal-card-ticker {
  font-size: .85rem;
  font-weight: 600;
  color: #6b7280;
}

.lpm-signal-card-price {
  padding: 0 20px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.lpm-signal-card-footer {
  padding: 12px 20px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: #9ca3af;
}

/* ── Reply Title ─────────────────────────────────────────────────────────────── */
.lpm-reply-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid var(--lpm-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ── Upgrade / Must Login Notice ─────────────────────────────────────────────── */
.lpm-must-login,
.lpm-upgrade-notice {
  background: linear-gradient(135deg, #f0ebff 0%, #eff6ff 100%);
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: .95rem;
  color: #3b0764;
  margin: 16px 0;
}

.lpm-upgrade-notice .lpm-btn-primary {
  display: inline-flex;
  margin-top: 10px;
}

/* ── Char counter ────────────────────────────────────────────────────────────── */
.lpm-char-counter {
  display: block;
  text-align: right;
  font-size: .78rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ── Comment Images ──────────────────────────────────────────────────────────── */
.lpm-comment-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lpm-comment-image {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  cursor: zoom-in;
  transition: transform .2s;
}
.lpm-comment-image:hover { transform: scale(1.03); }

/* Responsive */
@media (max-width: 600px) {
  .lpm-signal-hero { padding: 14px 16px; gap: 12px; }
  .lpm-signal-index { grid-template-columns: 1fr; }
  .lpm-comment-image { width: 100%; height: auto; }
}
