

.post-content {
  background-color: #1f1c25;
  color: #f0e6d1;
  font-family: "Luminari", "Georgia", serif;
  line-height: 1.7;
  padding: 36px 20px 20px;

  width: 100%;
  max-width: 55rem;
  margin: 0 auto;
}

.post-info {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.post-info .meta {
  margin: 0;
  color: #c8d9e8;
}

.poster-name {
  text-decoration: underline;
}

.view-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.view-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(218, 246, 255, 0.24);
  border-radius: 6px;
  background: rgba(10, 31, 45, 0.45);
}

.view-stat strong {
  color: #daf6ff;
  font-size: 1.1rem;
}

.view-stat span {
  color: #9fb6c8;
  font-size: 0.68rem;
}

.post-info .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.post-info .category {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(218, 246, 255, 0.5);
  border-radius: 999px;
  color: #daf6ff;
  background: rgba(218, 246, 255, 0.1);
  font-size: 0.75rem;
}

.post-info .category-muted {
  color: #9fb6c8;
}

.post-content > .divider {
  margin: 0 0 2rem;
  border: 0;
  border-top: 2px solid rgba(218, 246, 255, 0.45);
}

@media (max-width: 600px) {
  .view-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.post-content b {
  font-weight: 900;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: #dda15e;
  margin-top: 24px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px #000;
}

.post-content h1 {
  font-size: 2.5em;
}

.post-content h2 {
  font-size: 2em;
}

.post-content h3 {
  font-size: 1.5em;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  font-size: 1.2em;
}

.post-content a {
  color: #e0a96d;
  text-decoration: none;
  border-bottom: 2px solid #e0a96d;
}

.post-content a:hover {
  color: #f4a261;
  border-color: #f4a261;
}

.post-content ul,
.post-content ol {
  padding-left: 30px;
}

/* .post-content li > div + div {
    margin-top: 20px;
} */


.post-content code {
  background-color: #3c3c42;
  border-radius: 6px;
  color: #e9c46a;
  padding: 0.4em 0.6em;
  font-family: "Courier New", monospace;
}

.post-content pre code {
  padding: 0;
}

.post-content pre {
  background-color: #3c3c42;
  border-radius: 6px;
  padding: 1em;
  overflow: auto;
  box-shadow: 2px 2px 6px #000;
}

.post-content blockquote {
  background-color: #2e2c35;
  border-left: 4px solid #8d99ae;
  padding-left: 2em;
  margin-left: 0;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  padding-right: 0.5em;
  color: #ddd;
  font-style: italic;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 3px solid #3c3c42;
  box-shadow: 3px 3px 6px #000;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #1f1c25;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: #3c3c42;
  border-radius: 6px;
  border: 3px solid #1f1c25;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #5a5466;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #3c3c42 #1f1c25;
}

::-webkit-scrollbar-corner {
  background: #1f1c25;
}


.comments {
  width: 100%;
  max-width: 60rem;
  box-sizing: border-box;

  margin: 2.5rem auto 0;
  padding-top: 1.5rem;

  border-top: 2px solid rgba(218, 246, 255, 0.45);
}


.comments h2 {
  color: #dda15e;
  margin: 0 0 1.5rem;
  font-size: 1.8em;
  text-shadow: 2px 2px 4px #000;
}

/* Add comment form */
.comment-form {
  display: grid;
  margin-top: 5rem;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.comment-input {
  width: 100%;
  max-width: 40rem;
  box-sizing: border-box;

  min-height: 100px;
  padding: 0.8rem 0.9rem;

    display: block;
  margin-left: auto;
  margin-right: 0;


  background: rgba(3, 21, 32, 0.55);
  border: 1px solid rgba(11, 107, 139, 0.3);
  border-radius: 16px;

  color: #f0e6d1;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;

  outline: none;
}

.comment-input::placeholder {
  color: #9fb6c8;
}

.comment-input:focus {
  border-color: rgba(221, 160, 94, 0.8);
  box-shadow: 0 0 0 2px rgba(221, 160, 94, 0.12);
}

.comment-submit {
  justify-self: right;

  padding: 0.55rem 1rem;
  border: 1px solid rgba(218, 246, 255, 0.4);
  border-radius: 6px;

  background: rgba(218, 246, 255, 0.1);
  color: #daf6ff;

  font-family: inherit;
  font-weight: 700;

  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.comment-submit:hover {
  background: rgba(218, 246, 255, 0.18);
  border-color: rgba(221, 160, 94, 0.8);
}

/* Comment list */
.comment-list {
  display: grid;
  
  gap: 1rem;
}

.comment {
  display: grid;
  
  gap: 0.5rem;

  padding: 1rem 1.1rem;

  background: rgba(10, 31, 45, 0.45);
  border: 1px solid rgba(218, 246, 255, 0.24);
  border-left: 3px solid rgba(221, 160, 94, 0.75);
  border-radius: 6px;

  box-shadow: 2px 2px 6px #000;
}

.comment-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.comment-author {
  color: #daf6ff;
  font-weight: 900;
}

.comment-date {
  color: #9fb6c8;
  font-size: 0.72rem;
}

.comment-text {
  margin: 0;
  color: #f0e6d1;
  line-height: 1.6;
  white-space: pre-wrap;
}

.comments-empty {
  margin: 0;
  color: #9fb6c8;
  font-style: italic;
}

@media (max-width: 600px) {
  .comment-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .comment-submit {
    width: 100%;
  }

  .comment {
    padding: 0.9rem;
  }
}


.post-area-wrap {
    white-space: pre-wrap;
    font-family: monospace;
}


.post-area-no-wrap {
    white-space: normal;
}


.post-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.edit-post-link {
  color: #dda15e;
  text-decoration: none;
  font-weight: 700;
}

.edit-post-link:hover {
  text-decoration: underline;
}

.label-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.switch {
    width: 36px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    display: block;
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

.slider::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: 0.2s;
}

input:checked + .slider {
    background: #2196F3;
}

input:checked + .slider::before {
    transform: translateX(16px);
}



.post-nav {
    font-size: 2.5rem;
    line-height: 1;
}
.post-nav-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}
.post-nav,
.post-nav:hover,
.post-nav:focus,
.post-nav:visited,
.post-nav:active {
    text-decoration: none !important;
    border-bottom: none !important;
   
}

