/* ==========================================================================
   MMO11 — TAKIM HAZIRLIK SEVİYESİ & İLK 11 UYUM PANELİ
   Açık Renk Teması: Beyaz, Gri ve Mavi Tonları
   ========================================================================== */

/* Slider Sonundaki '>' Dairesel Detay Butonu */
.btn-readiness-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.btn-readiness-detail:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: scale(1.12);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}
.btn-readiness-detail:active {
  transform: scale(0.95);
}

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

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

/* Modal Kartı (Beyaz, Gri ve Mavi Tonları) */
.readiness-modal-card {
  width: 100%;
  max-width: 620px;
  /* AGENTS.md §4.3: pencere içi ölçü — vh/vw DEĞİL (onlar tarayıcıyı ölçer), yüzde. */
  max-height: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2), 0 0 1px rgba(15, 23, 42, 0.15);
  overflow: hidden;
  animation: readinessSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Başlık Çubuğu */
.readiness-modal-header {
  padding: 16px 22px;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.readiness-modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.readiness-header-icon {
  font-size: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
.readiness-modal-title {
  margin: 0;
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: 0.8px;
}
.readiness-modal-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.readiness-modal-close {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.readiness-modal-close:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Modal Gövdesi */
.readiness-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
}

/* 1. Reklam Destek Kartı (Açık Mavi / Buz Mavisi Teması) */
.readiness-ad-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #38bdf8;
  border-radius: 12px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.12);
  position: relative;
  overflow: hidden;
}
.rad-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.rad-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  flex-shrink: 0;
}
.rad-icon {
  font-size: 18px;
  line-height: 1;
}
.rad-badge {
  font-size: 8px;
  font-weight: 900;
  color: #0284c7;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.rad-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rad-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rad-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0369a1;
}
.rad-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  font-family: 'Rajdhani', sans-serif;
}
.rad-desc {
  margin: 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.35;
}
.rad-btn {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: none;
  color: #ffffff;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(14, 165, 233, 0.35);
  flex-shrink: 0;
}
.rad-btn-icon {
  font-size: 17px;
  line-height: 1;
}
.rad-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(14, 165, 233, 0.45);
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}
.rad-btn:active:not(:disabled) {
  transform: translateY(0);
}
.rad-btn.active-boost {
  background: #f0fdf4;
  border: 1.5px solid #22c55e;
  color: #16a34a;
  box-shadow: none;
  cursor: default;
}

/* 2. Parametre Kartları Listesi (Maddeler) */
.readiness-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.readiness-crit-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}
.readiness-crit-card.passed {
  border-left: 4.5px solid #16a34a;
}
.readiness-crit-card.failed {
  border-left: 4.5px solid #dc2626;
  background: #fffafa;
}

.rcc-icon-col {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}
.readiness-crit-card.passed .rcc-icon-col {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.readiness-crit-card.failed .rcc-icon-col {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.rcc-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rcc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rcc-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.rcc-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

/* Eksik Mevki Uyarısı Kutusu */
.rcc-mismatches-box {
  margin-top: 6px;
  padding: 6px 10px;
  background: #fef2f2;
  border: 1px dashed #f87171;
  border-radius: 6px;
  font-size: 11.5px;
  color: #991b1b;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mismatch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mismatch-pos-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  color: #dc2626;
}

/* Task Sağ Aksiyon Butonları (Moral Artır / Enerji Artır) */
.btn-crit-action {
  background: #eff6ff;
  border: 1.5px solid #3b82f6;
  color: #1d4ed8;
  padding: 6px 13px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.12);
}
.btn-crit-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}
.btn-crit-action:active {
  transform: translateY(0);
}
.btn-crit-action.btn-moral-action {
  background: #fdf2f8;
  border-color: #ec4899;
  color: #be185d;
  box-shadow: 0 1px 3px rgba(236, 72, 153, 0.12);
}
.btn-crit-action.btn-moral-action:hover {
  background: #db2777;
  border-color: #db2777;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(219, 39, 119, 0.25);
}

.btn-crit-action.btn-tactic-action {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.12);
}
.btn-crit-action.btn-tactic-action:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.25);
}

/* 3. En Alttaki Büyük Slider Barı */
.readiness-bottom-slider-wrap {
  padding-top: 4px;
}
.rbs-track {
  width: 100%;
  height: 40px;
  background: #e2e8f0;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 2px solid #cbd5e1;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}
.rbs-fill {
  height: 100%;
  border-radius: 18px;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  min-width: 12px;
}
.rbs-overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 2px 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Footer (Sadece Temiz Kapat Butonu) */
.readiness-modal-footer {
  padding: 14px 22px;
  background: #ffffff;
  border-top: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.btn-readiness-close-foot {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 9px 24px;
  border-radius: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-readiness-close-foot:hover {
  background: #e2e8f0;
  color: #0f172a;
}
