:root {
  --primary-color: #2a7854;
  --secondary-color: #d9eee1;
  --background-color: #f0f4f2;
  --text-color: #333333;
  --subtle-text-color: #888;
  --white-color: #ffffff;
  --trend-up-color: #28a745;
  --trend-down-color: #dc3545;
  --border-color: #e0e0e0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #e9ecef; /* Latar belakang luar kontainer */
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  overflow: hidden;
    
}

a {
  text-decoration: none;
  color: inherit;
}

/* ================================== */
/* LAYOUT UTAMA                     */
/* ================================== */
.mobile-container {
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background-color: var(--background-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  /* 90px untuk nav-bottom + ruang aman di bawahnya */
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* ================================== */
/* GAYA HALAMAN DALAM (BUDIDAYA, DLL) */
/* ================================== */

/* Background khusus untuk halaman dalam */
.inner-page-bg {
  background-color: var(--background-color);
}

.inner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 0 1.5rem; /* Padding disesuaikan */
  color: var(--text-color);
}

.inner-header .back-button {
  font-size: 1.8rem;
  color: var(--text-color);
}

.inner-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Judul Sub di bawah header */
.page-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem; /* Padding agar sejajar dengan konten */
}

/* Menyesuaikan padding konten utama di halaman dalam */
.inner-page-bg .main-content {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

/* ================================== */
/* DAFTAR TAHAP BUDIDAYA            */
/* ================================== */
.tahap-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem; /* Padding agar sejajar dengan konten */
}

.tahap-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tahap-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tahap-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0; /* Mencegah gambar menyusut */
}

.tahap-info {
  flex-grow: 1;
}

.tahap-info h3 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.tahap-info h3 b {
  font-weight: 600;
}

.tahap-info p {
  font-size: 0.85rem;
  color: var(--subtle-text-color);
}

.tahap-card iconify-icon {
  font-size: 1.8rem;
  color: var(--subtle-text-color);
}

/* ================================== */
/* HALAMAN TAHAP AWAL         */
/* ================================== */

.inner-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  padding-bottom: 0.5rem;
}

.inner-header .back-button {
  font-size: 1.8rem;
}

.inner-header h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ================================== */
/* NAVIGASI TAB                     */
/* ================================== */
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--subtle-text-color);
  position: relative;
  transition: color 0.3s ease;
}

.tab-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Garis bawah untuk tab aktif */
.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px 3px 0 0;
}

/* ================================== */
/* BAR PENCARIAN                    */
/* ================================== */
.search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}

.search-bar iconify-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--subtle-text-color);
}

.search-bar input {
  width: 100%;
  padding: 14px 14px 14px 50px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  background-color: var(--white-color);
}
.search-bar input::placeholder {
  color: var(--subtle-text-color);
}

/* ================================== */
/* DAFTAR ARTIKEL                   */
/* ================================== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-info {
  flex: 1;
}

.category-tag {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.article-info h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-color);
}

.article-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

/* ================================== */
/* GAYA HALAMAN DETAIL ARTIKEL        */
/* ================================== */

/* Penyesuaian header di halaman artikel */
.article-header {
  padding-bottom: 0;
}

.article-content {
  padding-top: 0;
}

