/* Project Solomon - Splash Screen Styles */
/* Matching Firesite.io aesthetic with Solomon branding */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #000000;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Splash screen container */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background: #000000;
  /* No transition by default — only activated when dismissing begins */
}

#splash.dismissing {
  transition: opacity 0.85s ease-out;
}

#splash.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Exit is handled entirely in js/splash.js via CSS classes */
/* Animated gradient background */
.background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 60%),
    #000000;
  animation: none;
}

/* background pulse removed — no opacity shifts */

/* Main container (matching Firesite.io structure) */
.container {
  position: absolute;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  margin: 0 auto;
  text-align: center;
  background: transparent;
  z-index: 11;
}

/* Firesite logo above card (matching Firesite.io positioning) */
.logo {
  position: absolute;
  width: 180px;
  height: auto;
  top: calc(45% - 335px);
  left: 50%;
  transform: translate(-50%, 0);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  z-index: 900;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translate(-50%, 0) translateY(0px);
  }
  50% {
    transform: translate(-50%, 0) translateY(-8px);
  }
}

/* Card container (exact match to Firesite.io) */
.card {
  position: absolute;
  z-index: 10;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  width: 90%;
  max-width: 600px;
  min-width: 290px;
  padding: 48px;
  background: rgba(0, 0, 0, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 4px 90px rgba(0, 0, 0, 0.81);
  overflow: visible;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  animation: cardEntrance 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Top highlight line (matching Firesite.io) */
.card:before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    white 34%,
    white 89%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.12;
  filter: blur(0.5px);
  mix-blend-mode: hard-light;
}

@keyframes cardEntrance {
  0% {
    transform: translate(-50%, -50%) translateY(40px) scale(0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }
}

/* Card exit — handled by js/splash.js */

/* Content box */
.content-box {
  position: relative;
  z-index: 2;
}

/* Title (matching Firesite.io style) */
.title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 2.55rem;
  margin-bottom: 36px;
  margin-top: 20px;
  color: #ffffff;
  text-align: center;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* Subtitle (matching Firesite.io style) */
.subtitle {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 28px;
  max-width: 500px;
  margin: 0 auto;
}

/* Divider line (matching Firesite.io) */
.line {
  width: 55px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0px auto;
  margin-top: 48px;
  margin-bottom: 18px;
  height: 0.65px;
}

/* Loading section (matching Firesite.io "Available Soon" style) */
.loading-section {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 28px;
  max-width: 335px;
  margin-left: auto;
  margin-right: auto;
}

/* Loading indicator container */
.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

/* Spinner with glow effect */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(59, 130, 246, 0.15);
  border-top-color: #3B82F6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.5));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading text */
.loading-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

/* Footer (matching Firesite.io) */
.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100px;
  text-align: center;
  background: #070707;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  color: rgba(255, 255, 255, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 0.75rem;
}

/* Responsive adjustments (matching Firesite.io) */
@media (max-width: 480px) {
  .card {
    padding: 48px 24px;
  }

  .title {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.12rem;
  }

  .logo {
    width: 180px;
    transform: translate(-50%, -135px);
  }
}

/* Adjust for height (matching Firesite.io) */
@media (max-height: 1040px) {
  .card {
    top: calc(40% + 90px);
  }

  .logo {
    width: 155px;
    top: calc(40% + 90px - 380px);
  }
}

@media (max-height: 720px) {
  .card {
    top: calc(40% + 60px);
  }
  
  .logo {
    top: calc(40% + 60px - 370px);
  }
}
