// ===== UPDATE SPLASH SCREEN =====

.splash-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  
  // Garante que esteja acima de tudo
  isolation: isolate;
}

.splash-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  // Prevenção de zoom mobile
  touch-action: manipulation;
  user-select: none;
  
  // Dark mode support
  @media (prefers-color-scheme: dark) {
    background: #2d2d2d;
    color: white;
  }
  
  // Mobile adjustments
  @media (max-width: 768px) {
    margin: 8px;
    max-height: 85vh;
    border-radius: 12px;
  }
}

// ===== HEADER =====

.splash-header {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, #FFC82E 0%, #FF9800 100%);
  color: white;
  
  @media (max-width: 768px) {
    padding: 20px 16px;
  }
}

.header-content {
  margin-right: 48px; // Espaço para botão de fechar
}

.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  
  mat-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }
}

.splash-title {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  
  @media (max-width: 768px) {
    font-size: 24px;
  }
}

.splash-description {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: 0.9;
  
  @media (max-width: 768px) {
    font-size: 14px;
  }
}

.release-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  opacity: 0.8;
  flex-wrap: wrap;
  
  mat-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
  }
}

.important-chip {
  margin-left: 8px !important;
  background: rgba(244, 67, 54, 0.2) !important;
  color: white !important;
  border: 1px solid rgba(244, 67, 54, 0.3) !important;
  
  mat-icon {
    color: #ff5722 !important;
  }
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
  backdrop-filter: blur(8px);
  
  &:hover {
    background: rgba(255, 255, 255, 0.3) !important;
  }
  
  @media (max-width: 768px) {
    top: 12px;
    right: 12px;
  }
}

// ===== CONTENT =====

.splash-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  
  @media (max-width: 768px) {
    padding: 20px 16px;
  }
}

.highlights-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  
  @media (prefers-color-scheme: dark) {
    color: #e0e0e0;
  }
  
  mat-icon {
    color: #FFC82E;
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  transition: all 0.2s ease;
  
  &:hover {
    border-color: #FFC82E;
    box-shadow: 0 4px 12px rgba(255, 200, 46, 0.15);
  }
  
  @media (prefers-color-scheme: dark) {
    background: #404040;
    border-color: #555;
    
    &:hover {
      border-color: #FFC82E;
      box-shadow: 0 4px 12px rgba(255, 200, 46, 0.25);
    }
  }
  
  @media (max-width: 768px) {
    padding: 12px;
    gap: 12px;
  }
}

.highlight-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  
  @media (prefers-color-scheme: dark) {
    background: #555;
  }
  
  mat-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
  }
  
  @media (max-width: 768px) {
    width: 36px;
    height: 36px;
    
    mat-icon {
      font-size: 18px;
      width: 18px;
      height: 18px;
    }
  }
}

.highlight-content {
  flex: 1;
  min-width: 0; // Para permitir text wrap
}

.highlight-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  
  @media (max-width: 768px) {
    gap: 8px;
  }
}

.highlight-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 0;
  
  @media (prefers-color-scheme: dark) {
    color: #e0e0e0;
  }
  
  @media (max-width: 768px) {
    font-size: 15px;
  }
}

.type-chip {
  font-size: 12px !important;
  height: 24px !important;
  border-radius: 12px !important;
  
  @media (max-width: 768px) {
    font-size: 11px !important;
    height: 22px !important;
  }
}

.highlight-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #666;
  
  @media (prefers-color-scheme: dark) {
    color: #b0b0b0;
  }
  
  @media (max-width: 768px) {
    font-size: 13px;
  }
}

// ===== FOOTER =====

.splash-footer {
  padding: 20px 24px;
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  
  @media (prefers-color-scheme: dark) {
    background: #353535;
    border-color: #555;
  }
  
  @media (max-width: 768px) {
    padding: 16px;
  }
}

.footer-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  justify-content: center;
  
  button {
    min-width: 140px;
    
    @media (max-width: 768px) {
      min-width: 120px;
      flex: 1;
    }
  }
}

.footer-info {
  text-align: center;
  
  small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    
    @media (prefers-color-scheme: dark) {
      color: #aaa;
    }
    
    mat-icon {
      font-size: 14px;
      width: 14px;
      height: 14px;
    }
  }
}

// ===== ACCESSIBILITY =====

// Focus styles
.close-button:focus,
button:focus {
  outline: 2px solid #FFC82E;
  outline-offset: 2px;
}

// Reduz motion para usuários sensíveis
@media (prefers-reduced-motion: reduce) {
  .splash-modal,
  .highlight-item {
    animation: none !important;
    transition: none !important;
  }
} 