/* ==========================================================================
   DiliFrota • Design System & Hero Stylesheet (Zensical Docs-as-Code)
   ========================================================================== */

:root {
  --df-navy: #16293A;
  --df-navy-deep: #0D1A26;
  --df-orange: #E5922B;
  --df-orange-hover: #F3A43E;
  --df-orange-glow: rgba(229, 146, 43, 0.35);
  --df-bg-light: #F2F4F7;
  --df-card-border: #DDE3EA;
  --df-border-input: #98A3B1;
  --df-font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --df-font-mono: "JetBrains Mono", monospace;
}

/* --------------------------------------------------------------------------
   Hero Section Layout
   -------------------------------------------------------------------------- */
.df-hero-section {
  position: relative;
  min-height: 560px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--df-navy-deep);
  color: #FFFFFF;
  margin-top: -1.2rem; /* Alinha com topo */
  padding: 4rem 1rem 3.5rem;
}

/* Layer de Vídeo e Canvas */
.df-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.df-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 0.65;
  transition: opacity 0.8s ease;
}

.df-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
}

.df-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(22, 41, 58, 0.5) 0%, rgba(13, 26, 38, 0.88) 70%, rgba(10, 18, 27, 0.98) 100%);
  box-shadow: inset 0 -40px 60px -20px rgba(10, 18, 27, 0.8);
}

/* Container de Conteúdo */
.df-hero-container {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.df-hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --------------------------------------------------------------------------
   Badge de Versão & Status
   -------------------------------------------------------------------------- */
.df-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 1.25rem;
}

.df-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--df-orange);
  box-shadow: 0 0 10px var(--df-orange);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.df-badge-tag {
  background: rgba(229, 146, 43, 0.2);
  color: #FFC078;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Títulos & Tipografia Hero
   -------------------------------------------------------------------------- */
.df-hero-title {
  font-family: var(--df-font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  margin: 0 0 1.2rem 0 !important;
  letter-spacing: -0.025em;
}

.df-gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #E5922B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.df-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 2rem;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   Botões de Ação do Hero
   -------------------------------------------------------------------------- */
.df-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.df-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  border: none;
}

/* Regra Estrita: Texto sobre Laranja é Azul-Marinho */
.df-btn--primary {
  background-color: var(--df-orange);
  color: var(--df-navy) !important;
  box-shadow: 0 4px 16px var(--df-orange-glow);
}

.df-btn--primary:hover {
  background-color: var(--df-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--df-orange-glow);
  color: var(--df-navy) !important;
}

.df-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.df-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

.df-btn--ghost {
  background: transparent;
  color: #94A3B8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 500;
  font-size: 0.875rem;
}

.df-btn--ghost:hover {
  color: #F8FAFC !important;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.df-btn-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.df-btn--primary:hover .df-btn-icon {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Quickstart Terminal Box
   -------------------------------------------------------------------------- */
.df-quickstart-card {
  width: 100%;
  max-width: 560px;
  background: rgba(11, 20, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.df-quickstart-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.df-dots {
  display: flex;
  gap: 0.35rem;
}

.df-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.df-dot--red { background-color: #EF4444; }
.df-dot--yellow { background-color: #F59E0B; }
.df-dot--green { background-color: #10B981; }

.df-quickstart-title {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 500;
}

.df-quickstart-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  gap: 0.75rem;
}

.df-prompt {
  color: var(--df-orange);
  font-weight: 700;
  user-select: none;
}

.df-command {
  font-family: var(--df-font-mono) !important;
  font-size: 0.875rem !important;
  color: #38BDF8 !important;
  background: transparent !important;
  padding: 0 !important;
  white-space: nowrap;
}

.df-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #CBD5E1;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.df-copy-button:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.df-copy-button.copied {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Cards de Módulos (Grid da Home)
   -------------------------------------------------------------------------- */
.df-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem;
}

.df-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--md-default-bg-color);
  border: 1px solid var(--df-card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.df-card:hover {
  transform: translateY(-4px);
  border-color: var(--df-orange);
  box-shadow: 0 12px 28px rgba(22, 41, 58, 0.08);
}

.df-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.df-card-title {
  font-family: var(--df-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--df-navy);
}

[data-md-color-scheme="slate"] .df-card-title {
  color: #F8FAFC;
}

.df-card-description {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
}

[data-md-color-scheme="slate"] .df-card-description {
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   Fullscreen Hero & Centered Elements
   -------------------------------------------------------------------------- */
.df-hero-section--fullscreen {
  min-height: 100vh;
  height: 100vh;
  margin-top: 0;
  padding: 2rem 1.5rem;
}

.df-hero-content--centered {
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.df-hero-actions--centered {
  justify-content: center;
}

.df-btn--lg {
  padding: 0.95rem 2.25rem;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Ocultação total do header/tabs na Home */
body:has(.df-hero-section--fullscreen) .md-header,
body:has(.df-hero-section--fullscreen) .md-tabs {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Cards de Projetos (Catálogo /projetos/)
   -------------------------------------------------------------------------- */
.df-card--featured {
  border: 1.5px solid var(--df-orange) !important;
  background: linear-gradient(160deg, rgba(229, 146, 43, 0.06) 0%, rgba(22, 41, 58, 0.02) 100%);
  position: relative;
}

.df-card--featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(229, 146, 43, 0.18);
}

.df-card--disabled {
  opacity: 0.68;
  cursor: default;
  filter: grayscale(0.2);
}

.df-card--disabled:hover {
  transform: none;
  border-color: var(--df-card-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.df-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  background: var(--df-orange);
  color: var(--df-navy);
  margin-bottom: 0.9rem;
}

.df-card-badge--muted {
  background: #475569;
  color: #F1F5F9;
}

.df-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.df-card-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--df-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.df-card-tag {
  font-size: 0.82rem;
  color: #94A3B8;
  font-style: italic;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .df-hero-section {
    padding: 3rem 1rem 2.5rem;
    min-height: auto;
  }
  
  .df-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .df-btn {
    width: 100%;
  }
}
