/* ===========================================================
   Bukmekerlar.uz — Страница прогнозов (site/bashoratlar.html)
   =========================================================== */

/* ===== Page layout: two-column grid (main + sidebar) ===== */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 56px;
}
.page-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

/* ===== SEO Intro (text only) ===== */
.predict-intro { max-width: 760px; }
.predict-intro__title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  margin-top: 10px;
}
.predict-intro__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}
.predict-intro__lead strong { color: var(--text); font-weight: 600; }

/* ===== Predictions section ===== */
.predict-section { min-width: 0; }

/* ===== Predictions list (compact rows) ===== */
.predict-list { display: flex; flex-direction: column; gap: 14px; }

.predict-row {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.predict-row:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.predict-row--hot { border-color: rgba(255,122,26,0.4); background: linear-gradient(160deg, rgba(255,122,26,0.06), var(--surface) 55%); }

/* ribbon: override absolute positioning from global .flame-ribbon */
.predict-row__ribbon {
  position: relative;
  top: auto; right: auto;
  display: inline-flex;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.predict-row__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.predict-row__body {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
}
.predict-row__teams { display: flex; align-items: center; gap: 10px; }
.predict-row__teams .team {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.predict-row__teams .team span:last-child {
  font-size: 0.74rem; font-weight: 600;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.predict-row__teams .vs { color: var(--text-faint); font-size: 0.66rem; font-weight: 700; flex-shrink: 0; }

.predict-row__info { min-width: 0; }
.predict-row__info .confidence { margin-bottom: 10px; }
.predict-row__short { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

.predict-row__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.predict-detail-btn { flex-shrink: 0; }

/* Sidebar layout и widget styles moved to sidebar.css */

/* ===== Responsive layout ===== */
@media (max-width: 980px) {
  .page-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
}
@media (max-width: 560px) {
  .predict-row__body { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Info section overrides ===== */
.info-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }
.info-faq { margin-top: 44px; }

/* ===== Modal ===== */
.predict-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  visibility: hidden; opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.predict-modal.is-open { visibility: visible; opacity: 1; }
.predict-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(4px);
}
.predict-modal__dialog {
  position: relative; width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-card);
  transform: translateY(16px) scale(0.98);
  transition: transform .25s ease;
}
.predict-modal.is-open .predict-modal__dialog { transform: translateY(0) scale(1); }
.predict-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text-muted); transition: color .2s ease, border-color .2s ease;
}
.predict-modal__close:hover { color: var(--text); border-color: var(--orange); }
.predict-modal__head { padding-right: 36px; margin-bottom: 20px; }
.predict-modal__title { font-size: 1.3rem; margin: 12px 0 16px; letter-spacing: -0.01em; }
.predict-modal__pick {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
}
.predict-modal__pick span:first-child { font-weight: 700; font-family: var(--font-display); font-size: 0.95rem; }
.predict-modal__body { display: flex; flex-direction: column; gap: 14px; }
.predict-modal__body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

@media (max-width: 560px) {
  .predict-modal { padding: 0; align-items: flex-end; }
  .predict-modal__dialog { max-width: none; max-height: 90vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
