/* VARIABLE COLORS */

:root {
  --soft-pink: #f8c8dc;
  --peach: #ffd1a9;
  --yellow: #fff4a3;
  --mint: #b8f2d6;
  --sky-blue: #bde0fe;
  --lavender: #e4c1f9;
  --text-dark: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(
    135deg,
    var(--soft-pink),
    var(--peach),
    var(--yellow),
    var(--mint),
    var(--sky-blue),
    var(--lavender)
  );
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  color: var(--text-dark);
  overflow-x: hidden;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.img-logo {
  height: 30px; /* DON'T TOUCH */
}
/* NAV */

nav {
  padding: 20px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1000; /* makes nav sit above everything */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto; /* pushes links to far right */
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: 0.3s;
}

nav a:hover {
  opacity: 0.7;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
}

.reply {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #000000a8;
}

/* LAYOUT */

.container {
  display: flex;
  gap: 40px;
  padding: 60px 8%;
}

/* LEFT PANEL */

.left-panel {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.search-bar input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-size: 14px;
  color: var(--text-dark);
}

.search-bar input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--lavender);
}

/* STORIES */

.stories {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.story-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.story-card:hover {
  transform: translateY(-6px);
}

.tag {
  display: inline-block;
  background: var(--mint);
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.author {
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 600;
}

.timestamp {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 15px;
}

.story-card p {
  line-height: 1.6;
}

/* FORM */

.form-card {
  width: 35%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-card {
  position: relative;
  z-index: 1;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-dark);
  margin-top: 8px;
  transition: 0.3s;
  margin-top: 30px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--lavender);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* BUTTON */

button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  background: var(--lavender);
  color: var(--text-dark);
  transition: 0.3s ease;
  margin-top: 20px;
}

button:hover {
  transform: translateY(-3px);
}

/* MOBILE */

@media (max-width: 768px) {
  /* NAV MOBILE */

  nav ul {
    position: absolute;
    top: 70px;
    right: 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    width: 180px;
    padding: 20px;
    border-radius: 20px;
    gap: 15px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    z-index: 1001; /* higher than nav itself */
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  /* STACK LAYOUT */

  .container {
    flex-direction: column;
  }

  /* FORM ON TOP */

  .form-card {
    width: 100%;
    order: -1; /* THIS moves it above stories */
  }

  .left-panel {
    width: 100%;
  }
}
