/* ====== TOMBOL PENCARIAN ====== */
/* Gaya untuk tombol "Cari Artikel" */
.btn-action.search-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: #333232;
  font-weight: 500;
  cursor: pointer;
  border: solid #989797;
  transition: 0.3s ease;
  text-decoration: none;
  background: #f5f7f8; /* Biru muda */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-action.search-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
  background: #a8a8a9; /* Biru tua saat hover */
}

/* Ikon kaca pembesar */
.btn-action.search-btn i {
  color: none;
}

/* Responsif tombol */
@media (max-width: 768px) {
  .btn-text { display: none; }
  .btn-action.search-btn {
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    border: none;
  }
}

/* ====== SEARCH POPUP ====== */
.search-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Latar gelap agar popup terlihat */
  z-index: 9998;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.search-popup.active {
  display: flex;
}

.search-popup-content {
  background: #ffffff;
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.search-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #363739;
}

.search-popup-header h3 {
  font-size: 18px;
  color: #333333;
  font-weight: 500;
}

.search-popup-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s;
}

.search-popup-close:hover {
  color: #333;
}

.search-popup-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #524e4e;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  outline: none;
  transition: border-color 0.2s;
  background: #f9f9f9; /* Latar input sedikit abu-abu */
  color: #333; /* Warna teks */
}

.search-popup-input:focus {
  border-color: #006cd8;
  box-shadow: 0 0 0 2px rgba(0, 108, 216, 0.1);
  background: #fff; /* Latar putih saat fokus */
}

.search-popup-results {
  margin-top: 10px;
}

.search-result-item {
  padding: 12px 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fafafa;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #333;
}

.search-result-item:hover {
  background: #eef7ff;
  border-color: #006cd8;
  transform: translateX(2px);
}

.search-result-title {
  font-size: 15px;
  font-weight: 500;
  color: #0056b3;
  margin: 0;
  line-height: 1.4;
}

.search-result-date {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.search-no-results {
  text-align: center;
  padding: 20px;
  color: #888;
  font-style: italic;
  font-size: 14px;
}

/* Loading Animation */
.search-loading {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 14px;
}

/* Responsif */
@media (max-width: 600px) {
  .search-popup-content {
    padding: 15px;
    margin: 10px;
    border-radius: none;
  }
  .search-popup-input {
    padding: 10px;
    font-size: 13px;
  }
}