/*=========== Welcome / Splash Screen CSS ===========*/

/*-------------------------------------
  1. Layout
--------------------------------------*/
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--grayscale_gray_8);
  padding: var(--space-6xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 48%;
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(206, 39, 62, 0.06) 0%,
    rgba(75, 191, 173, 0.04) 40%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Soft particle dots for depth */
.welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(75, 191, 173, 0.08) 0%, transparent 2%),
    radial-gradient(circle at 82% 18%, rgba(206, 39, 62, 0.06) 0%, transparent 1.5%),
    radial-gradient(circle at 70% 75%, rgba(75, 191, 173, 0.07) 0%, transparent 2.5%),
    radial-gradient(circle at 25% 80%, rgba(206, 39, 62, 0.05) 0%, transparent 1.8%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 3%),
    radial-gradient(circle at 90% 45%, rgba(75, 191, 173, 0.05) 0%, transparent 1.2%),
    radial-gradient(circle at 8% 60%, rgba(206, 39, 62, 0.04) 0%, transparent 1%);
  pointer-events: none;
  animation: welcome-particleDrift 12s ease-in-out infinite alternate;
}

/*-------------------------------------
  1b. Glass Card
--------------------------------------*/
.welcome__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 56px 64px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: welcome-fadeUp 0.6s ease-out both;
}

/*-------------------------------------
  2. Logo & Brand
--------------------------------------*/
.welcome__logo-group {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  animation: welcome-fadeUp 0.8s ease-out both;
}

.welcome__icon {
  width: 160px;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
}

/*-- Bubble entrance animations --*/
.bubble--red {
  animation:
    bubble-slideInLeft 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both,
    bubble-floatRed 4s ease-in-out 1.2s infinite;
  transform-origin: 82px 72px;
}

.bubble--teal {
  animation:
    bubble-slideInRight 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s both,
    bubble-floatTeal 4s ease-in-out 1.5s infinite;
  transform-origin: 130px 100px;
}

.bubble--overlap {
  animation:
    bubble-overlapFade 0.5s ease-out 0.9s both,
    bubble-floatOverlap 4s ease-in-out 1.35s infinite;
}

.welcome__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.welcome__title {
  font-family: Roboto, sans-serif;
  font-size: 96px;
  font-weight: 300;
  color: var(--icon_white);
  letter-spacing: -1px;
  line-height: 1;
}

/*-------------------------------------
  3. Edition text
--------------------------------------*/
.welcome__edition {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  animation: welcome-fadeUp 0.8s ease-out 0.2s both;
}

.welcome__edition-primary {
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.welcome__edition-motto {
  font-family: Roboto, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(135deg, #4BBFAD 0%, #7DD8CA 50%, #4BBFAD 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: welcome-mottoShimmer 4s ease-in-out infinite;
}

/* Gradient accent divider */
.welcome__edition::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, #CE273E, #4BBFAD);
  border-radius: 1px;
  animation: welcome-dividerExpand 0.8s ease-out 0.6s both;
}

/*-------------------------------------
  4. Enter Button
--------------------------------------*/
.welcome__enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: 16px 48px;
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--icon_white);
  background: linear-gradient(135deg, var(--red_a400), var(--red_900));
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 20px rgba(234, 0, 41, 0.3), 0 0 40px rgba(234, 0, 41, 0.1);
  animation: welcome-fadeUp 0.8s ease-out 0.4s both, welcome-btnGlow 2.5s ease-in-out 1.2s infinite;
}

.welcome__enter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: welcome-shimmer 3.5s ease-in-out 1.5s infinite;
}

.welcome__enter-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 28px rgba(234, 0, 41, 0.5), 0 0 56px rgba(234, 0, 41, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.welcome__enter-btn:active {
  transform: scale(0.97);
}

.welcome__enter-btn .arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.welcome__enter-btn:hover .arrow-icon {
  transform: translateX(4px);
}

/*-------------------------------------
  5. Admin Link
--------------------------------------*/
.welcome__admin-link {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: Roboto, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  letter-spacing: 0.5px;
  z-index: 1;
  transition: color 0.2s ease;
}

.welcome__admin-link:hover {
  color: rgba(255, 255, 255, 0.6);
}

/*-------------------------------------
  6. Animations
--------------------------------------*/
@keyframes welcome-fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes welcome-shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes welcome-btnGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(234, 0, 41, 0.3), 0 0 40px rgba(234, 0, 41, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(234, 0, 41, 0.5), 0 0 60px rgba(234, 0, 41, 0.2);
  }
}

