/* =====================================
   SINGLE POST - STILE PRINCIPALE
   ===================================== */

.nbs-single-content {
  width: 100%;
}

/* card singolo articolo */
.nbs-single-post {
  background: #ffffff;
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* header: meta + titolo + immagine in evidenza */
.nbs-single-post__header {
  margin-bottom: 1.8rem;
}

/* riuso stile meta della home, ma con un po' più spazio */
.nbs-single-post__header .nbs-post-card__meta {
  margin-bottom: 0.6rem;
}

/* titolo grande */
.nbs-single-post__title {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 1.4rem;
}

/* immagine in evidenza */
.nbs-single-post__thumb {
  margin: 0 -0.8rem 0;
}

.nbs-single-post__thumb img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

.nbs-breadcrumb{
    font-size:0.75rem;
}

/* =====================================
   CONTENUTO ARTICOLO
   ===================================== */

.nbs-single-post__content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--nbs-color-text);
}

.nbs-single-post__content > *:first-child {
  margin-top: 0;
}

.nbs-single-post__content p {
  margin: 0 0 1.15em;
}

.nbs-single-post__content h2,
.nbs-single-post__content h3,
.nbs-single-post__content h4,
.nbs-single-post__content h5,
.nbs-single-post__content h6 {
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

.nbs-single-post__content ul,
.nbs-single-post__content ol {
  margin: 0 0 1.2em 1.4em;
}

.nbs-single-post__content li + li {
  margin-top: 0.25em;
}

/* citazioni */
.nbs-single-post__content blockquote {
  margin: 1.6em 0;
  padding: 1.1rem 1.3rem;
  border-left: 4px solid #5f9ea0;
  border-radius: 12px;
  background: #f5f7fb;
  font-style: italic;
}

/* immagini dentro al contenuto */
.nbs-single-post__content figure {
  margin: 1.6em 0;
}

.nbs-single-post__content img {
  border-radius: 14px;
}

/* tabelle */
.nbs-single-post__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 0.95rem;
}

.nbs-single-post__content th,
.nbs-single-post__content td {
  border: 1px solid #dde3ea;
  padding: 0.55rem 0.7rem;
}

.nbs-single-post__content th {
  background: #f5f7fb;
  font-weight: 600;
}

/* codice */
.nbs-single-post__content pre,
.nbs-single-post__content code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

.nbs-single-post__content pre {
  background: #02061710;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}

/* paginazione interna (<!--nextpage-->) */
.nbs-single-post__content .page-links {
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

/* =====================================
   FOOTER ARTICOLO: TAG + NAV
   ===================================== */

.nbs-single-post__footer {
  margin-top: 2.2rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 1.4rem;
}

/* tag */
.nbs-single-post__tags {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.nbs-single-post__tags strong {
  margin-right: 0.45rem;
}

.nbs-single-post__tags a {
  display: inline-block;
  margin: 0 0.25rem 0.35rem 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  font-size: 0.83rem;
}

.nbs-single-post__tags a:hover {
  background: #e5e7eb;
}

/* navigazione precedente / successivo */
.nbs-single-post__nav .post-navigation {
  border-top: 1px solid #e5e7eb;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
}

.nbs-single-post__nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.nbs-single-post__nav .nav-previous,
.nbs-single-post__nav .nav-next {
  flex: 1 1 260px;
}

.nbs-single-post__nav .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nbs-color-text-muted);
  margin-bottom: 0.25rem;
}

.nbs-single-post__nav .nav-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* =====================================
   COMMENTI
   ===================================== */

.comments-area {
  margin-top: 2.5rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.comments-title {
  font-size: 1.15rem;
  margin-bottom: 1.3rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 1.4rem;
}

.comment-body {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--nbs-color-text-muted);
  margin-bottom: 0.3rem;
}

.comment-author .fn {
  font-weight: 600;
}

.comment-content p {
  margin: 0 0 0.8em;
}

.comment-reply-link {
  font-size: 0.8rem;
}

/* form commenti */
.comment-respond {
  margin-top: 1.2rem;
}

.comment-respond label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--nbs-color-text-muted);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dde3ea;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  background: #f9fafb;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-respond textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-respond input[type="text"]:focus,
.comment-respond input[type="email"]:focus,
.comment-respond textarea:focus {
  border-color: #5f9ea0;
  background-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(95, 158, 160, 0.22);
}

.comment-respond input[type="submit"] {
  margin-top: 0.6rem;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #5f9ea0;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.comment-respond input[type="submit"]:hover,
.comment-respond input[type="submit"]:focus {
  background-color: #497c7f;
  box-shadow: 0 8px 20px rgba(73, 124, 127, 0.35);
  transform: translateY(-1px);
}

/* =====================================
   DARK MODE - SINGLE
   ===================================== */

html[data-theme="dark"] .nbs-single-post {
  background: #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .nbs-single-post__thumb img {
  border-radius: 16px;
}

html[data-theme="dark"] .nbs-single-post__content blockquote {
  background: #020617;
  border-left-color: #60a5fa;
}

html[data-theme="dark"] .nbs-single-post__content table th,
html[data-theme="dark"] .nbs-single-post__content table td {
  border-color: #1f2937;
}

html[data-theme="dark"] .nbs-single-post__content table th {
  background: #020617;
}

/* tag */
html[data-theme="dark"] .nbs-single-post__tags a {
  background: #111827;
  color: #e5e7eb;
}

html[data-theme="dark"] .nbs-single-post__tags a:hover {
  background: #1f2937;
}

/* navigazione */
html[data-theme="dark"] .nbs-single-post__footer,
html[data-theme="dark"] .nbs-single-post__nav .post-navigation {
  border-top-color: #111827;
}

/* commenti */
html[data-theme="dark"] .comments-area {
  background: #020617;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
}

html[data-theme="dark"] .comment-body {
  border-bottom-color: #111827;
}

html[data-theme="dark"] .comment-respond input[type="text"],
html[data-theme="dark"] .comment-respond input[type="email"],
html[data-theme="dark"] .comment-respond textarea {
  background: #020617;
  border-color: #1f2937;
  color: #f9fafb;
}

html[data-theme="dark"] .comment-respond input[type="text"]:focus,
html[data-theme="dark"] .comment-respond input[type="email"]:focus,
html[data-theme="dark"] .comment-respond textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
  background: #020617;
}

/* =====================================
   RESPONSIVE SINGLE
   ===================================== */

@media (max-width: 768px) {
  .nbs-single-post {
    padding: 1.6rem 1.4rem;
    border-radius: 16px;
  }

  .nbs-single-post__title {
    font-size: 1.6rem;
  }

  .nbs-single-post__thumb {
    margin: 0 0 0.4rem;
  }

  .comments-area {
    padding: 1.4rem 1.3rem;
  }
}