/* ==========================================================================
   MMO11 — MAÇ ÖN İZLEME PANELİ (MATCH PREVIEW MODAL)
   Top Eleven Referanslı Beyaz ve Gri Tonlarında Modern Yönetim Paneli
   3 Sekme: Genel Bakış (Overview), Hazırlık (Readiness), Rakip (Opponent)
   ========================================================================== */

.match-preview-overlay {
    /* AGENTS.md §4.3: pencere içi panel — fixed DEĞİL, pencereye (#gameViewport) göre absolute. */
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mpFadeIn 0.2s ease-out;
}

@keyframes mpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.match-preview-dialog {
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 960px;
  /* AGENTS.md §4.3: pencere içi ölçü — vh/vw DEĞİL (onlar tarayıcıyı ölçer), yüzde. */
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mpSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mpSlideUp {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Modal Üst Başlık Çubuğu (Koyu Şık Çubuk) */
.mp-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mp-header-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #22c55e;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-header-title .mp-title-icon {
  color: #38bdf8;
}

.btn-mp-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-mp-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Sekme Butonları (Gri ve Beyaz Zeminler) */
.mp-tabs-bar {
  display: flex;
  background: #e2e8f0;
  border-bottom: 1.5px solid #cbd5e1;
  padding: 6px 12px 0 12px;
  gap: 6px;
}

.mp-tab-btn {
  padding: 10px 24px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.mp-tab-btn:hover:not(.active) {
  background: #e2e8f0;
  color: #0f172a;
}

.mp-tab-btn.active {
  background: #ffffff;
  color: #0284c7;
  font-weight: 900;
  border-color: #cbd5e1;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.mp-tab-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #0284c7;
  border-radius: 4px 4px 0 0;
}

/* Modal Gövdesi (Scroll Edilebilir Alan) */
.mp-body-scroll {
  padding: 18px 24px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

/* ==========================================================================
   ORTAK MAÇ BAŞLIĞI ŞERİDİ (BEYAZ VE GRİ KART)
   ========================================================================== */
.mp-match-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.mp-strip-team {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-strip-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.mp-strip-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  overflow: hidden;
}

.mp-strip-logo.home {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #93c5fd;
}

.mp-strip-logo.away {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fca5a5;
}

.mp-strip-team-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-strip-team-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.1;
}

.mp-strip-team-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-strip-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
}

.mp-strip-stars {
  font-size: 11px;
  color: #f59e0b;
  letter-spacing: 1px;
}

/* Merkez Maç Bilgisi */
.mp-strip-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid #f1f5f9;
  border-right: 1px solid #f1f5f9;
}

.mp-strip-league {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #0284c7;
  text-transform: uppercase;
}

.mp-strip-time {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 10px;
  border-radius: 6px;
}

.mp-strip-weather {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   SEKME 1: GENEL BAKIŞ (OVERVIEW)
   Sol: Mini Saha Karşılaştırması | Sağ: Güç Barları & Taktik Yorumu
   ========================================================================== */
.mp-grid-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@container game (max-width: 768px) {
  .mp-grid-two-col {
    grid-template-columns: 1fr;
  }
}

.mp-card-white {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mp-card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.mp-card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mini Saha Stilleri */
.mp-formation-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 4px 4px;
}

.mp-formation-code {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
}

.mp-formation-center-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.5px;
}

.mp-pitch-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: linear-gradient(180deg, #15803d 0%, #166534 100%);
  border-radius: 10px;
  border: 2px solid #86efac;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mp-pitch-stripes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 30px, transparent 30px, transparent 60px);
}

.mp-pitch-penalty-left {
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 16%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-left: none;
  pointer-events: none;
}

.mp-pitch-penalty-right {
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 16%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-right: none;
  pointer-events: none;
}

.mp-pitch-goal-left {
  position: absolute;
  left: 0;
  top: 34%;
  bottom: 34%;
  width: 6%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-left: none;
  pointer-events: none;
}

