.single-content {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

@media (min-width: 768px) { .single-content { padding: 0 1.5rem 4rem; } }

@media (min-width: 1024px) { .single-content { padding: 0 2.5rem 4rem; } }

.single-article .card {
  position: relative;
  border-radius: var(--au-radius);
  border: 1px solid rgba(130, 120, 255, 0.55);
  background: var(--au-surface-2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 40px 4px rgba(90, 80, 245, 0.65);
  overflow: hidden;
}
.single-featured { position: relative; width: 100%; aspect-ratio: 16/7; overflow: hidden; }
.single-featured img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .single-featured { aspect-ratio: 16/10; } }

.rate-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-radius: 9999px;
  border: 1px solid var(--au-border-strong);
  background: rgba(5,6,14,.75);
  backdrop-filter: blur(8px);
  padding: .4rem 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
}
.rate-btn:hover { border-color: rgba(232,181,80,.5); background: rgba(5,6,14,.9); }
.rate-btn span.like-count { color: rgba(255,255,255,.6); font-weight: 800; font-size: 1rem; transition: .15s; }
.rate-btn img { width: 1rem; height: 1rem; filter: grayscale(1) brightness(1.5); opacity: .6; transition: .2s; }
.rate-btn.is-liked span.like-count { color: var(--ah-gold-light); }
.rate-btn.is-liked img { filter: none; opacity: 1; }
.rate-btn.is-liked { border-color: rgba(232,181,80,.6); }
@keyframes rate-btn-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.rate-btn.is-liked img { animation: rate-btn-pop .35s ease; }
.rate-btn.is-loading { pointer-events: none; opacity: .85; }

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 2.25rem .5rem;
  flex-wrap: wrap;
}
@media (max-width: 640px) { .title-row { padding: 1.25rem 1.25rem .25rem; flex-direction: column; } }

.title-row h1 { margin: 0; font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1.5; }
@media (max-width: 640px) { .title-row h1 { font-size: 1.25rem; } }

.tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.tags .tag {
  border-radius: 9999px;
  padding: .35rem 1.1rem;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(to left, var(--ah-purple), var(--ah-purple-dark));
  color: #fff;
}

.entry-content {
  padding: 1.25rem 2.25rem 2rem;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 2.1;
  text-align: right;
  direction: rtl;
}
.entry-content figure.wp-block-table { margin: 1.5rem 0; width: 100%; }
.entry-content figure.wp-block-table table { width: 100%; }
@media (max-width: 640px) { .entry-content { padding: .75rem 1.25rem 1.5rem; font-size: .9rem; } }

.entry-content > p { margin: 0 0 1.25rem; width: 100%; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; font-weight: 800; margin: 2rem 0 1rem; line-height: 1.6; width: 100%; }
.entry-content h2 { font-size: 1.3rem; }
.entry-content h3 { font-size: 1.1rem; }
.entry-content a { color: var(--ah-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 1rem; margin: 1.5rem 0; max-width: 100%; height: auto; }
.entry-content ul, .entry-content ol { margin: 0 0 1.25rem; padding-inline-start: 1.5rem; width: 100%; }
.entry-content li { margin-bottom: .5rem; }
.entry-content blockquote {
  width: 100%;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--ah-gold);
  background: rgba(255,255,255,.03);
  border-radius: .75rem;
  color: rgba(255,255,255,.75);
}
.entry-content code {
  background: rgba(255,255,255,.08);
  border-radius: .35rem;
  padding: .15rem .4rem;
  font-size: .85em;
  direction: ltr;
  display: inline-block;
}
.entry-content pre {
  background: rgba(0,0,0,.35);
  border: 1px solid var(--au-border);
  border-radius: .75rem;
  padding: 1rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

.entry-content .table-scroll {
  width: 100%;
  margin: 1.5rem 0;
  overflow-x: auto;
  border-radius: .9rem;
  border: 1px solid var(--au-border);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: rgba(255,255,255,.02);
  font-size: .92rem;
}
.entry-content table caption {
  caption-side: top;
  padding: .75rem 1rem;
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  text-align: center;
}
.entry-content th,
.entry-content td {
  padding: .75rem 1rem;
  text-align: center;
  vertical-align: middle;
  border: 1px solid var(--au-border);
  color: rgba(255,255,255,.85);
}
.entry-content thead th {
  background: linear-gradient(to left, var(--ah-purple), var(--ah-purple-dark));
  color: #fff;
  font-weight: 800;
  border-color: var(--ah-purple-dark);
  white-space: nowrap;
}
.entry-content tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.entry-content tbody tr:hover { background: rgba(232,181,80,.06); }
.entry-content tbody tr:last-child td { border-bottom: none; }
@media (max-width: 640px) {
  .entry-content th, .entry-content td { padding: .55rem .7rem; font-size: .82rem; }
}

.post-meta {
  padding: 0 2.25rem 1.5rem;
  font-size: .8rem;
  color: var(--au-text-dim);
  border-top: 1px solid var(--au-border);
  margin-top: 1rem;
  padding-top: 1.25rem;
}
@media (max-width: 640px) { .post-meta { padding: 1.25rem 1.25rem 1.5rem; } }


.img2 {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.right {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.right h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ah-gold-light); /* رنگ طلایی روشن */
  text-shadow: 0 0 15px rgba(232, 181, 80, 0.4);
}
.right img {
  width: 1.4rem;
  height: 1.4rem;
}

.message2 {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  border-radius: 9999px;
  border: 1px solid var(--ah-gold);
  background: linear-gradient(to left, var(--ah-gold), var(--ah-gold-light));
  padding: .6rem 1.4rem;
  box-shadow: 0 0 20px -3px rgba(232, 181, 80, 0.5);
  transition: .25s;
}
.message2 h1 {
  color: var(--ah-navy);
  font-size: .95rem;
  font-weight: 800;
  margin: 0;
}
.message2:hover {
  box-shadow: 0 0 30px 0px rgba(232, 181, 80, 0.8);
  transform: translateY(-2px);
}

.cardss { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1rem; padding: 0; list-style: none; }
.cardss ol, .cardss ul { list-style: none; margin: 0; padding: 0; }

.cards {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: rgba(20, 15, 10, 0.65);
  border: 1px solid rgba(232, 181, 80, 0.7);
  border-radius: var(--au-radius);
  padding: 1.4rem 1.6rem;
  box-shadow: 0 0 30px -5px rgba(232, 181, 80, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: .25s;
}
.cards:hover {
  border-color: var(--ah-gold-light);
  box-shadow: 0 0 40px -2px rgba(232, 181, 80, 0.65);
}

.cards img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--ah-gold);
  box-shadow: 0 0 10px rgba(232, 181, 80, 0.5);
}

