:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #f5f5f5;
  background-color: #050505;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  width: 100%;
  min-height: 100vh;
  background-image: linear-gradient(
      120deg,
      rgba(5, 5, 5, 0.65),
      rgba(5, 5, 5, 0.2)
    ),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.content {
  width: min(480px, 90vw);
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: rgba(245, 245, 245, 0.8);
}

label {
  display: block;
  text-align: left;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.9);
}

input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-color: rgba(3, 3, 3, 0.6);
  color: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

input[type="text"]::placeholder {
  color: rgba(245, 245, 245, 0.55);
}

input[type="text"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(3, 3, 3, 0.85);
}

.thought-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.thought-form button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #050505;
  background: linear-gradient(135deg, #f5f5f5, #d4f1ff);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thought-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.thought-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.status-message {
  min-height: 1.25rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(245, 245, 245, 0.8);
}

.status-message[data-state="error"] {
  color: #ffb4a2;
}

.status-message[data-state="success"] {
  color: #b9f6ca;
}

#thought-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow-y: auto;
}

#thought-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-radius: 16px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left;
}

#thought-list span {
  flex: 1;
  word-break: break-word;
}

#thought-list time {
  font-size: 0.8rem;
  color: rgba(245, 245, 245, 0.65);
  white-space: nowrap;
}

.thought-empty {
  text-align: center;
  font-style: italic;
  color: rgba(245, 245, 245, 0.6);
}

@media (max-width: 520px) {
  .thought-form {
    flex-direction: column;
  }

  .thought-form button {
    width: 100%;
  }

  #thought-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  #thought-list time {
    white-space: normal;
  }
}

