/* ===== BASE STYLES ===== */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

/* ===== HEADER ===== */
#mainNav {
  background: #101828;
  border: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar-inner {
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav > li > a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.2s;
}

.nav > li > a:hover {
  color: #fff;
  background: transparent;
}

/* ===== SEARCH SECTION ===== */
#docsSearch {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
  padding: 60px 20px 70px !important;
}

#docsSearch h1 {
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 2.25rem !important;
  margin-bottom: 30px !important;
}

#searchBar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  max-width: 600px !important;
  margin: 0 auto !important;
}

#searchBar input.search-query {
  background: #fff !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  flex: 1 !important;
  width: auto !important;
  position: static !important;
}

#searchBar input.search-query:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 4px 20px rgba(59,130,246,0.25) !important;
  outline: none !important;
}

#searchBar button {
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 16px 24px !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.1s !important;
  position: static !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

#searchBar button:hover {
  background: #2563eb !important;
  transform: translateY(-1px) !important;
}

#serp-dd {
  position: absolute !important;
  width: 100% !important;
  left: 0 !important;
}

@media (max-width: 768px) {
  #searchBar button {
    margin-left: 8px !important;
  }
}

/* ===== CATEGORY CARDS ===== */
#contentArea {
  padding: 50px 20px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.category-list {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

@media (max-width: 1100px) {
  .category-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 700px) {
  .category-list {
    grid-template-columns: 1fr !important;
  }
}

.category {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 28px !important;
  padding-left: 90px !important;
  min-height: 120px !important;
  position: relative !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  display: block !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

.category:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 40px rgba(59,130,246,0.15);
  transform: translateY(-4px);
}

.category h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 0;
}

.category p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.category .article-count {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 12px;
}

/* ===== CATEGORY ICONS ===== */
.category::before {
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  border-radius: 12px;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Connections */
#category-4::before {
  content: "\f0c1";
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Risk Management */
#category-15::before {
  content: "\f3ed";
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Tick Audio */
#category-12::before {
  content: "\f028";
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

/* Trade Copier */
#category-10::before {
  content: "\f0ec";
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Release Notes */
#category-8::before {
  content: "\f005";
  background: linear-gradient(135deg, #ec4899, #db2777);
}

/* ===== FOOTER ===== */
footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 30px 20px;
  margin-top: 40px;
}

footer p {
  color: #64748b;
  font-size: 0.875rem;
}

footer a {
  color: #3b82f6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
