/* =============================================
   The Hackers Log — Custom Navbar Plugin CSS
   Version: 1.0.0
   ============================================= */

* { box-sizing: border-box; }

/* ── TOP ANNOUNCEMENT BAR ── */
.thl-topbar {
  background: #2b2d42;
  padding: 7px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.thl-topbar-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7ed321;
  flex-shrink: 0;
  animation: thl-blink 2s infinite;
}
@keyframes thl-blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.thl-topbar p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #a0a8b8;
  letter-spacing: 0.08em;
  margin: 0;
}
.thl-topbar p b { color: #7ed321; }

/* ── MAIN NAV ── */
.thl-nav {
  background: #ffffff;
  border-bottom: 3px solid #7ed321;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
}
.thl-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* ── LOGO ── */
.thl-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.thl-logo-img {
  width: 50px; height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #2b2d42;
}
.thl-logo-name {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #2b2d42;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.thl-logo-name span { color: #7ed321; }
.thl-logo-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: #999;
  letter-spacing: 0.1em;
  margin-top: 3px;
  display: block;
}

/* ── NAV LINKS ── */
.thl-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none !important;
  margin: 0; padding: 0;
}
.thl-links li { margin: 0; padding: 0; }
.thl-links li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a5a !important;
  text-decoration: none !important;
  padding: 7px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.thl-links li a:hover {
  color: #2b2d42 !important;
  background: #f4f4f4;
}
.thl-links li.active a {
  color: #2b2d42 !important;
  font-weight: 700;
}
.thl-links li.active a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 15px; right: 15px;
  height: 2px;
  background: #7ed321;
  border-radius: 2px;
}
.thl-badge {
  font-size: 10px;
  font-weight: 700;
  background: #eaffd6;
  color: #4a8c00;
  padding: 2px 7px;
  border-radius: 20px;
}

/* ── RIGHT SIDE ── */
.thl-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.thl-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 13px;
  cursor: text;
  transition: border-color 0.15s;
}
.thl-search-box:hover { border-color: #7ed321; }
.thl-search-box i { color: #aaa; font-size: 15px; }
.thl-search-box input {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #4a4a5a;
  outline: none;
  width: 110px;
}
.thl-search-box input::placeholder { color: #bbb; }
.thl-search-box span { font-size: 13px; color: #bbb; }

.thl-btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #7ed321;
  color: #1a1a2e !important;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.thl-btn-sub:hover { background: #6bc41a; transform: translateY(-1px); color: #1a1a2e !important; }
.thl-btn-sub:active { transform: translateY(0); }

.thl-hamburger {
  display: none;
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  color: #4a4a5a;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── MOBILE MENU ── */
.thl-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 3px solid #7ed321;
}
.thl-mobile-menu.open { display: block; }
.thl-mobile-menu ul {
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 12px 0;
  padding: 0;
}
.thl-mobile-menu ul li { margin: 0; padding: 0; }
.thl-mobile-menu ul li a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #4a4a5a !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.thl-mobile-menu ul li a:hover { color: #2b2d42 !important; background: #f4f4f4; }
.thl-mobile-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #7ed321;
  color: #1a1a2e !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  text-decoration: none !important;
}

/* ── PUSH PAGE CONTENT DOWN ── */
body.thl-active { padding-top: 0 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .thl-links, .thl-search-box { display: none; }
  .thl-hamburger { display: flex; }
  .thl-logo-tag { display: none; }
  .thl-nav { padding: 0 1rem; }
  .thl-topbar { padding: 6px 1rem; }
  .thl-topbar p { font-size: 10px; }
}
@media (max-width: 480px) {
  .thl-logo-name { font-size: 14px; }
  .thl-logo-img { width: 40px; height: 40px; }
}
