/* ==========================================================================
   Posisi 21 Media / Tipikor — Digital Research Repository
   Modern Vanilla CSS Design System
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --primary: #3a577d;
  --secondary: #203a43;
  --ketiga: #2c5364;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #06b6d4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-page);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1360px;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan {
  background-color: rgba(6, 182, 212, 0.15);
  color: var(--cyan-700);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-muted {
  background-color: var(--bg-muted);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-emerald {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-amber {
  background-color: #fef3c7;
  color: #92400e;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--cyan-500);
  color: #020617;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
  background-color: var(--cyan-400);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-muted);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition:
    background-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
  color: #ffffff;
  padding: 1rem 0;
}

.site-header.solid {
  background-color: var(--primary);
  box-shadow: var(--shadow-xl);
  padding: 0.6rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}

.brand-logo:hover img {
  transform: scale(1.04);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-dashboard-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background-color: rgba(6, 182, 212, 0.18);
  color: #a5f3fc;
  margin-left: 0.75rem;
  backdrop-filter: blur(8px);
}

.btn-dashboard-pill:hover {
  background-color: var(--cyan-400);
  color: #020617;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-drawer {
  display: none;
  background-color: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-drawer .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  padding: 7rem 1.5rem 4rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(32, 58, 67, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.hero-logo {
  height: 120px;
  width: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.4));
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ==========================================================================
   Company Overview Bar
   ========================================================================== */
.overview-section {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: #f8fafc;
  padding: 4rem 0;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: center;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.stat-item {
  border-left: 3px solid var(--cyan-500);
  padding-left: 1rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cards & Article Grid
   ========================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(6, 182, 212, 0.4);
}

.card-thumb {
  position: relative;
  width: 100%;
  height: 200px;
  background-color: #0f172a;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-thumb img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.card-title a:hover {
  color: var(--cyan-600);
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 4.8em; /* 3 lines fallback */
}


.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--cyan-600);
  font-weight: 600;
}

/* ==========================================================================
   Article Detail Page
   ========================================================================== */
.article-detail-wrap {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.article-paper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.article-cover-wrapper {
  margin: 2rem 0;
  width: 100%;
}

.article-cover-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.article-cover-caption {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.825rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: left;
  font-style: italic;
}

.article-excerpt-callout {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  border-left: 4px solid var(--cyan-500);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Article Rich Content (Typography) */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content blockquote {
  border-left: 4px solid var(--cyan-500);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-content pre {
  background-color: #0f172a;
  color: #f8fafc;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.article-content code {
  font-family: var(--font-mono);
  background-color: var(--bg-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

.pdf-download-card {
  margin-top: 3rem;
  background-color: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-label .required {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Alert Boxes */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

/* ==========================================================================
   Dashboard Table & Layout
   ========================================================================== */
.dashboard-wrap {
  padding: 6.5rem 0 4rem;
}

.dashboard-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .dashboard-banner {
    flex-direction: row;
    align-items: center;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.metric-number {
  font-size: 1.85rem;
  font-weight: 800;
  margin-top: 0.5rem;
  color: var(--text-main);
}

.data-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table th {
  background-color: var(--bg-muted);
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: rgba(241, 245, 249, 0.6);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: #cbd5e1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-title {
  color: #ffffff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: var(--cyan-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .article-detail-wrap {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }

  .article-paper {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .article-paper h1.article-title-main {
    font-size: 1.65rem !important;
    line-height: 1.35 !important;
    margin-bottom: 1.25rem !important;
  }

  .article-metadata-bar {
    gap: 0.4rem !important;
    font-size: 0.775rem !important;
    line-height: 1.4 !important;
  }

  .article-cover-img {
    max-height: 280px;
    border-radius: var(--radius-md);
  }

  .article-cover-wrapper {
    margin: 1.25rem 0;
  }

  .article-excerpt-callout {
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .article-content {
    font-size: 0.975rem;
    line-height: 1.75;
  }

  .article-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md);
  }

  .article-content iframe,
  .article-content video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
  }

  .article-content pre {
    padding: 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }

  .article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pdf-download-card {
    margin-top: 2rem;
    padding: 1.25rem;
  }

  .pdf-download-card .btn {
    width: 100%;
    justify-content: center;
  }

  .editorial-attribution-box {
    margin-top: 2rem !important;
    padding: 1rem !important;
    gap: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .editorial-attribution-divider {
    display: none !important;
  }

  .article-share-container {
    margin-top: 2.5rem !important;
    padding-top: 1.5rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .share-buttons-group {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .share-buttons-group .btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.55rem 0.5rem !important;
    font-size: 0.775rem !important;
  }

  .share-buttons-group #btnNativeShare {
    grid-column: 1 / -1 !important;
  }

  /* Komentar Mobile */
  .comments-section {
    margin-top: 2.5rem !important;
    padding-top: 2rem !important;
  }

  .comments-header-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .comments-title {
    font-size: 1.35rem !important;
  }

  .comment-form-card {
    padding: 1.25rem 1rem !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 2rem !important;
  }

  .comment-grid-inputs {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  .comment-item {
    padding: 1.1rem 1rem !important;
  }

  .comment-replies-wrap {
    margin-left: 0.75rem !important;
    padding-left: 0.75rem !important;
    gap: 0.85rem !important;
  }

  .comment-reply-item {
    padding: 0.85rem !important;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}


/* ==========================================================================
   Bagian Komentar & Diskusi Publik (API Komentar Gratis Selamanya)
   ========================================================================== */
.comments-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.comments-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comments-title {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.comment-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.comment-form-card:focus-within {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.comment-grid-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.comment-item:hover {
  border-color: #cbd5e1;
}

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

.comment-author-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  background-color: var(--bg-muted);
}

.comment-author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-badge-admin {
  background: linear-gradient(135deg, #0e7490, #0891b2);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  word-break: break-word;
  white-space: pre-line;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.btn-comment-reply {
  background: none;
  border: none;
  color: var(--cyan-600);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-comment-reply:hover {
  background-color: rgba(6, 182, 212, 0.08);
  color: var(--cyan-700);
}

.comment-replies-wrap {
  margin-top: 1.25rem;
  margin-left: 2rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-reply-item {
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.reply-form-box {
  margin-top: 1rem;
  padding: 1.25rem;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-comments-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
