/* Anasayfa Sayılarla Biz — KKU tema */

.stats-showcase {
  --kku-red: #c9151b;
  --kku-darkred: #9e1b32;
  --kku-navy: #053170;
  --kku-navy-mid: #1d3a5f;
  --kku-navy-soft: #2c5c9c;
  --kku-gold: #b69a51;
  --kku-paper: #f7f8fa;
  --kku-ink: #01172f;
  --kku-muted: #5c6b7a;

  position: relative;
  padding: 8px 0 36px;
  overflow: hidden;
  z-index: 1;
  background:
    radial-gradient(ellipse 48% 42% at 100% 0%, rgba(201, 21, 27, 0.07), transparent 55%),
    radial-gradient(ellipse 42% 38% at 0% 100%, rgba(5, 49, 112, 0.06), transparent 50%),
    var(--kku-paper);
}

.stats-showcase > .container {
  position: relative;
  z-index: 1;
}

.say-satir > [class*="col-"] {
  display: flex;
  padding: 12px 15px;
}

/* —— Sayaç kartları —— */
.stat-counter-card {
  position: relative;
  border-radius: 14px;
  padding: 22px 18px;
  height: 100%;
  min-height: 168px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 6px 22px rgba(1, 23, 47, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  margin: 0;
  color: #fff;
}

.stat-counter-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(1, 23, 47, 0.18);
}

.primary-card {
  background: linear-gradient(145deg, var(--kku-red) 0%, var(--kku-darkred) 100%);
}

.secondary-card {
  background: linear-gradient(145deg, var(--kku-navy) 0%, var(--kku-navy-mid) 100%);
}

.tertiary-card {
  background: linear-gradient(145deg, var(--kku-navy-soft) 0%, var(--kku-navy) 100%);
}

.quaternary-card {
  background: linear-gradient(145deg, #c9ae68 0%, var(--kku-gold) 55%, #8f7840 100%);
  color: #fff;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon i {
  font-size: 22px;
  color: #fff;
}

.card-content h3,
.card-content .count-number {
  font-size: clamp(1.6rem, 1.2vw + 1.2rem, 2.15rem) !important;
  font-weight: 800 !important;
  margin: 0;
  line-height: 1.15 !important;
  color: #fff !important;
  letter-spacing: -0.02em;
}

.card-content p {
  font-size: 0.92rem !important;
  margin: 6px 0 0;
  opacity: 0.92;
  color: #fff !important;
  line-height: 1.35 !important;
  font-weight: 500;
}

.card-bg-icon {
  position: absolute;
  bottom: -12px;
  right: -10px;
  font-size: 96px;
  opacity: 0.12;
  transform: rotate(-12deg);
  pointer-events: none;
  color: #fff;
}

/* —— Grafik kartları —— */
.chart-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 16px 12px;
  height: 100%;
  min-height: 400px;
  width: 100%;
  box-shadow: 0 6px 22px rgba(1, 23, 47, 0.08);
  border: 1px solid rgba(1, 23, 47, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* visible: ECharts tooltip / dilim etiketleri hover’da kesilmesin */
  overflow: visible;
  position: relative;
  z-index: 2;
  margin: 0;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 23, 47, 0.12);
  z-index: 6;
}

/* ECharts hover tooltip — koyu zemin + beyaz yazı (tema CSS ezmesin) */
.stats-showcase div[class*="echarts-tooltip"],
body > div[class*="echarts-tooltip"] {
  color: #fff !important;
  background: rgba(1, 23, 47, 0.92) !important;
  border: 1px solid rgba(201, 21, 27, 0.55) !important;
  box-shadow: 0 8px 24px rgba(1, 23, 47, 0.28) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  z-index: 10050 !important;
  pointer-events: none;
}

.stats-showcase div[class*="echarts-tooltip"] *,
body > div[class*="echarts-tooltip"] * {
  color: #fff !important;
}

.chart-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--kku-red), var(--kku-navy));
}

.chart-title {
  text-align: center;
  color: var(--kku-navy) !important;
  font-size: 1.05rem !important;
  margin: 4px 0 14px !important;
  font-weight: 700 !important;
  position: relative;
  padding-bottom: 10px;
  line-height: 1.3 !important;
}

.chart-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--kku-red), var(--kku-navy));
  transform: translateX(-50%);
}

.chart-container {
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.chart-container-wide {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

/* —— Bilgi kartları —— */
.info-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 6px 22px rgba(1, 23, 47, 0.08);
  border: 1px solid rgba(1, 23, 47, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 180px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  margin: 0;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 23, 47, 0.12);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--kku-red), var(--kku-navy));
}

.icon-area {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(201, 21, 27, 0.12), rgba(5, 49, 112, 0.1));
  border: 1px solid rgba(201, 21, 27, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
}

.icon-area i {
  font-size: 28px;
  color: var(--kku-red);
}

.content-area h4 {
  color: var(--kku-navy) !important;
  font-size: 1.05rem !important;
  margin: 0 0 8px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.strong-number {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: var(--kku-red) !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.02em;
  line-height: 1.2 !important;
}

.description {
  color: var(--kku-muted) !important;
  font-size: 0.88rem !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}

@media (max-width: 992px) {
  .chart-card {
    min-height: 350px;
  }

  .chart-container {
    min-height: 280px;
  }
}

@media (max-width: 768px) {
  .stats-showcase {
    padding: 4px 0 24px;
  }

  .stat-counter-card {
    min-height: 148px;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

  .icon-area {
    margin: 0 0 14px 0;
  }
}
