/* ═══════════════════════════════════
   BITX.NO — Custom CSS
   Clean, minimal crypto info site
   GDPR-friendly: no external fonts
   ═══════════════════════════════════ */

/* --- System font stack (no Google Fonts) --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  color: #1a1a2e !important;
  line-height: 1.75 !important;
  background: #fafafa !important;
}

/* --- Boxed layout --- */
.layout-boxed .body-innerwrapper {
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* --- Typography --- */
h1, .h1 { font-size: 1.6rem; font-weight: 700; color: #1a1a2e; letter-spacing: -0.01em; }
h2, .h2 { font-size: 1.3rem; font-weight: 600; color: #1a1a2e; }
h3, .h3 { font-size: 1.1rem; font-weight: 600; color: #2d2d44; }
h4, .h4 { font-size: 1rem; font-weight: 600; color: #2d2d44; }
h5, .h5 { font-size: 0.88rem; font-weight: 600; color: #3a3a55; }
h6, .h6 { font-size: 0.82rem; font-weight: 600; color: #3a3a55; }

a { color: #0A6BA7; text-decoration: none; transition: color 0.15s; }
a:hover { color: #085a8e; }

/* --- Logo area --- */
#sp-top-bar {
  background: #fff !important;
  padding: 18px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logo-image, .logo-image-phone { height: 72px !important; }
@media (max-width: 992px) { .logo-image, .logo-image-phone { height: 50px !important; } }
@media (max-width: 576px) { .logo-image, .logo-image-phone { height: 40px !important; } }

/* --- Main body --- */
#sp-main-body {
  padding: 27px 0 !important;
  margin: 0 !important;
}

/* --- Article list (homepage grid) --- */
.article-list .article {
  margin-bottom: 0;
  padding: 12px 15px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 0;
  transition: background 0.15s;
}

.article-list .article:hover {
  background: rgba(10, 107, 167, 0.03);
}

.article-list .article:last-child {
  border-bottom: none;
}

.article-list .article .article-header h1,
.article-list .article .article-header h2 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.4;
}

.article-list .article .article-header h2 a {
  color: #1a1a2e;
}

.article-list .article .article-header h2 a:hover {
  color: #0A6BA7;
}

.article-list .article .article-introtext {
  font-size: 0.82rem;
  color: #596080;
  line-height: 1.6;
}

.article-list .article .article-introtext a {
  color: #0A6BA7;
  font-weight: 500;
}

/* --- Single article view --- */
.article-details .article-header h1,
.article-details .article-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 18px;
}

.article-details .article-body,
.article-details [itemprop="articleBody"] {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #2d2d44;
  padding: 0 18px;
}

.article-details .article-body p {
  margin-bottom: 12px;
}

.article-details .article-body a {
  color: #0A6BA7;
  font-weight: 500;
}

/* --- Token page image --- */
.article-details .article-body img[style*="float: right"],
.article-details [itemprop="articleBody"] img[style*="float: right"] {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 3px;
}

/* --- Bottom sections (coin icons) --- */
#sp-bottom, #sp-bottom-more {
  background: #eef0f5 !important;
  color: #596080 !important;
  padding: 18px 0 !important;
  margin: 0 !important;
}
#sp-bottom + #sp-bottom-more { padding-top: 0 !important; }
#sp-bottom-more { padding-bottom: 27px !important; }

#sp-bottom a, #sp-bottom-more a {
  color: #596080 !important;
  font-weight: 500;
  transition: color 0.15s;
}

#sp-bottom a:hover, #sp-bottom-more a:hover {
  color: #0A6BA7 !important;
}

/* Coin icon tiles — image card + caption below (subtle refinement) */
#sp-bottom .mod-custom,
#sp-bottom-more .mod-custom {
  background: transparent;
  text-align: center;
}

/* Image container: barely-there neutral gray card */
#sp-bottom .mod-custom > div[style*="background-color: #f3f3f3"],
#sp-bottom-more .mod-custom > div[style*="background-color: #f3f3f3"] {
  background: #eaecf0 !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  border-radius: 12px !important;
  margin: 0 0 15px !important;
  padding: 27px 18px !important;
  transition: background 0.3s ease;
}

#sp-bottom .mod-custom > div[style*="background-color: #f3f3f3"]:hover,
#sp-bottom-more .mod-custom > div[style*="background-color: #f3f3f3"]:hover {
  background: #ebedf1 !important;
}

/* Logo image — subtle shadow, gentle zoom */
#sp-bottom .mod-custom img,
#sp-bottom-more .mod-custom img {
  height: 96px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.06));
  transition: transform 0.25s ease;
}

