@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
  --neon-pink: #ff00cc;
  --neon-cyan: #00f0ff;
  --dark-bg: #09090b;
}

* {
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #1a0b2e, var(--dark-bg) 80%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 40px 20px;
}

/* Subtle floating or pulse effect */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.container {
  text-align: center;
  /* Glass card UI with blur and border glow */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 0, 204, 0.15),
    0 0 40px rgba(0, 240, 255, 0.1) inset;
  padding: 30px 25px;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  min-width: 300px;
  animation: float 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  margin: auto 0;
  transition: all 0.3s ease;
  /* Allow container to grow with content */
  height: auto;
  min-height: unset;
}

h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  /* Neon pink and cyan glow accents */
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 0, 204, 0.4));
  letter-spacing: 1px;
}

/* Glow effect on quote text - EXPANDABLE */
#quote {
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
  padding: 10px 15px;
  display: block;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  color: #e2e8f0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  max-width: 540px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  /* Remove fixed height - let content determine size */
  min-height: unset;
  height: auto;
}

/* Long quotes get scrolling */
#quote.long-quote {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
  text-align: left;
}

#quote.long-quote::-webkit-scrollbar {
  width: 6px;
}

#quote.long-quote::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

#quote.long-quote::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-pink), var(--neon-cyan));
  border-radius: 3px;
}

#author {
  font-size: 0.95rem;
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
  margin: 5px 0 15px 0;
  text-align: right;
  text-shadow: 0 0 8px rgba(255, 0, 204, 0.3);
  min-height: unset;
  padding-right: 25px;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

button {
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan));
  z-index: -1;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.4), 0 0 20px rgba(0, 240, 255, 0.4);
}

button:hover::before {
  opacity: 0.5;
}

button:active {
  transform: translateY(1px);
}

/* Copy button success state */
button.copied {
  background: linear-gradient(45deg, #22c55e, #16a34a) !important;
  border-color: #22c55e !important;
  animation: copyPulse 0.5s ease;
}

button.copied::before {
  opacity: 0 !important;
}

@keyframes copyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px 10px rgba(34, 197, 94, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .container {
    padding: 30px 20px;
    width: 95%;
  }
  
  #quote {
    font-size: 1.15rem;
    line-height: 1.7;
    padding: 10px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}