/* ============================================
   BANNER MODERNO E CONFIGURÁVEL
   Banner de boas-vindas com animações
   ============================================ */

.welcome-banner {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.5s ease-out;
  margin-bottom: 0;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.welcome-banner__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.welcome-banner__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.welcome-banner__icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  animation: pulse 2s ease-in-out infinite;
}

.welcome-banner__text {
  flex: 1;
}

.welcome-banner__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.welcome-banner__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.3;
}

.welcome-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-banner__btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
}

.welcome-banner__btn--primary {
  background: #CDFF00;
  color: #000;
}

.welcome-banner__btn--primary:hover {
  background: #B8E600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(205, 255, 0, 0.4);
}

.welcome-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.welcome-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

.welcome-banner__close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.welcome-banner__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Variações de Estilo */
.welcome-banner--gradient-green {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.welcome-banner--gradient-orange {
  background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
}

.welcome-banner--gradient-purple {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
}

.welcome-banner--gradient-red {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.welcome-banner--solid {
  background: var(--banner-bg-color, #0066FF);
}

.welcome-banner--pattern {
  background: 
    linear-gradient(135deg, #0066FF 0%, #0052CC 100%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.05) 10px,
      rgba(255, 255, 255, 0.05) 20px
    );
}

/* Animações */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .welcome-banner {
    padding: 10px 0;
  }

  .welcome-banner__container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .welcome-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .welcome-banner__title {
    font-size: 0.9375rem;
  }

  .welcome-banner__subtitle {
    font-size: 0.8125rem;
  }

  .welcome-banner__actions {
    width: 100%;
    justify-content: center;
  }

  .welcome-banner__btn {
    flex: 1;
    justify-content: center;
  }

  .welcome-banner__close {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* Estado fechado */
.welcome-banner.hidden {
  display: none;
}

/* Variação compacta */
.welcome-banner--compact {
  padding: 8px 0;
}

.welcome-banner--compact .welcome-banner__icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.welcome-banner--compact .welcome-banner__title {
  font-size: 0.875rem;
}

.welcome-banner--compact .welcome-banner__subtitle {
  display: none;
}

/* Variação com imagem de fundo */
.welcome-banner--with-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.welcome-banner--with-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.welcome-banner--with-image .welcome-banner__container {
  z-index: 1;
}