/*-- Bubble entrance: red slides in from the left --*/
@keyframes bubble-slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/*-- Bubble entrance: teal slides in from the right --*/
@keyframes bubble-slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/*-- Overlap region fades in after both bubbles land --*/
@keyframes bubble-overlapFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/*-- Idle floating: red bubble drifts gently up-left and back --*/
@keyframes bubble-floatRed {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-3px, -4px);
  }
}

/*-- Idle floating: teal bubble drifts gently down-right and back --*/
@keyframes bubble-floatTeal {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3px, 4px);
  }
}

/*-- Overlap follows the average drift of both bubbles --*/
@keyframes bubble-floatOverlap {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, 0);
  }
}

/*-- Motto text gradient shimmer --*/
@keyframes welcome-mottoShimmer {
  0% { background-position: 0% center; }
  50% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

/*-- Divider line expands from center --*/
@keyframes welcome-dividerExpand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

/*-- Particle drift --*/
@keyframes welcome-particleDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(8px, -6px); }
}

/*-------------------------------------
  7. Responsive
--------------------------------------*/
@media only screen and (max-width: 1050px) {
  .welcome__card {
    padding: 48px 48px;
  }
  .welcome__logo-group {
    gap: 32px;
    margin-bottom: 40px;
  }
  .welcome__icon {
    width: 130px;
  }
  .welcome__title {
    font-size: 72px;
  }
  .welcome__edition {
    margin-bottom: 36px;
  }
  .welcome__edition-primary {
    font-size: 16px;
  }
  .welcome__edition-motto {
    font-size: 19px;
    letter-spacing: 2.5px;
  }
}

@media only screen and (max-width: 768px) {
  .welcome {
    padding: var(--space-4xl);
  }
  .welcome__card {
    padding: 40px 32px;
    border-radius: 20px;
  }
  .welcome__logo-group {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }
  .welcome__brand-text {
    align-items: center;
  }
  .welcome__icon {
    width: 120px;
  }
  .welcome__title {
    font-size: 56px;
    letter-spacing: -1px;
  }
  .welcome__edition {
    margin-bottom: 28px;
  }
  .welcome__edition-primary {
    font-size: 15px;
  }
  .welcome__edition-motto {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .welcome__edition::after {
    width: 80px;
    margin-top: 20px;
  }
  .welcome__enter-btn {
    padding: 14px 40px;
    font-size: 16px;
    letter-spacing: 1.5px;
  }
}

@media only screen and (max-width: 550px) {
  .welcome {
    padding: var(--space-2xl);
  }
  .welcome__card {
    padding: 32px 24px;
    border-radius: 16px;
  }
  .welcome__logo-group {
    gap: 20px;
    margin-bottom: 28px;
  }
  .welcome__icon {
    width: 100px;
  }
  .welcome__title {
    font-size: 40px;
  }
  .welcome__edition {
    margin-bottom: 24px;
  }
  .welcome__edition-primary {
    font-size: 13px;
  }
  .welcome__edition-motto {
    font-size: 15px;
    letter-spacing: 1.5px;
  }
  .welcome__edition::after {
    width: 60px;
    margin-top: 16px;
  }
  .welcome__enter-btn {
    padding: 12px 32px;
    font-size: 14px;
    letter-spacing: 1px;
  }
}

@media only screen and (max-width: 360px) {
  .welcome {
    padding: var(--space-lg);
  }
  .welcome__card {
    padding: 24px 16px;
  }
  .welcome__logo-group {
    gap: 16px;
    margin-bottom: 24px;
  }
  .welcome__icon {
    width: 80px;
  }
  .welcome__title {
    font-size: 32px;
  }
  .welcome__edition-primary {
    font-size: 12px;
  }
  .welcome__edition-motto {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .welcome__enter-btn {
    padding: 10px 24px;
    font-size: 13px;
  }
}

/*-------------------------------------
  8. Reduced Motion
--------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .welcome::after,
  .bubble--red,
  .bubble--teal,
  .bubble--overlap,
  .welcome__logo-group,
  .welcome__edition,
  .welcome__enter-btn,
  .welcome__card {
    animation: none !important;
  }
  .welcome__edition-motto {
    animation: none !important;
  }
  .welcome__edition::after {
    animation: none !important;
    transform: scaleX(1);
    opacity: 1;
  }
  .welcome__enter-btn::before {
    animation: none !important;
  }
}
