/* =========================================
   COMPONENTS — Fleet (Vozový park)
   =========================================
   Obsah:
   - Fleet summary (přehled)
   - Fleet total (velké číslo celkem)
   - Fleet breakdown (rozdělení na osobní/nákladní)
   - Fleet category cards
   - Fleet progress bars
   ========================================= */

/* =========================================
   FLEET SUMMARY
   ========================================= */
.fleet-summary {
  padding: 20px;
}

/* =========================================
   FLEET TOTAL — Velké číslo nahoře
   ========================================= */
.fleet-total {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, var(--color-surface-2) 0%, var(--color-surface-3) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.fleet-total-icon {
  margin: 0 auto 16px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border-radius: 50%;
}

.fleet-total-icon svg {
  stroke: var(--color-accent);
}

.fleet-total-number {
  font-size: 56px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.fleet-total-label {
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* =========================================
   FLEET BREAKDOWN — Rozdělení vozů
   ========================================= */
.fleet-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* =========================================
   FLEET CATEGORY — Jednotlivá kategorie
   ========================================= */
.fleet-category {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.fleet-category:hover {
  background: var(--color-hover);
  border-color: var(--color-border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fleet-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.fleet-category-header svg {
  flex-shrink: 0;
  stroke: var(--color-accent);
}

.fleet-category-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fleet-category-count {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.fleet-category-percent {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

/* =========================================
   FLEET PROGRESS BAR
   ========================================= */
.fleet-category-bar {
  width: 100%;
  height: 8px;
  background: var(--color-surface-3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.fleet-category-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Animace baru při načtení */
.fleet-category-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: bar-shine 2s infinite;
}

@keyframes bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* =========================================
   RESPONSIVE — Mobilní zobrazení
   ========================================= */
@media (max-width: 768px) {
  .fleet-breakdown {
    grid-template-columns: 1fr;
  }

  .fleet-total-number {
    font-size: 42px;
  }

  .fleet-category-count {
    font-size: 36px;
  }
}
