/*
 * Welcome Banner
 * ==============
 * Full-width hero banner for new guest users.
 * Shows on first visit with Login / Redeem Code / Start Playing options.
 */

.welcome-banner {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(99, 102, 241, 0.15) 50%,
    rgba(79, 70, 229, 0.1) 100%
  );
  border: 2px solid var(--color-accent, #7c3aed);
  border-radius: 12px;
  padding: 32px 24px;
  margin: 16px;
  text-align: center;
  animation: bannerFadeIn 0.5s ease-out;
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-banner--hiding {
  animation: bannerFadeOut 0.3s ease-out forwards;
}

@keyframes bannerFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Header */
.welcome-banner__header {
  margin-bottom: 24px;
}

.welcome-banner__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent-light, #a78bfa);
  margin: 0 0 12px 0;
  font-family: var(--font-mono, 'Courier New', monospace);
  text-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.welcome-banner__subtitle {
  color: var(--color-text-secondary, #9ca3af);
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* Actions */
.welcome-banner__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.welcome-banner__btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-family: var(--font-mono, 'Courier New', monospace);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 160px;
  justify-content: center;
}

.welcome-banner__btn--primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.welcome-banner__btn--primary:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

.welcome-banner__btn--primary:active {
  transform: translateY(0);
}

.welcome-banner__btn--secondary {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-accent-light, #a78bfa);
  border: 1px solid var(--color-accent, #7c3aed);
}

.welcome-banner__btn--secondary:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--color-accent-light, #a78bfa);
}

.welcome-banner__btn-icon {
  font-size: 18px;
}

/* Skip tutorial link */
.welcome-banner__skip {
  margin-top: 16px;
}

.welcome-banner__skip-link {
  color: var(--color-text-muted, #6b7280);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-mono, 'Courier New', monospace);
}

.welcome-banner__skip-link:hover {
  color: var(--color-text-secondary, #9ca3af);
}

/* Redeem Code Form */
.welcome-banner__redeem-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: formSlideDown 0.3s ease-out;
}

@keyframes formSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-banner__redeem-input-group {
  display: flex;
  gap: 8px;
}

.welcome-banner__redeem-input {
  padding: 10px 16px;
  border: 1px solid var(--color-accent, #7c3aed);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-text-primary, #fff);
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 14px;
  text-transform: uppercase;
  width: 180px;
}

.welcome-banner__redeem-input::placeholder {
  color: var(--color-text-muted, #6b7280);
  text-transform: none;
}

.welcome-banner__redeem-input:focus {
  outline: none;
  border-color: var(--color-accent-light, #a78bfa);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

.welcome-banner__redeem-submit {
  padding: 10px 20px;
  background: var(--color-accent, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.welcome-banner__redeem-submit:hover {
  background: var(--color-accent-light, #a78bfa);
}

.welcome-banner__redeem-error {
  color: #ef4444;
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .welcome-banner {
    padding: 24px 16px;
    margin: 8px;
  }

  .welcome-banner__title {
    font-size: 22px;
  }

  .welcome-banner__subtitle {
    font-size: 14px;
  }

  .welcome-banner__actions {
    flex-direction: column;
    gap: 12px;
  }

  .welcome-banner__btn {
    width: 100%;
    padding: 12px 20px;
  }

  .welcome-banner__redeem-input-group {
    flex-direction: column;
    width: 100%;
  }

  .welcome-banner__redeem-input {
    width: 100%;
  }
}
