/* Basic Layout */
body {
  background-color: #f5f8fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: #990000;
  color: white;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

/* Main Layout */
main {
  display: grid;
  grid-template-areas: "nav content";
  grid-template-columns: 250px 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

/* Back to Top */
#top {
  position: absolute;
  top: 0;
  visibility: hidden;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #990000;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 999;
}

#backToTop:hover {
  background-color: #770000;
  text-decoration: none;
}

/* Navigation */
.nav-container {
  grid-area: nav;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.nav-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-container ul li {
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 5px;
}

.nav-container ul li:hover {
  background-color: #f5f8fa;
}

.nav-container ul li.active {
  background-color: #990000;
  color: white;
}

/* Content Area */
.content-area {
  grid-area: content;
}

/* Howl Input */
#howlTextArea {
  resize: none;
}

.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

/* Custom Button Colors */
.btn-primary {
  background-color: #990000;
  border-color: #990000;
}

.btn-primary:hover {
  background-color: #770000;
  border-color: #770000;
}

/* Howl Cards */
.howl-card {
  margin-bottom: 15px;
}

.howl-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.howl-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.howl-user-info {
  flex: 1;
}

.howl-name {
  font-weight: bold;
  margin: 0;
}

.howl-username {
  color: #657786;
  cursor: pointer;
}

.howl-username:hover {
  color: #990000;
  text-decoration: underline;
}

.howl-timestamp {
  color: #657786;
  font-size: 14px;
}

/* Footer */
footer {
  border-top: 2px solid #990000;
  background-color: white;
  padding: 15px 20px;
  text-align: center;
  margin-top: auto;
}

/* Mobile */
@media (max-width: 768px) {
  main {
    grid-template-areas: "content";
    grid-template-columns: 1fr;
    padding: 0 10px;
  }

  .nav-container {
    display: none;
  }
}