/* Dark Mode Styles */
body {
  font-family: Arial, sans-serif;
  margin: 2rem auto;
  padding: 0 1rem;
  background-color: #0a0e2a;
  /* deep dark blue */
  /* background: url("../src/images/NightCity.jpg"); */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  color: #eee;
}

.dreamy-header {
  position: relative;
  font-family: 'Orbitron', sans-serif;
  font-size: 3em;
  background: linear-gradient(90deg,
      #b8860b 0%,
      #ffd700 25%,
      #fff8dc 50%,
      #ffd700 75%,
      #b8860b 100%);
  background-size: 200% auto;
  animation: gold-shine 6s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2), 0 -1px 1px rgba(0, 0, 0, 0.3);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  overflow: visible;
}

/* Gold shimmer animation */
@keyframes gold-shine {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* Spark styling */
.dreamy-header .spark {
  position: absolute;
  background: #fffacd;
  border-radius: 50%;
  opacity: 0;
  filter: drop-shadow(0 0 4px #fffacd);
  animation: spark-flicker 2.5s infinite ease-in-out;
  pointer-events: none;
}

/* Spark flicker animation */
@keyframes spark-flicker {

  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}


h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: normal;
  color: #ffffff;
  margin-top: 0.5em;
  text-align: center;
  opacity: 0.85;
}

form {
  margin-bottom: 3rem;
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(28, 46, 126, 0.9);

  display: flex;
  flex-direction: column;
  align-items: left;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
  color: #ccc;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
  background: #2c2c2c;
  color: #eee;
}

input[type="text"]::placeholder,
textarea::placeholder {
  color: #888;
}

input[type="text"]:focus,
textarea:focus {
  border-color: #007BFF;
  outline: none;
  background: #3a3a3a;
}

button {
  background: #007BFF;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

button:hover {
  background: #0056b3;
}

.post {
  background: #1e1e1e;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  color: #ddd;
}

.post h2 {
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.post p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

.no-posts {
  text-align: center;
  color: #888;
  margin-top: 2rem;
  font-style: italic;
}

.lucid-score-btn {
  text-decoration: none;
  display: inline-block;
  margin: 1rem auto;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #a903eb, #4b9eff, #6a00ff);
  background-size: 300% 300%;
  border: none;
  border-radius: 10px;
  /* Less rounded, more squared */
  cursor: pointer;
  animation: glowShift 6s ease infinite;
  box-shadow: 0 0 15px rgba(158, 0, 255, 0.6), 0 0 25px rgba(75, 158, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-align: center;
}

/* Purple-blue animated shift */
@keyframes glowShift {
  0% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(158, 0, 255, 0.4), 0 0 20px rgba(75, 158, 255, 0.3);
  }

  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 20px rgba(158, 0, 255, 0.6), 0 0 30px rgba(75, 158, 255, 0.4);
  }

  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 10px rgba(158, 0, 255, 0.4), 0 0 20px rgba(75, 158, 255, 0.3);
  }
}

.button-section {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.gold-spark-btn {
  flex: 1 1 180px;
  max-width: 220px;
  padding: 0.8rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #d4af37;
  /* gold base color */
  background: #1e1e1e;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 10px #d4af37aa,
    0 0 20px #d4af37bb;
  transition: box-shadow 0.3s ease;
}

.gold-spark-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 100%);
  transform: rotate(25deg);
  animation: sparkle 2.5s linear infinite;
  pointer-events: none;
}

/* Assign different animation delays to make sparkle start at different times */
.gold-spark-btn:nth-child(1)::before {
  animation-delay: 0s;
}

.gold-spark-btn:nth-child(2)::before {
  animation-delay: 1.3s;
}

.gold-spark-btn:hover {
  box-shadow:
    0 0 20px #ffde59,
    0 0 30px #ffde59;
  color: #fff7c0;
}

@keyframes sparkle {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.lucid-score-btn {
  flex: 1 1 200px;
  max-width: 220px;
  text-align: center;
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  /* Slimmer font */
  letter-spacing: 0.3px;
  color: #000000;
  background: linear-gradient(135deg, #a903eb, #4b9eff, #6a00ff);
  background-size: 300% 300%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  animation: glowShift 6s ease infinite;
  box-shadow: 0 0 15px rgba(158, 0, 255, 0.6), 0 0 25px rgba(75, 158, 255, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#pagination button {
  background: #007BFF;
  color: white;
  border: none;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#pagination button:disabled {
  background: #555;
  cursor: default;
}

#pagination button:not(:disabled):hover {
  background: #0056b3;
}

.introduction {
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  /* slim font */
  font-size: 1.2rem;
  line-height: 1.6;
  color: #b3cde0;
  /* pastel light blue */
  background: linear-gradient(45deg,
      #a8dadc,
      /* pastel cyan */
      #f1faee,
      /* pastel off-white */
      #ffe066,
      /* pastel yellow */
      #f4a261
      /* pastel orange */
    );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  width: 280px;
  transition: box-shadow 0.3s ease;
  cursor: default;
}

.card:hover {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.9);
}

.icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  user-select: none;
  filter: drop-shadow(0 0 6px);
}

/* Neon colors for icons */
.neon-purple {
  color: #9e00ff;
  text-shadow:
    0 0 6px #9e00ff,
    0 0 10px #9e00ff,
    0 0 20px #bb33ff;
}

.neon-blue {
  color: #4b9eff;
  text-shadow:
    0 0 6px #4b9eff,
    0 0 10px #4b9eff,
    0 0 20px #33bbff;
}

.neon-cyan {
  color: #00d4ff;
  text-shadow:
    0 0 6px #00d4ff,
    0 0 10px #00d4ff,
    0 0 20px #33eeff;
}

.neon-pink {
  color: #ff33cc;
  text-shadow:
    0 0 6px #ff33cc,
    0 0 10px #ff33cc,
    0 0 20px #ff66dd;
}

.neon-green {
  color: #7bff8c;
  text-shadow:
    0 0 6px #7bff8c,
    0 0 10px #7bff8c,
    0 0 20px #99ffaa;
}

.neon-orange {
  color: #ff9933;
  text-shadow:
    0 0 6px #ff9933,
    0 0 10px #ff9933,
    0 0 20px #ffaa44;
}

.neon-yellow {
  color: #fff966;
  text-shadow:
    0 0 6px #fff966,
    0 0 10px #fff966,
    0 0 20px #ffff88;
}

.content h3 {
  margin: 0 0 0.3rem 0;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.content p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.3;
}

.journal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}

.journal-container h1,
.journal-container label,
.journal-container textarea,
.journal-container input,
.journal-container button,
#postsContainer {
  text-align: left;
}