/* =========================================================
   MATCH RESULT (1X2) CARD
   Restored layout (scoped)
========================================================= */

.prediction-card--match-result {
  position: relative;
}

.prediction-card--unavailable {
  position: relative;
}

.prediction-card .stats-disabled {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  cursor: not-allowed;
  opacity: 0.75;
}

.prediction-card--unavailable .prediction-unavailable-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px 22px;
}

.prediction-card--unavailable .pc-team,
.prediction-card--unavailable .prediction-unavailable-center {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.prediction-card--unavailable .pc-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.prediction-card--unavailable .pc-name {
  max-width: 140px;
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-card--unavailable .prediction-unavailable-box {
  width: min(100%, 330px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.88);
  color: #475569;
}

.prediction-card--unavailable .prediction-unavailable-kicker {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prediction-card--unavailable .prediction-unavailable-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.dark-mode .prediction-card--unavailable .prediction-unavailable-box {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.68);
  color: #cbd5e1;
}

.dark-mode .prediction-card--unavailable .prediction-unavailable-kicker {
  color: #f8fafc;
}

@media (max-width: 640px) {
  .prediction-card--unavailable .prediction-unavailable-body {
    grid-template-columns: minmax(0, 1fr) minmax(130px, 1.1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px 16px;
  }

  .prediction-card--unavailable .pc-logo {
    width: 42px;
    height: 42px;
  }

  .prediction-card--unavailable .pc-name {
    max-width: 92px;
    font-size: 11px;
  }

  .prediction-card--unavailable .prediction-unavailable-box {
    padding: 10px 9px;
  }

  .prediction-card--unavailable .prediction-unavailable-kicker {
    font-size: 10px;
  }

  .prediction-card--unavailable .prediction-unavailable-text {
    font-size: 10px;
  }
}

/* =========================
   HEADER
========================= */
.prediction-card--match-result .pc-header {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  font-weight: 500;
}

.prediction-card--match-result .stats {
  margin-left: auto;
  font-size: 18px;
  padding: 6px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}

.prediction-card--match-result .stats:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* =========================
   BODY GRID (Using Grid for strict alignment)
========================= */
.prediction-card--match-result .pc-body {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  grid-template-rows: auto auto auto auto auto;
  column-gap: 10px;
  row-gap: 6px;
  margin-top: 10px;
  align-items: center;
}

/* =========================
   TEAMS (LEFT / RIGHT) & CENTER
========================= */
.prediction-card--match-result .pc-team,
.prediction-card--match-result .pc-center {
  display: contents; /* Flattens children into the .pc-body grid */
}

/* LEFT TEAM PLACEMENT */
.prediction-card--match-result .pc-team:first-of-type > .pc-logo-wrapper { grid-column: 1; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--match-result .pc-team:first-of-type > .pc-name { grid-column: 1; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--match-result .pc-team:first-of-type > .pc-prob { grid-column: 1; grid-row: 3; justify-self: center; }
.prediction-card--match-result .pc-team:first-of-type > .pc-badge { grid-column: 1; grid-row: 4; justify-self: center; }
.prediction-card--match-result .pc-team:first-of-type > .pc-odds { grid-column: 1; grid-row: 5; justify-self: center; }

/* CENTER PLACEMENT */
.prediction-card--match-result .pc-center > .pc-score-block { grid-column: 2; grid-row: 1 / span 2; justify-self: center; align-self: center; }
.prediction-card--match-result .pc-center > .pc-prob { grid-column: 2; grid-row: 3; justify-self: center; }
.prediction-card--match-result .pc-center > .pc-badge { grid-column: 2; grid-row: 4; justify-self: center; }
.prediction-card--match-result .pc-center > .pc-odds { grid-column: 2; grid-row: 5; justify-self: center; }

/* RIGHT TEAM PLACEMENT */
.prediction-card--match-result .pc-team:last-of-type > .pc-logo-wrapper { grid-column: 3; grid-row: 1; justify-self: center; align-self: end; }
.prediction-card--match-result .pc-team:last-of-type > .pc-name { grid-column: 3; grid-row: 2; justify-self: center; align-self: start; }
.prediction-card--match-result .pc-team:last-of-type > .pc-prob { grid-column: 3; grid-row: 3; justify-self: center; }
.prediction-card--match-result .pc-team:last-of-type > .pc-badge { grid-column: 3; grid-row: 4; justify-self: center; }
.prediction-card--match-result .pc-team:last-of-type > .pc-odds { grid-column: 3; grid-row: 5; justify-self: center; }

.prediction-card--match-result .pc-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.prediction-card--match-result .pc-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   SCORE
========================= */
.prediction-card--match-result .pc-score {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
}

.prediction-card--match-result .pc-score span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.prediction-card--match-result .score-sep {
  margin: 0 4px;
}

.prediction-card--match-result .score-live {
  color: red;
  font-weight: 700;
}

.prediction-card--match-result .score-hidden {
  display: none;
}

/* =========================
   MINUTE / STATUS
========================= */
.prediction-card--match-result .pc-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
}

.prediction-card--match-result .minute-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.prediction-card--match-result .pc-minute {
  font-size: 14px;
  font-weight: 400;
  color: red;
  text-align: center;
}

.prediction-card--match-result .pc-minute.minute-finished {
  color: rgba(34, 34, 38, 0.45);
}

/* =========================
   BADGES & ODDS
========================= */
.prediction-card--match-result .pc-badge,
.prediction-card--match-result .pc-odds {
  font-weight: 500;
  margin-top: -5px;
  font-size: 13px;
}

/* =========================
   FORM ROW
========================= */
.prediction-card--match-result .pc-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 5px;
}

.prediction-card--match-result .form-indicators {
  display: flex;
  gap: 1px;
}

.prediction-card--match-result .form-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.prediction-card--match-result .w { background: #048B01; }
.prediction-card--match-result .l { background: #EA0000; }
.prediction-card--match-result .d { background: #FA6705; }

/* =========================
   SCORE PREDICTION
========================= */
.prediction-card--match-result .form-score-predict-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  padding-top: 3px;
}

.prediction-card--match-result .home-form,
.prediction-card--match-result .away-form {
  width: 33px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  border-radius: 0.2em;
}

.prediction-card--match-result .home-form {
  background: #2E8B57;
}

.prediction-card--match-result .away-form {
  background: #E5B05E;
}

.prediction-card--match-result .score-predict {
    position: relative;
  color: black;
  width: auto;
  text-align: center;
  font-size: 12px;
  padding: 0 15px;
  border-radius: 5px;
  border: 1px solid #64748b;
  box-shadow: 0 12px 28px rgba(100, 116, 139, 0.15);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  background: mintcream;
  z-index: 1;
}

/* =========================
   FINAL PICK
========================= */
.prediction-card--match-result .pc-prediction-pill {
  margin: 0 auto;
  width: fit-content;
  background-color: #FFB400;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 1px;
  border: 1px solid #64748b;
  border-radius: 1px;
  box-shadow: 0 12px 28px rgba(100, 116, 139, 0.15);
}

/* =========================================================
   PREVIEW BUTTON
========================================================= */
.pc-preview-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7; /* Blue text as per design */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.pc-preview-btn:hover {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #fbbf24; /* Orange text on hover */
}

/* Tooltip */
.pc-preview-btn .pc-preview-tooltip {
  position: absolute;
  top: -32px;
  right: 0;
  background-color: #0f172a;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 9999;
}

/* Tooltip arrow pointing down */
.pc-preview-btn .pc-preview-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 24px;
  transform: rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: #0f172a;
}

.pc-preview-btn:hover .pc-preview-tooltip {
  opacity: 1;
  visibility: visible;
  top: -38px; /* Slide up effect */
}
