/* ========================================================================
   PT DIPA SWANTARA GLOBAL TEKNOLOGI (DSGT)
   CSS Scoped: Swan Page Blog (Cyber-Engineering Dossier Workspace)
   ======================================================================== */

.hud-btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover .hud-btn-arrow,
.btn-hud-primary:hover .hud-btn-arrow,
.btn-outline-cyan:hover .hud-btn-arrow {
  transform: translateX(4px);
}

/* ========================================================================
   TACTICAL HUD FILTER & SEARCH BAR
   ======================================================================== */
.hud-tab-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  transition: all 0.2s ease;
}

.hud-tab-filter:hover {
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.08);
  transform: translateY(-1px);
}

.hud-tab-filter.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, rgba(2, 132, 199, 0.3) 100%);
  color: #ffffff;
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25), inset 0 0 10px rgba(0, 240, 255, 0.1);
  font-weight: 700;
}

.hud-tab-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.hud-tab-filter.active .hud-tab-count {
  background: #00f0ff;
  color: #000000;
}

/* HUD Search Box */
.hud-search-box {
  background: #050911;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hud-search-box:focus-within {
  border-color: #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hud-search-input {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 12px !important;
  padding: 8px 6px !important;
  box-shadow: none !important;
}

.hud-search-input::placeholder {
  color: #64748b;
}

.btn-hud-search {
  background: rgba(0, 240, 255, 0.15) !important;
  border: 1px solid rgba(0, 240, 255, 0.5) !important;
  color: #00f0ff !important;
  font-family: 'Orbitron', monospace !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  padding: 5px 12px !important;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  transition: all 0.2s ease;
}

.btn-hud-search:hover {
  background: #00f0ff !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* ========================================================================
   ARTICLE CARDS & THUMBNAILS
   ======================================================================== */
.blog-card {
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.12);
}

.blog-thumb-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-thumb-img {
  transform: scale(1.08);
}

.blog-thumb-gradient {
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.1) 0%, rgba(5, 11, 20, 0.75) 100%);
}

.featured-thumb-img {
  transition: transform 0.5s ease;
}

.featured-thumb-box:hover .featured-thumb-img {
  transform: scale(1.05);
}

.blog-card-title {
  font-family: 'Space Grotesk', sans-serif;
}

.blog-card-title a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #00f0ff !important;
}

