/* ===============================================================
   futuretechspot - Main Stylesheet
   =============================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #0a0a0f;
  color: #e2e8f0;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

[class*="border-"] {
  border-color: #1e1e2e;
}

/* ── Logo ─────────────────────────────────────────── */
.fts-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Sora", sans-serif;
  font-size: 1.125rem;
  color: #d1f8fd;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.fts-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #7c3aed, #3b82f6);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

/* ── Header ────────────────────────────────────────── */
#fts-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e2e;
  transition: box-shadow 0.3s;
}
#fts-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

/* ── Search Input ──────────────────────────────────── */
.fts-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #13131c;
  border: 1px solid #1e1e2e;
  border-radius: 9999px;
  padding: 6px 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.fts-search:focus-within {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.fts-search input {
  background: none;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 0.8rem;
  width: 140px;
}
.fts-search input::placeholder {
  color: #4b5563;
}
.fts-search svg {
  color: #6b7280;
  flex-shrink: 0;
}
/* ── Search results dropdown ───────────────────────── */
.fts-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px; /* Standard width for dropdown */
  background: rgba(19, 19, 28, 0.95);
  border: 1px solid #1e1e2e;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1000;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.fts-search-results.hidden {
  display: none;
}
/* Ensure the mobile searchbar doesn't clip dropdown */
#fts-search-bar {
  overflow: visible !important;
}
/* Center dropdown on mobile search */
#fts-search-bar .fts-search-results {
  width: 100%;
}
@media (max-width: 640px) {
  .fts-search-results {
    width: 100%;
  }
}

/* ── Nav Links ─────────────────────────────────────── */
.fts-nav a {
  font-size: 0.825rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  padding: 4px 2px;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
}
.fts-nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  border-radius: 1px;
  transition: width 0.25s ease;
}
.fts-nav a:hover,
.fts-nav a.current-menu-item {
  color: #fff;
}
.fts-nav a:hover::after,
.fts-nav a.current-menu-item::after {
  width: 100%;
}

/* ── Hero ──────────────────────────────────────────── */
.fts-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #12103a 0%, #0a0a0f 100%);
}
.fts-hero img.custprofpic-profile-avatar {
  opacity: 1;
  position: relative;
  z-index: 6;
  border-radius: 50%;
  max-width: 32px;
}
.fts-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.fts-hero:hover img {
  transform: scale(1);
}
.fts-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 15, 1) 0%,
    rgba(10, 10, 15, 0.6) 40%,
    rgba(10, 10, 15, 0.2) 100%
  );
}
.fts-hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  align-items: flex-start;
}
.fts-hero-content > * {
  position: relative;
  z-index: 2;
}

