/* =====================================================
   AIVP Blog — Feature 006 styles
   Supplements public/css/style.css (neoh_fn_* theme)
   ===================================================== */

/* ------- Category Badges ------- */
.fn_category_badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 2px 10px;
  color: #fff;
  margin-bottom: 6px;
}

.fn_badge_product  { background-color: #3b82f6; }
.fn_badge_funding  { background-color: #22c55e; }
.fn_badge_policy   { background-color: #ef4444; }
.fn_badge_research { background-color: #a855f7; }
.fn_badge_industry { background-color: #f97316; }
.fn_badge_other    { background-color: #6b7280; }

/* ------- Tag Pills ------- */
.fn_tags_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.fn_tag_pill {
  display: inline-block;
  font-size: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  padding: 2px 9px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

/* ------- Search Input ------- */
.neoh_fn_search_wrap {
  margin-bottom: 20px;
}

.neoh_fn_search_input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  padding: 8px 4px;
  outline: none;
  transition: border-color 0.2s;
}

.neoh_fn_search_input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.neoh_fn_search_input:focus {
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ------- Category Filter Tabs ------- */
.neoh_fn_category_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.neoh_fn_category_tabs li a {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.neoh_fn_category_tabs li a:hover,
.neoh_fn_category_tabs li a.current {
  background-color: #fff;
  border-color: #fff;
  color: #111;
}

/* ------- Loading Wrapper ------- */
.fn_loading_wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  min-height: 200px;
}

/* ------- Error / Empty State ------- */
.fn_error_msg,
.fn_empty_msg {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1rem;
  padding: 40px 0;
}

/* ------- Key Takeaways ------- */
.fn_takeaways {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 6px 6px 0;
}

.fn_takeaways h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.fn_takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fn_takeaways ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fn_takeaways ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
}

/* ------- Audio / Video Players ------- */
.neoh_fn_audio_player {
  margin: 28px 0;
}

.neoh_fn_audio_player audio {
  width: 100%;
  border-radius: 6px;
  /* Override browser default for dark theme where supported */
  accent-color: #fff;
}

.neoh_fn_video_player {
  margin: 28px 0;
}

.neoh_fn_video_player video {
  width: 100%;
  max-height: 480px;
  border-radius: 6px;
  background: #000;
}

/* ------- Roundup Page ------- */
.neoh_fn_roundup_header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neoh_fn_roundup_header .fn_roundup_date {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
}

.neoh_fn_roundup_header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}

.neoh_fn_roundup_header p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.neoh_fn_roundup_posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.neoh_fn_roundup_posts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.neoh_fn_roundup_posts li a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}

.neoh_fn_roundup_posts li a:hover {
  color: #fff;
}

/* ------- Related posts: make entire card clickable ------- */
.neoh_fn_widget_articles .item {
  position: relative;
  cursor: pointer;
}

.neoh_fn_widget_articles .item a.full_link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ------- Loading Skeleton (Drops) ------- */
@keyframes fn_skeleton_shimmer {
  0%   { opacity: 0.4; }
  50%  { opacity: 0.8; }
  100% { opacity: 0.4; }
}

.fn_skeleton_pulse {
  animation: fn_skeleton_shimmer 1.4s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.fn_skeleton_img {
  width: 100%;
  padding-top: 75%; /* 4:3 aspect ratio placeholder */
}

.fn_skeleton_line {
  display: block;
}

/* ------- News Card Grid Alignment ------- */
/* Make each card a flex column so Read More stays at the bottom */
.neoh_fn_moving_blog li:not(.icons-li) {
  display: flex;
}

.neoh_fn_moving_blog .item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.neoh_fn_moving_blog .img_holder {
  height: 200px;
  overflow: hidden;
  margin-bottom: 0;
}

.neoh_fn_moving_blog .img_holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.neoh_fn_moving_blog .fn_title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.neoh_fn_moving_blog .fn_desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.neoh_fn_moving_blog .fn_tags_wrap {
  max-height: 30px;
  overflow: hidden;
}

.neoh_fn_moving_blog .fn_read {
  margin-top: auto;
  padding-top: 12px;
}

/* ------- Responsive ------- */
@media (max-width: 600px) {
  .neoh_fn_category_tabs {
    gap: 6px;
  }

  .neoh_fn_category_tabs li a {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}
