/* ===============================
   Q&A Network - Analytics Theme
   Data Blue Color Palette
   =============================== */

:root {
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;

  --bs-body-color: #0f172a;
  --bs-body-bg: #f8fafc;
}

/* Body */
body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
}
header a {
  text-decoration: none !important;
  color: #0f172a;
}
header a:hover {
  color: var(--bs-primary);
}
header img {
  width: 40px;
  height: 40px;
}
header .fs-5 {
  font-weight: 600;
}
header small {
  font-size: 0.9rem;
  color: #475569;
  opacity: 0.8;
}
header nav a.active {
  color: var(--bs-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--bs-primary);
}

/* Buttons */
.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #1e40af !important;
  border-color: #1e40af !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
}

/* Search Box */
.search-box input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.15rem rgba(59,130,246,0.25);
}

/* Cards */
.question-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
}
.question-card a {
  text-decoration: none !important;
  color: var(--bs-primary);
}
.question-card a:hover {
  color: #1e40af;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: #fff !important;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
footer a {
  color: #fff !important;
}
footer a:hover {
  color: #dbeafe !important;
}

/* ==========================================================
   SIGNATURE TAG DISPLAY STYLE — COLORS MAY CHANGE
   ========================================================== */
.tag-link {
  border-bottom: 2px dotted var(--bs-dark);
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  margin-right: .75rem;
  display: inline-block;
}
.tag-link:hover {
  color: var(--bs-primary);
  border-bottom-color: var(--bs-primary);
  font-weight: 500;
}

/* ==========================================================
   SIGNATURE PAGINATION STYLE — COLORS MAY CHANGE
   ========================================================== */
.pagination {
  margin: 1.5rem 0 2.5rem !important;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.pagination .page-link {
  color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.9rem !important;
  background-color: #fff !important;
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none !important;
}

.pagination .page-link:hover {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-color: var(--bs-primary) !important;
}

.pagination .page-item.active .page-link {
  background-color: #1e40af !important;
  border-color: #1e40af !important;
  color: #fff !important;
  font-weight: 600;
  pointer-events: none;
}

.pagination .page-item.disabled .page-link {
  color: #9ca3af !important;
  background-color: #e5e7eb !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
}

.pagination .page-link:focus {
  outline: none !important;
  box-shadow: 0 0 0 0.2rem rgba(59,130,246,0.25) !important;
}

/* ==========================================================
   MAIN CONTENT LINK STYLE
   Default: dark links for readability
   Hover:   brand color for consistency
   ========================================================== */
main a {
  color: #0f172a !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

main a:hover,
main a:focus {
  color: var(--bs-primary) !important;
  text-decoration: none;
}

/* ==========================================================
   FIX: Vendor Backlink Button Color Override
   ========================================================== */
.vendor-links a.btn,
.vendor-links a.btn-dark,
.vendor-links a.btn-secondary {
  color: #fff !important;
}

.vendor-links a.btn:hover,
.vendor-links a.btn-dark:hover,
.vendor-links a.btn-secondary:hover {
  color: #fff !important;
  opacity: 0.9;
}

/* Optional: outline style consistency */
.vendor-links a.btn-outline-dark {
  color: #fff !important;
  background-color: #212529 !important;
  border-color: #212529 !important;
}

.vendor-links a.btn-outline-dark:hover {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
}