/* ── Badge ─────────────────────────────────────────── */
.fts-badge-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.fts-badge-featured::before {
  content: "●";
  font-size: 0.5rem;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ── Category Pills ────────────────────────────────── */
.fts-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.fts-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #1e1e2e;
  background: #13131c;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.fts-filter-tab:hover,
.fts-filter-tab.active {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
}
.fts-filter-tab.active {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
}

/* ── Cards ─────────────────────────────────────────── */
.fts-card {
  background: #13131c;
  border: 1px solid #1e1e2e;
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.3s,
    box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.fts-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(124, 58, 237, 0.1);
}
.fts-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.fts-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fts-card:hover .fts-card-img img {
  transform: scale(1.06);
}
.fts-card-body {
  padding: 1.1rem 1.1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Card Actions ─────────────────────────────────── */
.fts-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
}
.fts-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1e1e2e;
  border: 1px solid #2a2a3e;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}
.fts-icon-btn:hover,
.fts-icon-btn.bookmarked {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

/* ── Buttons ───────────────────────────────────────── */
.fts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.fts-btn-primary {
  background: #fff;
  color: #0a0a0f;
}
.fts-btn-primary:hover {
  background: #e2e8f0;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.fts-btn-purple {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
}
.fts-btn-purple:hover {
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.5);
}
.fts-btn-outline {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #1e1e2e;
}
.fts-btn-outline:hover {
  border-color: #7c3aed;
  color: #7c3aed;
}

/* ── Newsletter Section ───────────────────────────── */
.fts-newsletter {
  background: linear-gradient(135deg, #1a0f3c 0%, #0f1545 50%, #1a0f3c 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.fts-newsletter::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(124, 58, 237, 0.3),
    transparent 70%
  );
  pointer-events: none;
}
.fts-email-input {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  transition: border-color 0.2s;
}
.fts-email-input:focus-within {
  border-color: rgba(124, 58, 237, 0.6);
}
.fts-email-input input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.875rem;
}
.fts-email-input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.fts-email-input button {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9999px;
  margin: 4px;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.fts-email-input button:hover {
  background: #6d28d9;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

/* ── Article Prose ─────────────────────────────────── */
.fts-prose {
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 1.0625rem;
}
.fts-prose h1,
.fts-prose h2,
.fts-prose h3,
.fts-prose h4 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: #fff;
  margin: 2em 0 0.75em;
}
.fts-prose h2 {
  font-size: 1.5rem;
}
.fts-prose h3 {
  font-size: 1.25rem;
}
.fts-prose p {
  margin-bottom: 1.5em;
}
.fts-prose a {
  color: #8b5cf6;
  text-decoration: underline;
}
.fts-prose a:hover {
  color: #a78bfa;
}
.fts-prose blockquote {
  border-left: 3px solid #7c3aed;
  padding-left: 1.25rem;
  margin: 2em 0;
  color: #94a3b8;
  font-style: italic;
}
.fts-prose code {
  background: #1e1e2e;
  color: #8b5cf6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}
.fts-prose pre {
  background: #13131c;
  border: 1px solid #1e1e2e;
  padding: 1.25rem;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 1.5em;
}
.fts-prose pre code {
  background: none;
  color: #e2e8f0;
  padding: 0;
}
.fts-prose img {
  border-radius: 10px;
  width: 100%;
  margin: 1.5em 0;
}
.fts-prose ul,
.fts-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}
.fts-prose li {
  margin-bottom: 0.4em;
}

/* ── Animations ────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fts-fade-up {
  animation: fadeUp 0.55s ease both;
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}
.fts-skeleton {
  background: linear-gradient(90deg, #13131c 25%, #1e1e2e 50%, #13131c 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
}

/* ── Glow border ───────────────────────────────────── */
.fts-glow {
  position: relative;
}
.fts-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(135deg, #7c3aed, #3b82f6, #7c3aed);
  opacity: 0;
  transition: opacity 0.3s;
}
.fts-glow:hover::before {
  opacity: 1;
}

/* ── Footer ────────────────────────────────────────── */
footer {
  background: #0a0a0f;
  border-top: 1px solid #1e1e2e;
}

/* ── Pagination ────────────────────────────────────── */
.fts-pagination {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.fts-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.fts-pagination .page-numbers:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.fts-pagination .page-numbers.current {
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.fts-pagination .page-numbers.prev,
.fts-pagination .page-numbers.next {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fts-pagination .page-numbers.dots {
  background: none;
  border-color: transparent;
  padding: 0;
  min-width: 20px;
  cursor: default;
}

.fts-pagination .page-numbers.dots:hover {
  transform: none;
  box-shadow: none;
}

/* Support for list output (if needed) */
.fts-pagination ul.page-numbers {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 640px) {
  .fts-pagination .page-numbers:not(.prev):not(.next):not(.current) {
    display: none;
  }
}

/* ── Tags ──────────────────────────────────────────── */
.fts-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid #1e1e2e;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s;
}
.fts-tag:hover {
  border-color: #7c3aed;
  color: #8b5cf6;
  background: rgba(124, 58, 237, 0.08);
}

/* ── Mobile nav ────────────────────────────────────── */
#fts-mobile-menu {
  display: none;
}
#fts-mobile-menu.open {
  display: block;
}

/* ═══════════════════════════════════════════════════════
   Comments Section
   ═══════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────── */
#comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #1e1e2e;
}

.comments-title {
  font-family: "Sora", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comments-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  border-radius: 2px;
  background: linear-gradient(#7c3aed, #6366f1);
  flex-shrink: 0;
}

/* ── Comment list ──────────────────────────────────────── */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 1.5rem;
  border-left: 1px solid #1e1e2e;
  padding-left: 1.25rem;
}

@media (min-width: 640px) {
  .comment-list .children {
    margin-left: 2.5rem;
    padding-left: 1.75rem;
  }
}

/* ── Single comment ───────────────────────────────────── */
.comment {
  margin-bottom: 1.5rem;
}

.comment-body {
  background: #13131c;
  border: 1px solid #1e1e2e;
  border-radius: 14px;
  padding: 1.25rem;
  position: relative;
  transition: border-color 0.2s;
}
.comment-body:hover {
  border-color: rgba(124, 58, 237, 0.25);
}

/* ── Comment header ───────────────────────────────────── */
.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

/* ── Avatar ───────────────────────────────────────────── */
.comment-author .avatar,
.comment-author img.avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: 2px solid #1e1e2e !important;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* ── Author name + date ───────────────────────────────── */
.comment-meta {
  flex: 1;
  min-width: 0;
}