.mp-pitch-goal-right {
  position: absolute;
  right: 0;
  top: 34%;
  bottom: 34%;
  width: 6%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-right: none;
  pointer-events: none;
}

.mp-pitch-center-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.45);
  transform: translateX(-50%);
  pointer-events: none;
}

.mp-pitch-center-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Saha İçi Taktik Noktaları */
.mp-dot-player {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  border: 1.5px solid #ffffff;
  transition: transform 0.15s ease;
  cursor: pointer;
}

.mp-dot-player:hover {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 10;
}

.mp-dot-player.home-dot {
  background: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.7);
}

.mp-dot-player.away-dot {
  background: #0f172a;
  border-color: #94a3b8;
  box-shadow: 0 0 6px rgba(15, 23, 42, 0.8);
}

.btn-mp-squad-go {
  background: #16a34a;
  color: #ffffff;
  border: none;
  padding: 8px 36px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
  text-align: center;
  align-self: center;
  width: auto;
  min-width: 180px;
}

.btn-mp-squad-go:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.45);
}

/* Güç Karşılaştırma Barları */
.mp-compare-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-compare-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.mp-compare-name {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.mp-compare-bar-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  display: flex;
  overflow: hidden;
  gap: 2px;
}

.mp-cbar-fill-home {
  background: #0284c7;
  border-radius: 999px 0 0 999px;
  transition: width 0.3s ease;
}

.mp-cbar-fill-away {
  background: #1e293b;
  border-radius: 0 999px 999px 0;
  transition: width 0.3s ease;
}

.mp-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
}

.mp-form-group {
  display: flex;
  gap: 4px;
}

/* Taktik Tavsiye Alıntı Kutusu */
.mp-quote-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.mp-quote-icon {
  font-size: 20px;
  color: #0284c7;
  line-height: 1;
}

.mp-quote-text {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
  font-style: italic;
}

/* ==========================================================================
   SEKME 2: HAZIRLIK KONTROL LİSTESİ & KADRO
   ========================================================================== */
.mp-check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.mp-check-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-check-icon-ok {
  color: #16a34a;
  font-size: 15px;
  font-weight: 900;
}

.mp-check-icon-warn {
  color: #ef4444;
  font-size: 15px;
  font-weight: 900;
}

/* Ice-Blue Trust Palette per §11.8 */
.btn-mp-ice-boost {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #38bdf8;
  padding: 5px 12px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.btn-mp-ice-boost:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.btn-mp-ice-boost.boosted {
  background: #16a34a;
  border-color: #22c55e;
  cursor: default;
  box-shadow: none;
}

.btn-mp-sm-team {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

/* Kadro Satırları */
.mp-roster-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.mp-roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  transition: background 0.1s ease;
}

.mp-roster-item:hover {
  background: #f8fafc;
}

.mp-roster-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-pos-badge {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ffffff;
  min-width: 32px;
  text-align: center;
}

.mp-pos-badge.gk { background: #eab308; }
.mp-pos-badge.def { background: #3b82f6; }
.mp-pos-badge.mid { background: #10b981; }
.mp-pos-badge.att { background: #ef4444; }

.mp-roster-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.mp-roster-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mp-roster-ovr {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #0284c7;
}

.mp-roster-stars {
  font-size: 10px;
  color: #f59e0b;
}

/* ==========================================================================
   SEKME 3: RAKİP ANALİZİ (OPPONENT)
   ========================================================================== */
.mp-manager-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.mp-manager-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border: 1.5px solid #cbd5e1;
}

.mp-manager-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mp-manager-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

.mp-manager-id {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.mp-stats-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mp-stat-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
}

.mp-stat-lbl {
  color: #64748b;
  font-weight: 700;
}

.mp-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}

.mp-danger-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
}

.mp-danger-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: #b45309;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mp-danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
}
