/* Optimized Affiliate Redirect Kit - Styles */

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

:root {
  /* Color Palette - Dark Theme */
  --color-primary: #ff3e3e;
  --color-primary-dark: #8b0000;
  --color-primary-darker: #4d0000;
  --color-background: #000000;
  --color-surface: #111111;
  --color-text: #ffffff;
  --color-text-light: #a0a0a0;
  --color-border: #2a2a2a;
  --color-link-hover: #ff5252;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-surface) 100%);
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-text);
  padding: 20px;
}

body::before {
  content: '';
  position: fixed;
  bottom: -10vh;
  left: 0;
  width: 100%;
  height: 60vh;
  /* Fallback gradient */
  background: linear-gradient(180deg, transparent 0%, #4d0000 35%, #8b0000 55%, #ff3e3e 75%, transparent 100%);
  /* Modern gradient with variables */
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-primary-darker) 35%,
    var(--color-primary-dark) 55%,
    var(--color-primary) 75%,
    transparent 100%
  );
  animation: lavaMove 12s ease-in-out infinite;
  opacity: 0.4;
  filter: blur(60px);
  transform-origin: center bottom;
  pointer-events: none;
  z-index: -1;
}

@keyframes lavaMove {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1.05);
    opacity: 0.5;
  }
}

.redirect-container {
  background-color: var(--color-surface);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 500px;
  width: 90%;
}

.redirect-logo {
  margin-bottom: 20px;
  max-width: 150px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--color-text);
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--color-text-light);
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 3px solid var(--color-border);
  border-radius: 50%;
  border-top-color: var(--color-primary);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

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

.redirect-progress {
  width: 100%;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.redirect-progress-bar {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 2px;
  width: 0%;
  animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
  to {
    width: 100%;
  }
}

.redirect-footer {
  margin-top: 30px;
  font-size: 12px;
  color: var(--color-text-light);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .redirect-container {
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 20px;
  }
  
  body::before {
    height: 50vh;
    filter: blur(30px);
  }
} 