#sp-bottom .mod-custom > div[style*="background-color: #f3f3f3"]:hover img,
#sp-bottom-more .mod-custom > div[style*="background-color: #f3f3f3"]:hover img {
  transform: scale(1.04);
}

/* Column gutter */
#sp-bottom .sp-column,
#sp-bottom-more .sp-column {
  padding: 0 9px;
}

/* Caption — clean label under the card */
#sp-bottom .mod-custom > p,
#sp-bottom-more .mod-custom > p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}

/* Uniform caption text style */
#sp-bottom .mod-custom > p,
#sp-bottom-more .mod-custom > p,
#sp-bottom .mod-custom > p *,
#sp-bottom-more .mod-custom > p * {
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  color: #3a3a55 !important;
  letter-spacing: 0.01em !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#sp-bottom .mod-custom > p a:hover,
#sp-bottom-more .mod-custom > p a:hover,
#sp-bottom .mod-custom > p a:hover *,
#sp-bottom-more .mod-custom > p a:hover * {
  color: #0A6BA7 !important;
}

/* --- Footer disclaimer copyright — make it readable --- */
#sp-footer2 .sp-copyright,
#sp-footer2 .sp-copyright *,
#sp-footer2 p,
#sp-footer2 p * {
  font-size: 0.72rem !important;
  color: #8a90a8 !important;
  line-height: 1.55 !important;
}
#sp-footer2 p a,
#sp-footer2 span a {
  color: #8a90a8 !important;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
}
#sp-footer2 p a:hover,
#sp-footer2 span a:hover {
  color: #fff !important;
}

/* --- Footer --- */
#sp-footer {
  background: #1a1a2e !important;
  color: #8a90a8 !important;
  padding: 27px 18px !important;
  font-size: 0.78rem;
}

#sp-footer .container-inner {
  padding: 0;
}

#sp-footer a { color: #8a90a8 !important; }
#sp-footer a:hover { color: #fff !important; }

/* --- Disclaimer module --- */
#sp-disclaimer {
  background: #fff;
  padding: 9px 0 18px;
}

#sp-disclaimer p {
  font-size: 0.8rem !important;
  color: #92400e !important;
  line-height: 1.55;
  margin: 0;
  padding: 12px 18px 12px 42px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  text-align: left;
  position: relative;
}

#sp-disclaimer p::before {
  content: "⚠";
  position: absolute;
  left: 15px;
  top: 12px;
  font-size: 1.1rem;
  color: #f59e0b;
  font-weight: 700;
}

/* --- Token list (/t page) — 3-column grid --- */
.com-content-category__table {
  border: none !important;
  margin: 0 !important;
  width: 100%;
}
.com-content-category__table thead,
.com-content-category__table caption { display: none !important; }

.com-content-category__table tbody {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 18px;
}

.com-content-category__table tr {
  display: block;
  border: none !important;
  background: transparent !important;
}

.com-content-category__table tr th,
.com-content-category__table tr td {
  display: block;
  border: none !important;
  padding: 6px 0 !important;
  background: transparent !important;
}

.com-content-category__table .list-title {
  font-weight: 400 !important;
}

.com-content-category__table .list-title a {
  color: #2d2d44;
  font-weight: 500;
  font-size: 0.88rem;
  display: block;
  padding: 6px 9px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.com-content-category__table .list-title a:hover {
  color: #0A6BA7;
  background: rgba(10, 107, 167, 0.05);
}

/* Mobile: fall back to 2 columns, then 1 */
@media (max-width: 768px) {
  .com-content-category__table tbody { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .com-content-category__table tbody { grid-template-columns: 1fr; }
}

/* --- Calculator links in token pages --- */
.article-details h6 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 27px;
}

/* --- Article info (date, category, etc.) --- */
.article-info { font-size: 0.75rem; color: #8a90a8; margin-top: 3px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .layout-boxed .body-innerwrapper {
    box-shadow: none;
  }

  .article-details .article-body,
  .article-details [itemprop="articleBody"] {
    padding: 0;
  }

  #sp-top-bar { padding: 12px 0 !important; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #eef0f5; }
::-webkit-scrollbar-thumb { background: #c5c9d4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #8a90a8; }

/* --- Selection --- */
::selection { background: #0A6BA7; color: #fff; }

/* --- Smooth scroll --- */
html { scroll-behavior: smooth; }

/* --- Hide Google Font import from Helix (GDPR) --- */
@font-face {
  font-family: 'Roboto Serif';
  src: local('-');
  font-display: swap;
}
