/* === Evolution Dashboard · Light Theme === */

.evo-page {
  min-height: 100vh;
  background: #ffffff;
  color: #0d0d0d;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: clamp(14px, 1.5vw, 16px);
}

.evo-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
  position: relative;
  z-index: 1;
}

/* --- Navigation --- */
.evo-page .evo-nav {
  background: #ffffff;
  border-bottom: 1px solid #ebebeb;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.evo-page .evo-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.evo-page .evo-nav h1 {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #b8a060;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
}

.evo-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.evo-lang-switch {
  display: inline-flex;
  align-items: stretch;
  background: #f7f7f8;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
}

.evo-lang-btn {
  background: transparent;
  border: none;
  border-right: 1px solid #e5e5e5;
  color: #6e6e80;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.evo-lang-switch .evo-lang-btn:last-of-type {
  border-right: none;
}

.evo-lang-btn:hover {
  color: #0d0d0d;
  background: #efefef;
}

.evo-lang-btn.active {
  color: #ffffff;
  font-weight: 600;
  background: #b8a060;
}

.evo-lang-sep {
  display: none;
}

.evo-lang-btn:focus {
  outline: none;
}

.evo-page .evo-nav a {
  color: #6e6e80;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  font-size: 0.9em;
  font-weight: 500;
}

.evo-page .evo-nav a:hover {
  color: #0d0d0d;
  background: #f7f7f8;
}

/* --- Content transition --- */
.evo-content-inner {
  transition: opacity 0.2s ease-out;
}

.evo-content-inner.evo-leaving {
  opacity: 0;
}

/* --- Breadcrumb --- */
.evo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
  font-size: 0.88em;
  color: #999;
}

.evo-breadcrumb a {
  color: #6e6e80;
  text-decoration: none;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}

.evo-breadcrumb a:hover {
  color: #0d0d0d;
  background: #f7f7f8;
}

.evo-breadcrumb .sep {
  color: #d0d0d0;
  user-select: none;
  font-weight: 300;
}

.evo-breadcrumb .current {
  color: #0d0d0d;
  font-weight: 600;
}

/* --- Title block --- */
.evo-title-block {
  margin-bottom: clamp(1.25rem, 2.5vw, 1.5rem);
}

.evo-title-block h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 700;
  color: #0d0d0d;
  margin-bottom: 0.15rem;
  letter-spacing: -0.02em;
}

.evo-title-block .sub {
  color: #6e6e80;
  font-size: 0.9em;
  font-weight: 400;
}

/* --- Chart card --- */
.evo-chart-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.evo-chart-card h3 {
  font-size: 0.8em;
  font-weight: 600;
  color: #999;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.evo-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
  height: clamp(260px, 40vh, 400px);
}

.evo-chart-wrap canvas {
  max-width: 100%;
  height: auto !important;
}

/* --- Description card --- */
.evo-desc-card {
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.evo-desc-card h3 {
  font-size: 0.8em;
  font-weight: 600;
  color: #b8a060;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.evo-desc-card .md-body {
  color: #6e6e80;
  font-size: 0.9em;
  line-height: 1.7;
  max-height: 260px;
  overflow-y: auto;
}

.evo-desc-card .md-body h1,
.evo-desc-card .md-body h2 {
  color: #0d0d0d;
  font-size: 1.02em;
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
}

.evo-desc-card .md-body h2 { font-size: 0.98em; }

.evo-desc-card .md-body p { margin-bottom: 0.45rem; }

.evo-desc-card .md-body ul {
  margin: 0.4rem 0 0.4rem 1.2rem;
  padding: 0;
}

.evo-desc-card .md-body code {
  background: #f7f7f8;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.86em;
  color: #0d0d0d;
  border: 1px solid #ebebeb;
}

/* --- Children grid --- */
.evo-children-section h3 {
  font-size: 0.8em;
  font-weight: 600;
  color: #999;
  margin-bottom: 0.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.evo-child-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.evo-child-card {
  display: block;
  background: #ffffff;
  border: 1px solid #ebebeb;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.evo-child-card:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.evo-child-card .name {
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 0.15rem;
  font-size: 0.93em;
}

.evo-child-card .meta {
  font-size: 0.78em;
  color: #999;
}

/* --- Main layout --- */
.evo-main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.25rem);
}

@media (min-width: 900px) {
  .evo-main-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* --- Loading & error --- */
.evo-loading,
.evo-error {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1rem;
  color: #999;
}

.evo-error { color: #ef4444; }

.evo-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #e5e5e5;
  border-top-color: #b8a060;
  border-radius: 50%;
  animation: evo-spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes evo-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .evo-spinner { animation-duration: 1.5s; }
  .evo-content-inner { transition-duration: 0.1s; }
}

/* --- Legend --- */
.evo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
  font-size: 0.85em;
  color: #6e6e80;
}

.evo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.evo-legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.evo-chart-card .no-data {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.93em;
}
