/* ❖ Latest Intel / 最新情報 — Averil0814 ❖ */

#latest-intel {
  padding: 100px 4vw;
}
.ni-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ni-subtitle {
  text-align: center;
  color: #7d93a8;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-top: -18px;
}

/* ── 卡片網格 ── */
.ni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 46px;
}

.ni-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(13, 26, 38, 0.78);
  border: 1px solid var(--glass-border);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.ni-card:hover {
  transform: translateY(-4px);
  border-color: var(--hud-blue);
  box-shadow: 0 0 34px rgba(0, 207, 255, 0.12);
}
/* 置頂：橫跨兩欄的頭條 */
.ni-card.ni-pinned {
  border-color: rgba(245, 166, 35, 0.45);
}
.ni-card.ni-pinned:hover {
  border-color: var(--hud-amber);
  box-shadow: 0 0 34px rgba(245, 166, 35, 0.15);
}
@media (min-width: 900px) {
  .ni-card.ni-pinned {
    grid-column: span 2;
    flex-direction: row;
  }
  .ni-card.ni-pinned .ni-media { width: 46%; height: auto; }
  .ni-card.ni-pinned .ni-title { font-size: 1.5rem; }
}

/* ── 圖 ── */
.ni-media {
  position: relative;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--panel-dark);
}
.ni-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.6s, filter 0.4s;
}
.ni-card:hover .ni-media img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.1);
}
.ni-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 20, 0.85), transparent 55%);
  pointer-events: none;
}

/* ── 內文 ── */
.ni-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ni-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ni-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid currentColor;
  line-height: 1.4;
}
.ni-tag-amber { color: var(--hud-amber); }
.ni-tag-red   { color: var(--hud-red);   }
.ni-tag-blue  { color: var(--hud-blue);  }
.ni-tag-green { color: var(--hud-green); }

.ni-date {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #6d8296;
}
.ni-new {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #04060a;
  background: var(--hud-green);
  padding: 2px 7px;
  animation: niBlink 2.4s infinite;
}
@keyframes niBlink { 0%, 70%, 100% { opacity: 1; } 85% { opacity: 0.35; } }
.ni-pin { margin-left: auto; font-size: 0.85rem; opacity: 0.8; }

.ni-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.35;
  color: #eaf4ff;
  margin-bottom: 10px;
}
.ni-summary {
  color: #9fb3c6;
  font-size: 0.92rem;
  line-height: 1.75;
}

.ni-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.ni-meta li {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #8fa6ba;
  background: var(--glass);
  border: 1px solid rgba(0, 207, 255, 0.14);
  padding: 3px 9px;
}

/* ── 完整任務簡報（可收合）── */
.ni-brief {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 207, 255, 0.14);
  padding-top: 14px;
}
.ni-brief-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hud-amber);
  transition: color 0.25s;
}
.ni-brief-toggle::-webkit-details-marker { display: none; }
.ni-brief-toggle::before {
  content: '▸';
  transition: transform 0.25s;
  display: inline-block;
}
.ni-brief[open] .ni-brief-toggle::before { transform: rotate(90deg); }
.ni-brief-toggle:hover { color: #fff; }

.ni-brief-body {
  margin-top: 16px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 207, 255, 0.35) transparent;
}
.ni-brief-body::-webkit-scrollbar { width: 6px; }
.ni-brief-body::-webkit-scrollbar-thumb { background: rgba(0, 207, 255, 0.35); }

.ni-sec + .ni-sec { margin-top: 20px; }
.ni-sec-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--hud-blue);
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--hud-blue);
}
.ni-sec p {
  color: #9fb3c6;
  font-size: 0.88rem;
  line-height: 1.85;
}
.ni-sec ul {
  list-style: none;
  margin-top: 8px;
}
.ni-sec li {
  position: relative;
  padding-left: 16px;
  color: #93a9bd;
  font-size: 0.86rem;
  line-height: 1.8;
}
.ni-sec li + li { margin-top: 6px; }
.ni-sec li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--hud-amber);
}

/* ── CTA ── */
.ni-cta {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--hud-blue);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
}
.ni-cta:hover { color: #fff; gap: 12px; }
.ni-cta-arrow { font-size: 1.2rem; line-height: 1; }
.ni-pinned .ni-cta { color: var(--hud-amber); }

/* ── 機翻提示 ── */
.ni-mt-note {
  margin-top: 26px;
  text-align: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #5d7186;
}
.ni-mt-note::before { content: '⌁ '; color: var(--hud-blue); }

@media (max-width: 640px) {
  #latest-intel { padding: 70px 5vw; }
  .ni-grid { grid-template-columns: 1fr; gap: 20px; }
  .ni-media { height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .ni-card, .ni-media img, .ni-cta { transition: none; }
  .ni-new { animation: none; }
}
