/*
 * FB Guide — Category/style.css
 * Design: Minimal · Light Colorful · Professional
 */

/* ===========================
   Language helpers
   =========================== */
.bn-text {
  font-family: 'SolaimanLipi', 'Tiro Bangla', 'Noto Serif Bengali', sans-serif;
}

.en-text a,
.en-text strong {
  font-family: Arial, sans-serif;
  color: #1e88e5;
  text-decoration: none;
}

.en-text a:hover {
  text-decoration: underline;
}

/* ===========================
   Headline cards
   =========================== */
.headline {
  font-family: 'SolaimanLipi', 'Tiro Bangla', Arial, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin: 7px 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e0f2f1;
  border-left: 4px solid #00897b;
  box-shadow: 0 1px 4px rgba(0, 137, 123, 0.07);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2e4057;
  transition: all 0.18s ease;
}

.headline::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00897b;
  flex-shrink: 0;
  opacity: 0.55;
}

.headline:hover {
  background: #f0faf8;
  border-left-color: #00695c;
  border-color: #b2dfdb;
  box-shadow: 0 3px 10px rgba(0, 137, 123, 0.12);
  transform: translateX(3px);
  color: #004d40;
}

.headline:hover::before {
  opacity: 1;
}

.headline.active {
  background: linear-gradient(135deg, #e0f2f1 0%, #f0faf8 100%);
  border-left: 4px solid #00695c;
  border-color: #80cbc4;
  box-shadow: 0 3px 10px rgba(0, 121, 107, 0.14);
  color: #004d40;
}

.headline.hidden-by-search {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
  border: none;
}

/* ===========================
   Article card
   =========================== */
.article {
  display: none;
  position: relative;
  background: #ffffff;
  padding: 44px 18px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  margin-top: 12px;
  border-top: 3px solid #00897b;
  animation: fadeInUp 0.25s ease;
}

.article h3 {
  font-family: 'SolaimanLipi', 'Tiro Bangla', Arial, sans-serif;
  color: #004d40;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 12px;
  word-break: break-word;
  line-height: 1.5;
}

.article p {
  font-family: 'SolaimanLipi', 'Tiro Bangla', Arial, sans-serif;
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.75;
  color: #374151;
}

/* ===========================
   Back Button
   =========================== */
.back-btn {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 50;
  background: rgba(0, 137, 123, 0.07);
  border: 1px solid rgba(0, 137, 123, 0.15);
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #00796b;
  margin: 0;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.back-btn:hover {
  background: rgba(0, 137, 123, 0.14);
  color: #004d40;
  border-color: rgba(0, 137, 123, 0.3);
}

.back-btn .bi,
.back-btn i {
  line-height: 1;
  font-size: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* ===========================
   Link & Copy Buttons
   =========================== */
.link-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.18s ease;
}

.link-container:hover {
  box-shadow: 0 3px 10px rgba(0, 137, 123, 0.15);
}

.link-btn {
  background: linear-gradient(135deg, #00897b, #00796b);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  flex-grow: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: 0.2px;
  transition: background 0.18s ease;
}

.link-btn:hover {
  background: linear-gradient(135deg, #00695c, #004d40);
  color: #ffffff;
}

.copy-btn {
  background: #f0faf8;
  color: #00796b;
  padding: 11px 14px;
  border: none;
  border-left: 1px solid #b2dfdb;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.copy-btn i {
  font-size: 0.95rem;
}

.copy-btn:hover {
  background: #b2dfdb;
  color: #004d40;
}

/* ===========================
   Toast
   =========================== */
.toast-message {
  position: fixed;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 77, 64, 0.92);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.87rem;
  font-family: 'SolaimanLipi', Arial, sans-serif;
  opacity: 0.96;
  transition: opacity 0.4s ease;
  z-index: 9999;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* ===========================
   Title Search UI
   =========================== */
.cat-search-wrap {
  margin-bottom: 14px;
}

.cat-search-input-group {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border: 1.5px solid #e0f2f1;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cat-search-input-group:focus-within {
  border-color: #00897b;
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.cat-search-input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: none;
  background: #ffffff;
  font-size: 0.9rem;
  outline: none;
  font-family: 'SolaimanLipi', Arial, sans-serif;
  color: #1f2d3d;
}

.cat-search-input::placeholder {
  color: #9aa5b4;
}

.cat-search-btn {
  height: 46px;
  padding: 0 20px;
  background: linear-gradient(135deg, #00897b, #00696b);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}

.cat-search-btn:hover {
  background: linear-gradient(135deg, #00695c, #004d40);
}

.cat-search-info {
  min-height: 20px;
  font-size: 0.8rem;
  color: #9aa5b4;
  margin-top: 6px;
  padding-left: 4px;
  font-family: 'SolaimanLipi', Arial, sans-serif;
}

.title-search-mark {
  background: rgba(0, 137, 123, 0.13);
  color: #00695c;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 700;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