.cards .card-body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.cards .card-body h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ah-gold-light);
}

.cards .card-body p {
  margin: 0;
  font-size: .95rem;
  color: #ffffff;
  line-height: 1.8;
  opacity: 0.95;
}

.cards .card-body .time {
  font-size: .78rem;
  color: rgba(254, 207, 124, 0.7);
  margin-top: .4rem;
}

#comment-toggle:checked ~ .overlay { display: flex; }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(5,6,14,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  border: none;
  margin: 0;
  padding: 0;
  background: transparent;
  display: block;
}

.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  border-radius: var(--au-radius);
  border: 1px solid rgba(232, 181, 80, 0.7);
  background: rgba(12, 10, 20, 0.96);
  box-shadow: 0 0 50px -10px rgba(232, 181, 80, 0.5);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 88vh;
  overflow-y: auto;
}

.modal-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .25rem; }
.modal-header-title { display: flex; align-items: center; gap: .6rem; }
.modal-header h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ah-gold-light); }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  color: rgba(255,255,255,.7);
  box-shadow: inset 0 0 0 1px rgba(232, 181, 80, 0.3);
  cursor: pointer;
  transition: .2s;
}
.modal-close:hover { background: rgba(232, 181, 80, 0.15); color: #fff; }
.modal-close svg { width: 1.1rem; height: 1.1rem; }

.modal input, .modal textarea, .comment-form input, .comment-form textarea {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .75rem;
  padding: .75rem 1rem;
  color: #fff;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: .2s;
}
.modal input:focus, .modal textarea:focus, .comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--ah-gold);
  box-shadow: 0 0 12px rgba(232, 181, 80, 0.35);
}
.modal textarea, .comment-form textarea { resize: vertical; min-height: 110px; }

.modal .comment-form-comment { margin: 0 0 .9rem; }
.inputs { display: flex; gap: .75rem; margin: 0 0 .9rem; }
@media (max-width: 480px) { .inputs { flex-direction: column; } }

.modal .actions, .comment-form .form-submit { display: flex; gap: .75rem; margin-top: .5rem; }
.submit, .comment-form .submit {
  flex: 1;
  background: linear-gradient(to left, var(--ah-gold), var(--ah-gold-light));
  color: var(--ah-navy);
  border: none;
  padding: .75rem;
  border-radius: 9999px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
  box-shadow: 0 4px 20px -4px rgba(232, 181, 80, 0.6);
  transition: .2s;
}
.submit:hover {
  box-shadow: 0 6px 25px -2px rgba(232, 181, 80, 0.85);
  transform: translateY(-1px);
}

.cancel, .comment-form .cancel-comment-reply-link {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  text-align: center;
  padding: .75rem;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.no-comments {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  text-align: center;
  font-size: .95rem;
  color: var(--ah-gold-light);
  border: 1px dashed rgba(232, 181, 80, 0.5);
  border-radius: var(--au-radius);
  background: rgba(232, 181, 80, 0.04);
}

@media (max-width: 640px) {
  .message { flex-direction: column; align-items: flex-start; gap: .75rem; }
}
