/* style.css */

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body & Background */
body, html {
  height: 100%;
  background-color: #000;
  color: #eee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  overflow-x: hidden;
}

/* Links */
a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #bbb;
}

/* Header */
header {
  background: #111;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}
#username-display {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  cursor: default;
  color: #ddd;
  user-select: text;
  transition: color 0.3s ease;
}

/* Main Container */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 20px;
  gap: 30px;
}

/* Thread Display */
#thread-display {
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  min-height: 70vh;
  padding: 40px 30px;
  box-shadow: 0 0 40px rgba(255 255 255 / 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow-wrap: break-word;
  font-size: 1.5rem;
  font-weight: 500;
  color: #eee;
  user-select: text;
  /* fade-in animation */
  animation: fadeInScale 0.5s ease forwards;
}

/* Username above thread */
#thread-user {
  font-size: 1rem;
  margin-bottom: 18px;
  color: #bbb;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: text;
}

/* Navigation Buttons */
#nav-buttons {
  display: flex;
  gap: 20px;
}
#nav-buttons button {
  background: transparent;
  border: 2px solid #eee;
  border-radius: 8px;
  color: #eee;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}
#nav-buttons button:hover {
  background: #eee;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255 255 255 / 0.2);
}

/* Post Form */
#post-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 1s ease forwards;
}
#post-form textarea {
  resize: none;
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  background: #222;
  color: #eee;
  border: 2px solid #333;
  outline: none;
  transition: border-color 0.3s ease;
  min-height: 120px;
  font-weight: 500;
  user-select: text;
}
#post-form textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255 255 255 / 0.3);
}

/* Submit Button */
#post-form button {
  background: #eee;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 12px 0;
  cursor: pointer;
  color: #000;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
}
#post-form button:hover {
  background: #ccc;
  color: #111;
  box-shadow: 0 8px 18px rgba(0 0 0 / 0.2);
}

/* Message */
#message {
  font-size: 1rem;
  height: 1.4rem;
  font-weight: 600;
  user-select: none;
}

/* Animations */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
