/* =========================
   GENEL AYARLAR
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  background: #0f172a;          /* LACİVERT */
  color: #ffffff;
}

/* =========================
   HEADER
========================= */

.site-header {
  background: #0f172a;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 36px;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: .5px;
}

/* Sayfa içeriği boşluk */
main {
  padding: 16px;
}

/* =========================
   KART YAPISI (MOR ACCENT)
========================= */

.card,
.match-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ÜST MOR ÇİİZGİ */
.card::before,
.match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #6d28d9, #4338ca);
  border-radius: 15px 15px 0 0;
}

/* =========================
   BAŞLIKLAR
========================= */

h1 {
  color: #ffffff;
  margin: 12px 0 16px;
}

h2 {
  color: #ffffff;
  margin: 8px 0 12px;
}

h3 {
  color: #ffffff;
  margin: 10px 0 8px;
}

/* =========================
   FORM STANDARTLARI
========================= */

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

input,
select {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6d28d9;
  box-shadow: 0 0 0 2px rgba(109,40,217,.2);
}

/* Alan genişlikleri */
.input-name { flex: 1; }
.input-position { width: 130px; }
.input-number {
  width: 44px;
  text-align: center;
}

/* =========================
   BUTONLAR
========================= */

.btn {
  background: linear-gradient(135deg, #6d28d9, #4338ca);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(109,40,217,.45);
}

.btn:hover {
  opacity: .95;
}

.btn-secondary {
  background: #ffffff;
  color: #6d28d9;
  border: 1px solid #6d28d9;
  box-shadow: none;
}

/* =========================
   MAÇ KARTI
========================= */

.match-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.match-header .team.home {
  color: #0f172a;
}

.match-header .team.away {
  color: #6d28d9;
}

.match-header .vs {
  color: #64748b;
  font-weight: 500;
}

.match-meta {
  text-align: center;
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

.match-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* SİLME */
.match-card .delete {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  color: #6d28d9;
  font-size: 18px;
}

/* =========================
   SAHA (CSS ÇİZİMLİ)
========================= */

.pitch {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 520px;
  margin: 12px auto;
  border-radius: 20px;
  background: linear-gradient(
    to bottom,
    #22c55e 0%,
    #16a34a 50%,
    #22c55e 100%
  );
  overflow: hidden;
}

/* Orta çizgi */
.pitch::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.7);
  transform: translateY(-50%);
}

/* Orta yuvarlak */
.pitch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Ceza sahaları */
.pitch .box {
  position: absolute;
  left: 50%;
  width: 220px;
  height: 90px;
  border: 2px solid rgba(255,255,255,.8);
  transform: translateX(-50%);
}

.pitch .box.top { top: 8px; }
.pitch .box.bottom { bottom: 8px; }

/* Kale alanları */
.pitch .goal-box {
  position: absolute;
  left: 50%;
  width: 120px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.8);
  transform: translateX(-50%);
}

.pitch .goal-box.top { top: 8px; }
.pitch .goal-box.bottom { bottom: 8px; }

/* Oyuncu */
.player {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #0e0025;
  border-radius: 12px;
  padding: 4px 6px;
  font-size: 11px;
  min-width: 56px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

.player strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}
/* =========================
   DETAY SAYFASI – YAN YANA SAHALAR
========================= */

.mini-pitches {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Her saha bloğu */
.mini-pitch-wrapper {
  flex: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* EV / DEP label */
.mini-label {
  font-size: 12px;
  font-weight: 700;
  color: #6d28d9;
  margin-bottom: 4px;
}

/* Mini saha ölçekleme */
.pitch.mini {
  transform: scale(0.95);
  transform-origin: top center;
  margin-top: -0px;
}
/* =========================
   SKORBORD (DETAY SAYFASI)
========================= */

.scoreboard {
  text-align: center;
}

.score-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Takım blokları */
.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.score-team.home .team-name {
  color: #0f172a;
}

.score-team.away .team-name {
  color: #6d28d9;
}

/* Takım adı */
.team-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  margin-bottom: 2px;
}

/* SKOR */
.score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

/* ORTA ÇİZGİ */
.score-center .dash {
  font-size: 32px;
  font-weight: 700;
  color: #6d28d9;
}
/* =========================
   OLAY AKIŞI (EVENT LIST)
========================= */

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Event türleri */
.event-item.goal {
  border-left: 4px solid #6d28d9;
}

.event-item.yellow {
  border-left: 4px solid #facc15;
}

.event-item.red {
  border-left: 4px solid #dc2626;
}

/* Oyuncu bilgisi */
.event-player {
  font-weight: 600;
}

.event-team {
  font-size: 12px;
  opacity: .7;
  margin-left: 6px;
}

/* Silme */
.event-delete {
  cursor: pointer;
  font-size: 16px;
  color: #6d28d9;
  opacity: .6;
}

.event-delete:hover {
  opacity: 1;
}
/* =========================
   DETAY – TEXT KADRO LİSTESİ
========================= */

.lineup-text {
  display: flex;
  gap: 12px;
}

.lineup-col {
  flex: 1;
}

.lineup-col h3 {
  text-align: center;
  margin-bottom: 8px;
  color: #6d28d9;
}

.lineup-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lineup-list li {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 14px;
  display: flex;
  gap: 6px;
}

.lineup-num {
  width: 22px;
  font-weight: 700;
}

.lineup-pos {
  width: 40px;
  color: #6d28d9;
  font-weight: 600;
}

.lineup-name {
  flex: 1;
}