/* Bagian judul dan kategori */
.article-title-section h1 {
  font-size: 1.5rem; /* 24px */
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.article-title-section .category-label {
  font-size: 1rem; /* 16px */
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Gambar utama artikel */
.article-image {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badan atau isi artikel */
.article-body h2 {
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.article-body p {
  font-size: 1rem; /* 16px */
  line-height: 1.7;
  color: #4f4f4f; /* Warna teks sedikit lebih lembut */
  margin-bottom: 2rem;
  text-align: justify;
}

/* ================================== */
/* GAYA TAB & TRANSISI HALUS          */
/* ================================== */
.content-wrapper {
  position: relative;
  margin-top: 1.5rem;
}

.tab-content {
  /* Atur transisi untuk opacity dan transform */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Sembunyikan tab yang tidak aktif */
.tab-content:not(.active) {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

/* Tampilkan tab yang aktif */
.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ================================== */
/* GAYA DAFTAR VIDEO                  */
/* ================================== */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.video-card {
  display: block;
  background-color: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.video-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9; /* Menjaga rasio gambar thumbnail */
  object-fit: cover;
}

.video-details {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
}

.video-details iconify-icon {
  font-size: 2.5rem; /* 40px */
  color: var(--subtle-text-color);
  margin-top: -2px;
}

.video-text h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.1rem;
}

.video-text p {
  font-size: 0.875rem;
  color: var(--subtle-text-color);
}

/* ================================== */
/* GAYA FLOATING ACTION BUTTON (FAB)  */
/* ================================== */

.fab-artikel,
.fab-video {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(42, 120, 84, 0.4);
  z-index: 10;
  opacity: 0; /* Sembunyikan secara default */
  transform: translateY(20px) scale(0.9);
  pointer-events: none; /* Tombol tidak bisa diklik saat tersembunyi */
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Tampilkan FAB Video saat tab video aktif */
.mobile-container.video-tab-active .fab-video {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Tombol bisa diklik lagi */
}

/* Tampilkan FAB Artikel saat tab artikel aktif */
.mobile-container.artikel-tab-active .fab-artikel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Efek hover untuk kedua tombol */
.fab-artikel:hover,
.fab-video:hover {
  transform: scale(1.05);
}

.fab-artikel iconify-icon,
.fab-video iconify-icon {
  font-size: 1.4rem;
}

/* ================================== */
/* GAYA HALAMAN PEMUTAR VIDEO         */
/* ================================== */

/* Layout utama tanpa padding */
.main-content-full {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 90px; /* Ruang untuk FAB */
}

/* Wrapper untuk video player */
.video-player-wrapper {
  position: sticky; /* Membuat elemen menempel */
  top: 0; /* Menempel di bagian paling atas */
  z-index: 10; /* Memastikan video player selalu di atas konten lain */
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image: url("https://placehold.co/400x225/7ca982/333?text=Video");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.back-button-video {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.8rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.video-overlay-icon {
  font-size: 4rem;
  background-color: rgba(0, 0, 0, 0.4);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Kontainer untuk info di bawah video */
.video-info-container {
  padding: 1.5rem;
}

.video-info-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.upload-info {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.video-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hashtags span {
  color: var(--primary-color);
  font-weight: 500;
}

/* Info Pengupload */
.uploader-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.uploader-info iconify-icon {
  font-size: 2.5rem;
  color: var(--subtle-text-color);
}

.uploader-info span {
  font-weight: 600;
  font-size: 1rem;
}

/* Bagian Komentar */
.comments-section {
  margin-top: 1.5rem;
  background-color: var(--secondary-color);
  padding: 1rem;
  border-radius: 12px;
}

.comment-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.comment-input-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-input-box iconify-icon {
  font-size: 1.8rem;
  color: var(--subtle-text-color);
}

.comment-input-box input {
  width: 100%;
  border: none;
  background-color: var(--white-color);
  padding: 0.75rem;
  border-radius: 2rem;
  font-family: "Poppins", sans-serif;
}

/* Bagian video terkait */
.related-videos {
  padding: 1.5rem;
}

/* ================================== */
/* GAYA HALAMAN FORM UPLOAD           */
/* ================================== */

/* Area Upload Video */
.video-upload-box {
  background-color: #f5f5f5;
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.video-upload-box iconify-icon {
  font-size: 3rem;
  color: var(--subtle-text-color);
  margin-bottom: 0.5rem;
}

.video-upload-box p {
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #eaf6f0;
  color: var(--primary-color);
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.2rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-gallery:hover {
  background-color: #d9eee1;
}

/* Grup Form dan Elemen Input */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(42, 120, 84, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Kustomisasi Dropdown (Select) */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "\25BC"; /* Unicode for down arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
  color: var(--subtle-text-color);
}

.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Footer dan Tombol Submit */
.form-footer {
  padding: 1rem 1.5rem;
  background-color: var(--white-color);
  border-top: 1px solid var(--border-color);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-submit:hover {
  background-color: #225e43; /* Warna sedikit lebih gelap saat hover */
}

/* ================================== */
/* GAYA MODAL KOMENTAR                */
/* ================================== */
/* ================================== */
/* PERBAIKAN TRIGGER KOMENTAR         */
/* ================================== */

/* Jadikan area komentar sebagai acuan posisi dan beri ikon pointer */
.js-comment-trigger {
  position: relative;
  cursor: pointer;
}

/* Ini adalah lapisan tak terlihat yang akan menangkap klik */
.js-comment-trigger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Pastikan lapisan ini ada di atas elemen lain di dalamnya */
}

.comment-modal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 73%;
  background-color: var(--white-color);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

/* State saat modal terbuka */
.comment-modal.is-open {
  transform: translateY(0);
}

/* Mencegah scroll di background saat modal terbuka */
body.modal-open {
  overflow: hidden;
}

/* Header Modal */
.modal-header {
  padding: 0.75rem 1.5rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}
.grabber {
  width: 40px;
  height: 5px;
  background-color: var(--border-color);
  border-radius: 2.5px;
  display: block;
  margin: 0 auto 0.75rem;
}
.comment-count {
  font-size: 1rem;
  font-weight: 600;
}
.close-modal-btn {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--subtle-text-color);
  cursor: pointer;
}

/* Body & Daftar Komentar */
.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.comment-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.avatar {
  font-size: 2.5rem;
  color: var(--subtle-text-color);
  flex-shrink: 0;
}

.avatar,
.avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0; /* Warna fallback jika gambar gagal dimuat */
}

.avatar-small {
  width: 32px;
  height: 32px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--subtle-text-color);
  margin-top: 0.25rem;
}
.reply-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--subtle-text-color);
  cursor: pointer;
}
.view-replies-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--subtle-text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.view-replies-btn .line {
  width: 30px;
  height: 1px;
  background-color: var(--border-color);
}
.view-replies-btn iconify-icon {
  transition: transform 0.3s ease;
}

/* Animasi untuk balasan komentar */
.replies-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  padding-left: 1rem; /* Indentasi untuk balasan */
  margin-top: 1rem;
}
.comment-item.replies-visible .replies-container {
  max-height: 500px; /* Nilai besar agar semua konten muat */
}
.comment-item.replies-visible .view-replies-btn iconify-icon {
  transform: rotate(180deg);
}

/* Footer Modal */
.modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--white-color);
}
.modal-footer input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  background-color: #f5f5f5;
  border-radius: 2rem;
  padding: 0.75rem 1rem;
}
.send-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* ================================== */
/* GAYA FOTO PROFIL DI KARTU VIDEO    */
/* ================================== */

.video-details .avatar-video-card {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0; /* Mencegah gambar mengecil */
}

/* ================================== */
/* GAYA BALASAN KOMENTAR              */
/* ================================== */

/* Kontainer untuk form balasan */
.reply-form-container {
  margin-top: 0.75rem;
}

.reply-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.reply-form input[type="text"] {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  background-color: #f5f5f5;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.reply-form button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  flex-shrink: 0;
}

.reply-form .cancel-reply-btn {
  color: var(--subtle-text-color);
}

/* Kontainer untuk daftar balasan */
.replies-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  padding-left: 48px; /* Memberi indentasi pada balasan */
  margin-top: 1rem;
  border-left: 2px solid var(--secondary-color);
}

.comment-item.reply-item {
  margin-bottom: 0.75rem;
}

/* Tombol untuk melihat balasan */
.view-replies-btn {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.view-replies-btn iconify-icon {
  transition: transform 0.3s ease;
}

/* Aturan untuk menampilkan kontainer balasan */
.comment-content.replies-visible .replies-container {
  max-height: 1000px;
}

/* Aturan untuk memutar ikon panah */
.comment-content.replies-visible .view-replies-btn iconify-icon {
  transform: rotate(180deg);
}

.comment-bubble .author-name {
  font-weight: 600; /* Membuat teks menjadi tebal (semi-bold) */
  display: block; /* Memastikan nama berada di barisnya sendiri */
  margin-bottom: 0.25rem;
}

/* ================================== */
/* GAYA MENU AKSI KOMENTAR (HAPUS)    */
/* ================================== */

/* Pastikan .comment-item bisa menjadi acuan posisi */
.comment-item {
  position: relative;
}

/* Wrapper untuk tombol titik tiga */
.comment-actions {
  position: absolute;
  top: 0;
  right: 0;
}

/* Tombol titik tiga */
.action-btn {
  background: none;
  border: none;
  color: var(--subtle-text-color);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 1.2rem;
}
.action-btn:hover {
  background-color: var(--secondary-color);
}

/* Menu dropdown yang muncul */
.comment-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--white-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  z-index: 10;
  overflow: hidden;
  width: 150px;

  /* Sembunyikan secara default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* State saat menu terlihat */
.comment-menu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Link di dalam menu */
.comment-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--trend-down-color);
}
.comment-menu a:hover {
  background-color: #f5f5f5;
}

/* ================================== */
/* GAYA DETAIL ARTIKEL (MODIFIKASI)   */
/* ================================== */

.title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.title-wrapper h1 {
  margin-bottom: 0; /* Reset margin bawaan */
  flex-grow: 1;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: 5px; /* Sedikit penyesuaian vertikal */
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-icon.edit {
  background-color: #e3f2fd;
  color: #1976d2;
}

.btn-icon.delete {
  background-color: #ffebee;
  color: #c62828;
}

.btn-icon:hover {
  filter: brightness(0.95);
}

/* ================================== */
/* GAYA MODAL KONFIRMASI (REUSE)      */
/* ================================== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}
.confirm-modal-overlay.visible {
  display: flex !important;
}

.confirm-card {
  background: white;
  width: 85%;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: popIn 0.3s ease forwards;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.confirm-icon {
  font-size: 3rem;
  color: var(--trend-down-color);
  margin-bottom: 0.5rem;
}
.confirm-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.confirm-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.confirm-actions {
  display: flex;
  gap: 1rem;
}
.confirm-actions button {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.confirm-actions .btn-secondary {
  background: #eee;
  color: #333;
}
.confirm-actions .btn-danger {
  background: var(--trend-down-color);
  color: white;
}
