/* Reset / Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background-color: #f3f4f6;
  color: #374151;
}

/* Layout */
#writr__page {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
#writr__sidebar {
  width: 260px;
  background: #000000;
  color: #f9fafb;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#writr__sidebar h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 1rem;
  border-bottom: 1px solid #374151;
  padding-bottom: 0.5rem;
  color: #e5e7eb;
}

#writr__sidebar ul {
  list-style: none;
}

#writr__sidebar li {
  margin-bottom: 0.75rem;
}

#writr__sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #1e988a;
  color: #ebebeb;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

#writr__sidebar a:hover {
  background: #ebebeb;
  color: #000000;
}

#writr__sidebar a.action.register {
  background: #1e988a;
  font-weight: 600;
  text-align: center;
}

#writr__sidebar a.action.register:hover {
  background: #1d4ed8;
  color: #000000;
}

/* Main Content */
#writr__content {
  flex: 1;
  padding: 2.5rem;
  background: #fff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

#writr__content img {
  max-width: 100%;
  height: auto;
}

#writr__content h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

#writr__content p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

/* Highlighted Notice Box */
.notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Links in Content */
a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 992px) {
  #writr__page {
    flex-direction: column;
  }

  #writr__sidebar {
    width: 100%;
    padding: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  #writr__sidebar h3 {
    flex-basis: 100%;
    text-align: center;
    border: none;
    margin-bottom: 0.5rem;
  }

  #writr__sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0;
  }

  #writr__sidebar li {
    margin: 0;
  }

  #writr__sidebar a {
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
  }

  #writr__content {
    padding: 1.5rem;
  }

  #writr__content h1 {
    font-size: 1.5rem;
  }

  #writr__content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 500px) {
  #writr__sidebar {
    flex-direction: column;
    align-items: stretch;
  }

  #writr__sidebar a {
    text-align: center;
    width: 100%;
  }
}

/* Mobile Menu Button */
#menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: #1f2937;
  color: #fff;
  border: none;
  padding: 0.6rem 0.9rem;
  font-size: 1.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#menu-toggle:hover {
  background: #374151;
}

/* Floating Support Button */
#floating-support-button {
  /* This container simply provides the fixed positioning */
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  
  /* Remove any default button styling from the link */
  text-decoration: none;
  background: none;
  padding: 0;
}

#floating-support-button:hover img {
   box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Adds a stronger shadow on hover */
   transform: scale(1.1);
}

#floating-support-button img {
  /* Make sure the icon fits within the button */
  border: none;
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 70%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds a shadow for depth */
  cursor: pointer; /* Changes the cursor to a hand to indicate it's clickable */
  /* Apply the entrance animation */
  animation: bounceRepeat 12s infinite;

  /* Optional: Smooth transition for hover effects */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

@keyframes bounceRepeat {
  /* First Slow Bounce (0% to 4%) */
  0%, 1.5% { transform: translateY(0); }
  3% { transform: translateY(-20px); }
  4.5% { transform: translateY(0); }

  /* Second Slow Bounce (4% to 8%) */
  6% { transform: translateY(-20px); }
  7.5% { transform: translateY(0); }

  /* Third Slow Bounce (8% to 12%) */
  9% { transform: translateY(-20px); }
  10.5%, 12% { transform: translateY(0); }

  /* Pause for 6 seconds (from 12% to 100%) */
  12%, 100% { transform: translateY(0); }
}

/* Sidebar for Mobile */
@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  #writr__sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 220px;
    height: 100%;
    background: #000000;
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1rem;
    transition: left 0.3s ease;
    z-index: 999;
  }

  #writr__sidebar.open {
    left: 0;
  }

  /* Push content slightly when menu is open */
  #writr__content {
    transition: margin-left 0.3s ease;
  }

  #writr__sidebar.open ~ #writr__content {
    margin-left: 220px;
  }
}
