/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  animation: gradientShift 60s ease-in-out infinite;
}

/* Linktree specific background */
body.linktree-body {
  background: radial-gradient(
      circle at 20% 80%,
      rgba(205, 133, 63, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(222, 184, 135, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(160, 82, 45, 0.15) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #cd853f 0%, #daa520 50%, #b8860b 100%) !important;
  animation: none !important;
}

/* Ensure linktree background overrides everything */
html body.linktree-body {
  background: radial-gradient(
      circle at 20% 80%,
      rgba(205, 133, 63, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(222, 184, 135, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(160, 82, 45, 0.15) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #cd853f 0%, #daa520 50%, #b8860b 100%) !important;
  animation: none !important;
}

@keyframes gradientShift {
  0% {
    background: radial-gradient(
        circle at 20% 80%,
        rgba(120, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 20%,
        rgba(255, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 40% 40%,
        rgba(120, 219, 255, 0.2) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }
  25% {
    background: radial-gradient(
        circle at 25% 75%,
        rgba(120, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 75% 25%,
        rgba(255, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 45% 45%,
        rgba(120, 219, 255, 0.2) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }
  50% {
    background: radial-gradient(
        circle at 30% 70%,
        rgba(120, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 70% 30%,
        rgba(255, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 50% 50%,
        rgba(120, 219, 255, 0.2) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }
  75% {
    background: radial-gradient(
        circle at 35% 65%,
        rgba(120, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 65% 35%,
        rgba(255, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 55% 55%,
        rgba(120, 219, 255, 0.2) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }
  100% {
    background: radial-gradient(
        circle at 20% 80%,
        rgba(120, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 20%,
        rgba(255, 119, 198, 0.3) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 40% 40%,
        rgba(120, 219, 255, 0.2) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }
}

/* Container */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 20px 20px;
  position: relative;
}

.content {
  max-width: 600px;
  width: 100%;
  text-align: center;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 70%
    );
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(255, 255, 255, 0.03) 0deg,
    rgba(255, 255, 255, 0.08) 90deg,
    rgba(255, 255, 255, 0.03) 180deg,
    rgba(255, 255, 255, 0.08) 270deg,
    rgba(255, 255, 255, 0.03) 360deg
  );
  animation: rotate 30s linear infinite;
  z-index: -1;
}

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

/* Logo section */
.logo-section {
  margin-bottom: 30px;
}

.logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Text content */
.text-content {
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.description {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* Signup form */
.signup-section {
  margin-bottom: 30px;
}

.signup-form {
  margin-bottom: 15px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-direction: column;
}

#email-input,
#twitter-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    );
  color: #ffffff;
  font-size: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.and-or {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 6px 0;
  font-style: italic;
}

#email-input::placeholder,
#twitter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#email-input:focus,
#twitter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.submit-btn {
  padding: 15px 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.2) 0%,
      transparent 50%
    );
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-loading {
  display: inline;
}

/* Message */
.message {
  font-size: 0.9rem;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.message.success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Privacy note */
.privacy-note {
  font-size: 0.85rem;
  opacity: 0.7;
  margin: 0;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: auto;
  padding: 1rem 0;
  width: 100%;
  max-width: 600px;
}

.copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-weight: 400;
}

/* Mobile newline for unsubscribe text */
.mobile-break {
  display: none;
}

/* Linktree Styles */
.linktree-content {
  max-width: 500px;
  width: 100%;
}

.profile-section {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  margin-bottom: 1rem;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.3);
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-name {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: white;
}

.profile-bio {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.links-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.link-item:hover::before {
  left: 100%;
}

.link-item:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.link-content {
  flex: 1;
}

.link-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.link-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

.link-arrow {
  font-size: 1.2rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.link-item:hover .link-arrow {
  transform: translateX(4px);
}

.anvil-link {
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.2) 0%,
    rgba(75, 0, 130, 0.2) 50%,
    rgba(147, 51, 234, 0.2) 100%
  );
  border-color: rgba(138, 43, 226, 0.3);
}

.twitter-link {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(64, 64, 64, 0.2) 100%
  );
  border-color: rgba(0, 0, 0, 0.4);
}

/* Mobile responsive for linktree */
@media (max-width: 768px) {
  .linktree-content {
    max-width: 100%;
  }

  .link-item {
    padding: 0.875rem 1.25rem;
  }

  .link-title {
    font-size: 1rem;
  }

  .link-description {
    font-size: 0.85rem;
  }

  .profile-name {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }

  .mobile-break::before {
    content: "\A";
    white-space: pre;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 60px 15px 15px 15px;
  }

  .content {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .description {
    font-size: 1rem;
  }

  .input-group {
    flex-direction: column;
  }

  #email-input,
  .submit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 25px 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .logo {
    height: 50px;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content {
  animation: fadeInUp 0.8s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Unsubscribe specific styles */
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.85rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.4;
}

.thank-you-actions {
  margin-top: 2rem;
}

.back-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%),
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    );
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.back-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.back-button:hover::after {
  left: 100%;
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