/* Tech Tag Chips */
.tech-tag-chip {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(0, 240, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tech-tag-chip:hover {
  background: rgba(0, 240, 255, 0.15);
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* ========================================================================
   SIDEBAR ITEMS & CHIPS
   ======================================================================== */
.sidebar-card {
  transition: border-color 0.25s ease;
}

.sidebar-card:hover {
  border-color: rgba(0, 240, 255, 0.3) !important;
}

.sidebar-cat-item {
  background: rgba(0, 0, 0, 0.4);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.sidebar-cat-item:hover {
  background: rgba(0, 240, 255, 0.08);
  color: #00f0ff;
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateX(4px);
}

.sidebar-cat-item.active {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  font-weight: 700;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.sidebar-cat-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.sidebar-cat-item.active .sidebar-cat-badge {
  background: #00f0ff;
  color: #000000;
}

.sidebar-tag-chip {
  display: inline-block;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sidebar-tag-chip:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.hud-digest-input {
  background: #050911 !important;
  color: #ffffff !important;
  border: 1px solid rgba(0, 240, 255, 0.3) !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
}

.hud-digest-input:focus {
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

/* HUD Pagination */
.hud-pagination-link {
  background: #050911 !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
  transition: all 0.2s ease;
}

.hud-pagination-link:hover {
  background: rgba(0, 240, 255, 0.15) !important;
  color: #00f0ff !important;
  border-color: #00f0ff !important;
}

.hud-pagination-link.active {
  background: #00f0ff !important;
  color: #000000 !important;
  font-weight: 700 !important;
  border-color: #00f0ff !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ========================================================================
   LIGHT MODE ADAPTATION
   ======================================================================== */
[data-bs-theme="light"] .filter-station {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 0 20px rgba(2, 132, 199, 0.04) !important;
}

/* Category Filter Tabs */
[data-bs-theme="light"] .hud-tab-filter {
  background: #ffffff !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .hud-tab-filter:hover {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15) !important;
  transform: translateY(-1px);
}

[data-bs-theme="light"] .hud-tab-filter.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
  font-weight: 700 !important;
}

/* FIX: Category Count Badge Number Visibility */
[data-bs-theme="light"] .hud-tab-count {
  background: #e2e8f0 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
  font-size: 10px !important;
  padding: 1px 7px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease;
}

[data-bs-theme="light"] .hud-tab-filter:hover .hud-tab-count {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}

[data-bs-theme="light"] .hud-tab-filter.active .hud-tab-count {
  background: #ffffff !important;
  color: #0369a1 !important;
  border-color: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
}

/* FIX: Search Bar & Button Styling */
[data-bs-theme="light"] .hud-search-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
  border-radius: 8px !important;
}

[data-bs-theme="light"] .hud-search-box:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

[data-bs-theme="light"] .hud-search-box .bi-search {
  color: #0284c7 !important;
  font-size: 14px !important;
}

[data-bs-theme="light"] .hud-search-input {
  color: #0f172a !important;
  font-weight: 500 !important;
}

[data-bs-theme="light"] .hud-search-input::placeholder {
  color: #64748b !important;
}

[data-bs-theme="light"] .btn-hud-search {
  background: #0284c7 !important;
  border: 1px solid #0284c7 !important;
  color: #ffffff !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3) !important;
  padding: 6px 16px !important;
  border-radius: 6px !important;
  clip-path: none !important;
  transition: all 0.2s ease !important;
}

[data-bs-theme="light"] .btn-hud-search:hover {
  background: #0369a1 !important;
  border-color: #0369a1 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
  transform: translateY(-1px);
}

/* FIX: HUD Pagination in Light Mode */
[data-bs-theme="light"] .hud-pagination-link {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  clip-path: none !important;
  transition: all 0.2s ease !important;
}

[data-bs-theme="light"] .hud-pagination-link:hover:not(.disabled) {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2) !important;
}

[data-bs-theme="light"] .hud-pagination-link.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35) !important;
}

[data-bs-theme="light"] .page-item.disabled .hud-pagination-link,
[data-bs-theme="light"] .hud-pagination-link.disabled {
  background: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  opacity: 0.6 !important;
  box-shadow: none !important;
}

[data-bs-theme="light"] .blog-pagination-info {
  color: #475569 !important;
}

[data-bs-theme="light"] .blog-pagination-num {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

/* Top Telemetry & Hero */
[data-bs-theme="light"] .blog-hero-telemetry .blog-telemetry-item {
  color: #475569 !important;
}

[data-bs-theme="light"] .blog-hero-telemetry .blog-telemetry-value {
  color: #0284c7 !important;
}

/* Cards & Thumbnails */
[data-bs-theme="light"] .blog-card,
[data-bs-theme="light"] .sidebar-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-bs-theme="light"] .sidebar-card h4,
[data-bs-theme="light"] .sidebar-card h5,
[data-bs-theme="light"] .sidebar-card h6 {
  color: #0f172a !important;
}

[data-bs-theme="light"] .blog-card:hover {
  border-color: rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.12) !important;
}

[data-bs-theme="light"] .blog-card-title a {
  color: #0f172a !important;
}

[data-bs-theme="light"] .blog-card-title a:hover {
  color: #0284c7 !important;
}

[data-bs-theme="light"] .tech-tag-chip {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

[data-bs-theme="light"] .tech-tag-chip:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: #0284c7;
}

[data-bs-theme="light"] .sidebar-cat-item {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

[data-bs-theme="light"] .sidebar-cat-item:hover {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #0284c7;
}

[data-bs-theme="light"] .sidebar-cat-item.active {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #0284c7;
}

[data-bs-theme="light"] .sidebar-cat-badge {
  background: #e2e8f0 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}

[data-bs-theme="light"] .sidebar-cat-item.active .sidebar-cat-badge {
  background: #0284c7 !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .sidebar-tag-chip {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

[data-bs-theme="light"] .sidebar-tag-chip:hover {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #0284c7;
}

[data-bs-theme="light"] .hud-digest-input {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-bs-theme="light"] .hud-digest-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2) !important;
}

[data-bs-theme="light"] .btn-hero-primary,
[data-bs-theme="light"] .btn-hud-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
}

[data-bs-theme="light"] .btn-outline-cyan {
  border-color: rgba(2, 132, 199, 0.4) !important;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.05) !important;
}

[data-bs-theme="light"] .btn-outline-cyan:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
}
