:root {
  --bg-main: #0b1120;
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #1c2b47;
  --border-color: #24344d;
  --border-light: #334155;
  
  --text-primary: #f8fafc;
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent-glow-strong: rgba(59, 130, 246, 0.55);
  
  --status-green: #22c55e;
  --status-green-glow: rgba(34, 197, 94, 0.3);
  --status-yellow: #eab308;
  --status-orange: #f97316;
  --status-red: #ef4444;

  /* Referans Rapor Renk Skalası */
  --scale-blue: #3b82f6;
  --scale-green: #22c55e;
  --scale-yellow: #eab308;
  --scale-orange: #f97316;
  --scale-red: #ef4444;
  --scale-grey: #475569;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container-max: 1140px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER / ÜST MENÜ
   ========================================================================== */
header.site-header {
  background-color: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover {
  transform: scale(1.05);
}

.logo span.badge-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-blue);
}

nav.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  padding: 4px 0;
}

nav.nav-links a:hover, 
nav.nav-links a.active {
  color: #fff;
  transform: translateY(-2px);
}
nav.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.25s ease;
}
nav.nav-links a:hover::after, 
nav.nav-links a.active::after {
  width: 100%;
}

/* ==========================================================================
   BUTONLAR
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 25px var(--accent-glow-strong);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-light);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--accent-blue);
  color: #fff;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 15px var(--accent-glow);
}

/* ==========================================================================
   KARTLAR & ETKİLEŞİMLER
   ========================================================================== */
.card {
  background-color: var(--bg-card);
  padding: 25px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-color: var(--accent-blue);
}
.card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

/* ==========================================================================
   REFERANS RAPOR BİLEŞENLERİ (Arda Güler Şablonu)
   ========================================================================== */
.dashboard {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

/* 1. Header Card */
.header-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, #111827 100%);
  border-left: 5px solid var(--scale-green);
  padding: 30px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.header-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(34, 197, 94, 0.2);
}
.header-info h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
}
.header-info p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.overall-rating {
  background: var(--scale-green);
  color: #0f172a;
  font-size: 2.5rem;
  font-weight: 800;
  padding: 10px 25px;
  border-radius: 12px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}
.overall-rating .max-score {
  font-size: 1.5rem;
  color: rgba(15,23,42,0.7);
  font-weight: 700;
}

/* 2. Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  width: 100%;
}
.info-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.info-item label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.info-item span {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
}
.info-item.empty-space {
  visibility: hidden;
}

.weak-foot-bar {
  width: 60px;
  height: 6px;
  background: #334155;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.weak-foot-fill {
  height: 100%;
  border-radius: 3px;
  background-color: var(--scale-green);
  width: 70%;
}

.lang-main {
  color: var(--text-main) !important;
  font-weight: 600;
}

/* 3. Dual Pie Card */
.dual-pie-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, var(--bg-card), #111827);
  padding: 30px;
  gap: 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.dual-pie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.stat-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.math-sign {
  font-size: 2.5rem;
  color: var(--text-muted);
  font-weight: 300;
  padding: 0 10px;
}
.pie-container {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.pie-container:hover {
  transform: scale(1.05);
}
.pie-chart-base {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--scale-green) 0% 80%, #334155 80% 100%);
  border: 4px solid var(--bg-dark);
}
.pie-chart-growth {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#ffffff 0% 13%, #334155 13% 100%);
  border: 4px solid var(--bg-dark);
}
.pie-chart-max {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--scale-green) 0% 90%, #334155 90% 100%);
  border: 4px solid var(--bg-dark);
}
.pie-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: var(--bg-card);
  border-radius: 50%;
  border: 2px solid #334155;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}
.pie-info h2 {
  border-bottom: none;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #f8fafc;
  font-weight: 600;
  max-width: 160px;
  text-transform: none;
}

/* 4. Notes & Verdict */
.notes {
  grid-column: 1 / -1;
  background-color: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-md);
  line-height: 1.7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.notes:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.verdict {
  color: var(--scale-green);
  margin-top: 15px;
  font-weight: 600;
  padding-top: 15px;
  border-top: 1px dashed #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 5. Attributes */
.attr-row {
  margin-bottom: 18px;
}
.attr-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}
.bar-bg {
  background-color: #334155;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-in-out;
}
.fill-blue { background-color: var(--scale-blue); }
.fill-green { background-color: var(--scale-green); }
.fill-yellow { background-color: var(--scale-yellow); }
.fill-orange { background-color: var(--scale-orange); }

/* 6. Tables & Market */
.full-width-card {
  grid-column: 1 / -1;
}
.scout-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  margin-top: 10px;
}
.scout-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 2px solid #334155;
}
.scout-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}
.scout-table tbody tr:hover td {
  background-color: rgba(34, 197, 94, 0.05);
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-yellow { background-color: #eab308; color: #0f172a; }
.badge-red { background-color: #ef4444; color: #ffffff; }

.chart-container {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 8px;
  padding: 25px 20px;
  margin-top: 15px;
  border: 1px solid #334155;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding: 0 10px;
}
.chart-label-item {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background-color: #060a12;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px;
  margin-top: 80px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}
.footer-col ul li a:hover {
  color: #fff;
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .dashboard { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .dual-pie-card { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  nav.nav-links { display: none; }
}