/* ===============================
   Q&A Network - Motion Graphics Theme
   Clear Blue Sky & Soft Clouds
   =============================== */

:root {
  /* Brand Colors */
  --bs-primary: #38BDF8;                 /* Sky Blue */
  --bs-primary-rgb: 56, 189, 248;

  --sky-dark: #0284C7;                   /* Primary Accent */
  --sky-darker: #0369A1;                 /* Hover / Active */

  /* Base Colors */
  --bs-body-color: #0F172A;              /* Deep slate */
  --bs-body-bg: #F0F9FF;                 /* Cloud white */
}

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

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #E0F2FE;
}
header a {
  text-decoration: none !important;
  color: var(--bs-body-color);
}
header a:hover {
  color: var(--sky-dark);
}
header img {
  width: 40px;
  height: 40px;
}
header .fs-5 {
  font-weight: 600;
}
header small {
  font-size: 0.9rem;
  opacity: 0.7;
}
header nav a.active {
  color: var(--sky-dark);
  font-weight: 600;
  border-bottom: 2px solid var(--sky-dark);
}

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

.btn-outline-primary {
  color: var(--sky-dark);
  border-color: var(--sky-dark);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--sky-dark);
  color: #fff;
}

/* Search Box */
.search-box input:focus {
  border-color: var(--sky-dark);
  box-shadow: 0 0 0 0.15rem rgba(2, 132, 199, 0.25);
}

/* Cards */
.question-card:hover {
  box-shadow: 0 0.6rem 1.2rem rgba(2,132,199,.12);
}
.question-card a {
  color: var(--sky-dark);
  text-decoration: none !important;
}
.question-card a:hover {
  color: var(--sky-darker);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky-darker));
  color: #ffffff !important;
  padding: 2rem 0;
}
footer a {
  color: #ffffff !important;
}
footer a:hover {
  color: #E0F2FE !important;
}

/* ==========================================================
   TAG LINKS
   ========================================================== */
a.tag,
a.tag-link {
  border-bottom: 2px dotted #94A3B8;
  color: inherit !important;
  margin-right: .75rem;
}
a.tag:hover,
a.tag-link:hover {
  color: var(--sky-dark) !important;
  border-bottom-color: var(--sky-dark);
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.pagination {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: center;
  gap: .25rem;
}
.pagination .page-link {
  color: var(--sky-dark) !important;
  border: 1px solid var(--sky-dark) !important;
  background-color: #fff !important;
  border-radius: .375rem;
}
.pagination .page-link:hover {
  background-color: var(--sky-dark) !important;
  color: #fff !important;
}
.pagination .page-item.active .page-link {
  background-color: var(--sky-darker) !important;
  border-color: var(--sky-darker) !important;
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  background-color: #E0F2FE !important;
  border-color: #E0F2FE !important;
  color: #94A3B8 !important;
}

/* ==========================================================
   MAIN CONTENT LINKS
   ========================================================== */
main a {
  color: #020617 !important;
}
main a:hover {
  color: var(--sky-dark) !important;
}

/* ==========================================================
   VENDOR BUTTON OVERRIDES
   ========================================================== */
.vendor-links a.btn,
.vendor-links a.btn-dark,
.vendor-links a.btn-secondary {
  color: #fff !important;
}
.vendor-links a.btn:hover {
  opacity: 0.9;
}