.comment-author .fn {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.comment-author .fn:hover {
  color: #8b5cf6;
}
.comment-author .fn a {
  color: inherit;
  text-decoration: none;
}
.comment-author .fn a:hover {
  color: #8b5cf6;
}

.comment-metadata {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2px;
}
.comment-metadata a {
  font-size: 0.72rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.comment-metadata a:hover {
  color: #9ca3af;
}
.comment-metadata .edit-link {
  font-size: 0.72rem;
  color: #4b5563;
}
.comment-metadata .edit-link a {
  color: inherit;
}
.comment-metadata .edit-link a:hover {
  color: #7c3aed;
}

/* ── By-post-author badge ─────────────────────────────── */
.bypostauthor > .comment-body {
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, #13131c, #150f2e);
}
.bypostauthor .fn::after {
  content: "Author";
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: middle;
}

/* ── Comment text ─────────────────────────────────────── */
.comment-content {
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.75;
}
.comment-content p {
  margin-bottom: 0.75em;
}
.comment-content p:last-child {
  margin-bottom: 0;
}
.comment-content a {
  color: #8b5cf6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.comment-content a:hover {
  color: #a78bfa;
}
.comment-content ul,
.comment-content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75em;
}
.comment-content blockquote {
  border-left: 2px solid #7c3aed;
  padding-left: 1rem;
  color: #6b7280;
  font-style: italic;
  margin: 0.75em 0;
}

/* ── Awaiting moderation ──────────────────────────────── */
.comment-awaiting-moderation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 0.5rem;
}
.comment-awaiting-moderation::before {
  content: "◉";
  font-size: 0.5rem;
}

/* ── Reply link ───────────────────────────────────────── */
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid #1e1e2e;
  border-radius: 6px;
  background: #0a0a0f;
  transition: all 0.2s;
}
.comment-reply-link::before {
  content: "↩";
  font-size: 0.9em;
}
.comment-reply-link:hover {
  color: #8b5cf6;
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
}

/* ── No comments ──────────────────────────────────────── */
.no-comments {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  background: #13131c;
  border: 1px dashed #1e1e2e;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════════════════
   Comment Form
   ═══════════════════════════════════════════════════════ */

#respond {
  margin-top: 2.5rem;
  background: #13131c;
  border: 1px solid #1e1e2e;
  border-radius: 16px;
  padding: 1.75rem;
}

#reply-title {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Cancel reply link */
#cancel-comment-reply-link {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid #1e1e2e;
  border-radius: 6px;
  transition: all 0.2s;
}
#cancel-comment-reply-link:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

/* Logged-in note */
.comment-notes,
.logged-in-as {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.comment-notes a,
.logged-in-as a {
  color: #8b5cf6;
  text-decoration: none;
}
.comment-notes a:hover,
.logged-in-as a:hover {
  text-decoration: underline;
}

/* Form fields layout */
#respond .comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Two-col for name + email */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
  flex: 1;
}

@media (min-width: 640px) {
  #respond .comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  #respond .comment-form-comment,
  #respond .comment-form-cookies-consent,
  #respond .form-submit {
    grid-column: 1 / -1;
  }
}

/* Labels */
#respond .comment-form label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.4rem;
}

/* All text inputs + textarea */
#respond .comment-form input[type="text"],
#respond .comment-form input[type="email"],
#respond .comment-form input[type="url"],
#respond .comment-form textarea {
  width: 100%;
  background: #0a0a0f;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  padding: 0.65rem 0.875rem;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  color: #e2e8f0;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  resize: vertical;
}
#respond .comment-form input[type="text"]::placeholder,
#respond .comment-form input[type="email"]::placeholder,
#respond .comment-form input[type="url"]::placeholder,
#respond .comment-form textarea::placeholder {
  color: #374151;
}
#respond .comment-form input[type="text"]:focus,
#respond .comment-form input[type="email"]:focus,
#respond .comment-form input[type="url"]:focus,
#respond .comment-form textarea:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Textarea height */
#respond .comment-form-comment textarea {
  min-height: 130px;
}

/* Cookies consent checkbox */
#respond .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
#respond .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  accent-color: #7c3aed;
  cursor: pointer;
  flex-shrink: 0;
}
#respond .comment-form-cookies-consent label {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

/* Submit button */
#respond .form-submit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
#respond .comment-form input[type="submit"],
#respond .comment-form #submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
#respond .comment-form input[type="submit"]:hover,
#respond .comment-form #submit:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
  transform: translateY(-1px);
}
#respond .comment-form input[type="submit"]:active,
#respond .comment-form #submit:active {
  transform: translateY(0);
}

/* ── Comment navigation ───────────────────────────────── */
.comment-navigation,
.comments-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0.875rem 1rem;
  background: #13131c;
  border: 1px solid #1e1e2e;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #6b7280;
}
.comment-navigation .nav-previous a,
.comment-navigation .nav-next a,
.comments-pagination a {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.comment-navigation .nav-previous a:hover,
.comment-navigation .nav-next a:hover,
.comments-pagination a:hover {
  color: #a78bfa;
}
