/* =========================================
   LoveOdds — Market Detail Page Styles
   ========================================= */

/* ---- MARKET HERO ---- */
.market-hero {
  padding: 64px 24px 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.market-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Photo + content split layout */
.market-hero-with-photo {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr 420px;
  gap: 48px;
  align-items: start;
}

.mh-photo-col {
  position: sticky;
  top: 84px;
}

.mh-celeb-photo {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card), 0 0 40px rgba(255, 107, 157, 0.12);
  display: block;
}

.mh-photo-credit {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  text-align: center;
}

.mh-content-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Original two-column layout (fallback when no photo) */
.market-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: start;
}

/* Couple meta row */
.mh-couple-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mh-emoji {
  font-size: 48px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mh-couple-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.mh-context {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.mh-question {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 32px;
}

.mh-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.mh-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mh-stat-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #ff9cc4;
}

.mh-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mh-stat-divider {
  color: var(--border-light);
  font-size: 14px;
}

.mh-countdown {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
}

.mh-countdown strong {
  color: var(--text-primary);
}

/* ---- BET PANEL ---- */
.bet-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card), var(--shadow-glow-pink);
  position: sticky;
  top: 84px;
}

.bet-panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

.bp-odds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.bp-option {
  padding: 18px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  background: none;
  transition: border-color 0.15s, transform 0.1s;
  text-align: left;
}

.bp-option:hover { transform: translateY(-1px); }

.bp-yes {
  background: var(--yes-bg);
  border-color: rgba(78, 205, 196, 0.25);
}

.bp-no {
  background: var(--no-bg);
  border-color: rgba(255, 107, 157, 0.25);
}

.bp-yes.active { border-color: var(--accent-teal); box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2); }
.bp-no.active  { border-color: var(--accent-pink); box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.2); }

.bp-opt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bp-opt-pct {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.bp-yes .bp-opt-pct { color: var(--accent-teal); }
.bp-no  .bp-opt-pct { color: var(--accent-pink); }

.bp-opt-price {
  font-size: 13px;
  color: var(--text-muted);
}

.bp-bar {
  height: 5px;
  border-radius: 99px;
  background: var(--bg-primary);
  overflow: hidden;
  display: flex;
  margin-bottom: 20px;
}

.bp-bar-yes { background: var(--accent-teal); transition: width 0.4s ease; }
.bp-bar-no  { background: var(--accent-pink); transition: width 0.4s ease; }

.bp-amount-section {
  margin-bottom: 16px;
}

.bp-amount-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bp-amount-display {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.bp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--bg-elevated);
  outline: none;
  margin-bottom: 12px;
}

.bp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  border: 2px solid var(--bg-card);
}

.bp-quick-amounts {
  display: flex;
  gap: 8px;
}

.bp-quick {
  flex: 1;
  padding: 7px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s, color 0.15s;
}

.bp-quick:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.bp-payout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-radius: 10px;
  margin-bottom: 16px;
}

.bp-payout-label {
  font-size: 12px;
  color: var(--text-muted);
}

.bp-payout-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-gold);
}

.bp-cta {
  width: 100%;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: not-allowed;
  transition: all 0.2s;
  margin-bottom: 10px;
}

.bp-cta.ready {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-pink));
  border-color: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.bp-cta.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255, 107, 157, 0.4);
}

.bp-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  opacity: 0.6;
}

/* ---- MARKET INFO ---- */
.market-info-section {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.market-info-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.market-info-block {
  flex: 1;
  min-width: 280px;
}

.mib-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 8px;
}

.mib-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.mib-link {
  color: var(--accent-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- BETS FEED ---- */
.bets-feed-section {
  padding: 48px 24px 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.bets-feed-inner {
  max-width: 1100px;
  margin: 0 auto;
  max-width: 640px;
}

.bets-feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.bets-feed-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.bets-feed-live {
  font-size: 12px;
  color: var(--accent-teal);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bets-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 15px;
}

.bet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.3s;
}

.bet-row-new {
  animation: betFadeIn 0.5s ease;
}

@keyframes betFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bet-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bet-handle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.bet-side {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bet-side-yes {
  background: rgba(78, 205, 196, 0.12);
  color: var(--accent-teal);
  border: 1px solid rgba(78, 205, 196, 0.25);
}

.bet-side-no {
  background: rgba(255, 107, 157, 0.12);
  color: var(--accent-pink);
  border: 1px solid rgba(255, 107, 157, 0.25);
}

.bet-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bet-amount {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.bet-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---- SHARE MODAL ---- */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 8, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 24px;
}

.share-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.share-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-card), 0 0 80px rgba(255, 107, 157, 0.15);
}

.share-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.share-modal-header {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
}

/* Share card (the "tweet card" visual) */
.share-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.sc-logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sc-couple {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sc-bet-line {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 8px;
}

.sc-question {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 12px;
}

.sc-odds {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.sc-yes { color: var(--accent-teal); font-weight: 600; }
.sc-no  { color: var(--accent-pink); font-weight: 600; }
.sc-sep { margin: 0 6px; }

.sc-url {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
}

.share-tweet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #000;
  border: 1px solid #333;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.15s;
}

.share-tweet-btn:hover { background: #111; }

.share-copy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}

.share-copy-btn:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .market-hero-with-photo {
    grid-template-columns: 280px 1fr 380px;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .market-hero-with-photo {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mh-photo-col { position: static; }
  .mh-celeb-photo {
    max-height: 280px;
  }
  .market-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bet-panel { position: static; }
}

@media (max-width: 600px) {
  .market-hero { padding: 40px 20px 56px; }
  .mh-question { font-size: 24px; }
  .bp-odds { grid-template-columns: 1fr 1fr; }
  .share-modal { padding: 24px; }
}
