/* ============================================================
   Crypto Trekkers — site-wide design system v1 (2026-07-12)
   Loaded via mu-plugin; external so WP filters can't touch it.
   ============================================================ */

/* ---------- self-hosted Inter variable font (one file, all weights) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url('/inter-var.woff2') format('woff2');
}

/* ---------- typography ---------- */
body, button, input, select, textarea {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
}
h1, h2, h3, h4, h5, h6, .entry-title, .page-header-title, .blog-entry-title, .site-logo-text {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -.02em;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* larger, more readable base type scale (17px body, 1.25 modular headings) */
body { font-size: 17px !important; line-height: 1.7 !important; color: #24303f; }
.entry-content p, .entry-content li { font-size: 1.02rem; }
#main h2, .entry-content h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem) !important; }
#main h3, .entry-content h3 { font-size: clamp(1.15rem, 2vw, 1.35rem) !important; }
body, #outer-wrap, #main { background-color: #f7f9fc; }

/* ---------- sticky glass header ---------- */
#site-header, #site-header.has-header-media, #site-header #site-header-inner {
  background: transparent;
}
#site-header {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, #0a0f1e 0%, #0d1526 100%) !important;
  border-bottom: 1px solid rgba(103, 232, 249, .14) !important;
  box-shadow: 0 4px 24px rgba(2, 6, 23, .45) !important;
  transition: box-shadow .3s;
}
@supports (backdrop-filter: blur(14px)) {
  #site-header { background: rgba(9, 14, 28, .88) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
#site-header.ct-scrolled { background: rgba(7, 11, 22, .97) !important; box-shadow: 0 6px 30px rgba(2, 6, 23, .6) !important; }
#site-header #site-logo #site-logo-inner a,
#site-header .site-logo-text,
#site-header #site-logo a { color: #fff !important; }
#site-navigation-wrap .dropdown-menu > li > a {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: .015em !important;
  text-transform: none !important;
  position: relative;
}
/* compact modern header: cap logo height */
#site-header #site-logo img { max-height: 62px !important; width: auto !important; }
@media (max-width: 768px) { #site-header #site-logo img { max-height: 48px !important; } }
#site-navigation-wrap .dropdown-menu > li > a:hover,
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a {
  color: #67e8f9 !important;
}
#site-navigation-wrap .dropdown-menu > li > a > span.link-inner { position: relative; }
#site-navigation-wrap .dropdown-menu > li > a > span.link-inner::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, #06b6d4, #3b82f6); border-radius: 2px; transition: width .25s;
}
#site-navigation-wrap .dropdown-menu > li > a:hover > span.link-inner::after,
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a > span.link-inner::after { width: 100%; }
.dropdown-menu ul li a { background: #0f172a !important; color: #e2e8f0 !important; }
.dropdown-menu ul li a:hover { background: #1e293b !important; color: #67e8f9 !important; }
.dropdown-menu ul { background: #0f172a !important; border: 1px solid rgba(255,255,255,.08) !important; border-radius: 0 0 12px 12px; overflow: hidden; }
#site-header .oceanwp-mobile-menu-icon a { color: #fff !important; }
#searchform-header-replace, .search-header-replace { background: #0f172a; }
#site-header .search-dropdown-toggle, #site-header a.search-header-replace-toggle { color: #e2e8f0 !important; }
#mobile-dropdown { background: #0b1220 !important; }
#mobile-dropdown ul li a { color: #e2e8f0 !important; }
#mobile-dropdown ul li a:hover { color: #67e8f9 !important; }

/* ---------- page-title banners (all pages/posts/archives) ---------- */
.page-header {
  background: linear-gradient(135deg, #0b1220 0%, #1e1b4b 70%, #164e63 130%) !important;
  border: none !important;
  padding: 46px 0 42px !important;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.22), transparent 65%); pointer-events: none;
}
.page-header .page-header-title, .page-header h1 { color: #fff !important; font-weight: 800; }
.page-header .page-subheading { color: #94a3b8 !important; }
.site-breadcrumbs, .site-breadcrumbs a, .site-breadcrumbs .breadcrumb-trail { color: #94a3b8 !important; }
.site-breadcrumbs a:hover { color: #67e8f9 !important; }

/* ---------- global buttons & links ---------- */
.button, button[type="submit"], input[type="submit"], .wpforms-submit,
.theme-button, .wp-block-button__link {
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: transform .2s, box-shadow .2s !important;
}
button[type="submit"]:hover, input[type="submit"]:hover, .wpforms-submit:hover { transform: translateY(-2px); }
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form textarea {
  border-radius: 12px !important; border: 1.5px solid #e2e8f0 !important; padding: 12px 16px !important;
}
.wpforms-form input:focus, .wpforms-form textarea:focus { border-color: #06b6d4 !important; box-shadow: 0 0 0 3px rgba(6,182,212,.15) !important; }
#scroll-top {
  background: linear-gradient(135deg, #06b6d4, #3b82f6) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 20px rgba(6,182,212,.4) !important;
}
#scroll-top:hover { transform: translateY(-3px); }

/* ---------- reading progress bar ---------- */
#ct-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
  z-index: 100000; transition: width .1s linear; border-radius: 0 3px 3px 0;
}

/* ---------- single post enhancements ---------- */
.ct-readtime {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(6,182,212,.12); color: #0891b2; border: 1px solid rgba(6,182,212,.3);
  border-radius: 50px; padding: 4px 14px; font-size: .78rem; font-weight: 700; margin: 10px 0;
}
.page-header .ct-readtime { color: #67e8f9; }
.ct-toc {
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #06b6d4;
  border-radius: 12px; padding: 6px 20px 14px; margin: 26px 0;
}
.ct-toc summary {
  cursor: pointer; font-weight: 800; color: #0f172a; font-size: 1rem; padding: 10px 0;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.ct-toc summary::before { content: "☰"; color: #0891b2; }
.ct-toc ol { margin: 4px 0 4px 22px !important; padding: 0; }
.ct-toc li { margin: 7px 0 !important; font-size: .92rem; }
.ct-toc a { color: #334155 !important; text-decoration: none !important; font-weight: 500 !important; }
.ct-toc a:hover { color: #0891b2 !important; }
.ct-related { margin: 44px 0 10px; }
.ct-related h3 {
  font-size: 1.35rem; font-weight: 800; color: #0f172a; margin-bottom: 20px;
  padding-left: 14px; border-left: 5px solid #06b6d4;
}
.ct-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ct-related-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
  text-decoration: none !important; transition: .25s; display: block;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.ct-related-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(15,23,42,.13); border-color: #7dd3fc; }
.ct-related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.ct-related-card b { display: block; padding: 14px 16px 16px; color: #0f172a; font-size: .95rem; line-height: 1.45; font-weight: 700; }
.ct-related-card:hover b { color: #0891b2; }

/* ---------- scroll-reveal micro-interactions ---------- */
.ct-reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.ct-reveal.ct-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ct-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- footer ---------- */
#footer-widgets {
  background: #0b1220 !important;
  border-top: none !important;
  position: relative;
  padding-top: 50px !important;
}
#footer-widgets::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6, #8b5cf6);
}
#footer-widgets .footer-widget .widget-title { color: #fff !important; font-weight: 800; letter-spacing: .02em; }
#footer-widgets, #footer-widgets p, #footer-widgets li { color: #94a3b8 !important; }
#footer-widgets a { color: #cbd5e1 !important; transition: color .2s; }
#footer-widgets a:hover { color: #67e8f9 !important; }
#footer-bottom { background: #070d1a !important; padding: 18px 0 !important; }
#footer-bottom #copyright, #footer-bottom p { color: #64748b !important; }
#footer-bottom .footer-nav li a { color: #94a3b8 !important; }
#footer-bottom .footer-nav li a:hover { color: #67e8f9 !important; }

/* ---------- sidebar widgets as cards ---------- */
#right-sidebar .sidebar-box, .sidebar .sidebar-box, #sidebar .sidebar-box {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 24px 22px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.sidebar-box .widget-title {
  font-size: 1.05rem !important; font-weight: 800 !important; color: #0f172a !important;
  padding-left: 12px; border-left: 4px solid #06b6d4; margin-bottom: 18px !important;
}
.sidebar-box input[type="text"], .sidebar-box input[type="search"], .sidebar-box input[type="email"] {
  border-radius: 10px !important; border: 1.5px solid #e2e8f0 !important; padding: 10px 14px !important;
}
.sidebar-box input:focus { border-color: #06b6d4 !important; }
.sidebar-box img { border-radius: 12px; }
.sidebar-box a { color: #334155; }
.sidebar-box a:hover { color: #0891b2; }

/* ---------- static pages: readable measure + structure ---------- */
.page-id-3231 .entry-content, .page-id-3327 .entry-content,
.page-id-3382 .entry-content, .page-id-3495 .entry-content {
  max-width: 860px; margin-left: auto; margin-right: auto;
}
.page .entry-content h2 {
  font-weight: 800; color: #0f172a; letter-spacing: -.3px;
  margin-top: 2em; margin-bottom: .7em; padding-left: 16px; border-left: 5px solid #06b6d4;
}
.page .entry-content > p:first-child { font-size: 1.12rem; color: #475569; line-height: 1.8; }

/* About page: turn the "What We Cover" list into cards */
.page-id-3231 .entry-content > ul:first-of-type {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; list-style: none !important; margin: 22px 0 !important; padding: 0 !important;
}
.page-id-3231 .entry-content > ul:first-of-type li {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 20px 22px; margin: 0 !important; box-shadow: 0 1px 3px rgba(15,23,42,.05);
  transition: .25s; line-height: 1.65; list-style: none;
}
.page-id-3231 .entry-content > ul:first-of-type li:hover {
  transform: translateY(-4px); box-shadow: 0 14px 28px rgba(15,23,42,.1); border-color: #7dd3fc;
}
.page-id-3231 .entry-content > ul:first-of-type li strong { display: block; color: #0891b2; margin-bottom: 6px; font-size: 1.02rem; }

/* Contact page: two-column form + info cards */
.ct-contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin: 26px 0; align-items: start; }
@media (max-width: 820px) { .ct-contact-grid { grid-template-columns: 1fr; } }
.ct-contact-form {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
  padding: 30px 28px; box-shadow: 0 4px 18px rgba(15,23,42,.06);
}
.ct-contact-form .wpforms-field label.wpforms-field-label { font-weight: 700; color: #334155; font-size: .9rem; }
.ct-contact-side { display: grid; gap: 14px; }
.ct-info-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px 20px;
  transition: .25s; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.ct-info-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(15,23,42,.1); border-color: #7dd3fc; }
.ct-info-ico { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.ct-info-card b { display: block; color: #0f172a; font-size: .98rem; margin-bottom: 6px; }
.ct-info-card p { color: #64748b; font-size: .88rem; line-height: 1.6; margin: 0 !important; }
.ct-info-card a { color: #0891b2; font-weight: 600; }

/* ---------- AEO content blocks: quick answer + key takeaways ---------- */
.ct-quick {
  background: #ecfeff; border: 1px solid #a5f3fc; border-left: 5px solid #06b6d4;
  border-radius: 12px; padding: 18px 22px; margin: 22px 0; font-size: 1.02rem; line-height: 1.7; color: #164e63;
}
.ct-quick strong { color: #0e7490; }
.ct-take {
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 14px;
  padding: 20px 24px; margin: 22px 0; box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.ct-take strong { display: block; font-size: 1.05rem; color: #0f172a; margin-bottom: 10px; }
.ct-take ul { margin: 0 0 0 2px !important; padding: 0; list-style: none !important; }
.ct-take li { padding-left: 26px; position: relative; margin-bottom: 8px !important; line-height: 1.6; color: #334155; }
.ct-take li::before { content: "✔"; position: absolute; left: 0; color: #06b6d4; font-weight: 700; }

/* ---------- misc polish ---------- */
::selection { background: #06b6d4; color: #fff; }
img { border-radius: 4px; }
.entry-content img, .blog-entry img { border-radius: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(6,182,212,.5); outline-offset: 2px; border-radius: 4px; }
.single .entry-share, .entry-content blockquote {
  border-left: 4px solid #06b6d4; background: #f0fdff; border-radius: 0 12px 12px 0; padding: 16px 22px;
}

/* ============================================================
   Ebook store (WooCommerce) — matches the site design system
   ============================================================ */
.ct-shop-hero {
  background: linear-gradient(135deg, #0b1220 0%, #1e1b4b 60%, #164e63 130%);
  border-radius: 18px; padding: 42px 34px; margin: 6px 0 32px; text-align: center; color: #fff;
}
.ct-shop-kicker {
  display: inline-block; background: rgba(6,182,212,.14); border: 1px solid rgba(6,182,212,.45);
  color: #67e8f9; font-size: .75rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  border-radius: 50px; padding: 7px 18px; margin-bottom: 16px;
}
.ct-shop-title { color: #fff !important; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -.8px; }
.ct-shop-sub { color: #cbd5e1; font-size: 1.05rem; line-height: 1.7; max-width: 640px; margin: 0 auto 22px; }
.ct-shop-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ct-shop-badges span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 50px; padding: 7px 16px; font-size: .84rem; color: #e2e8f0;
}

/* how it works */
.ct-shop-how { margin: 40px 0 10px; }
.ct-shop-how h2 { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; padding-left: 14px; border-left: 5px solid #06b6d4; }
.ct-shop-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ct-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.ct-step b {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: linear-gradient(135deg,#06b6d4,#3b82f6); color: #fff; font-size: 1rem; margin-bottom: 12px;
}
.ct-step span { display: block; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.ct-step small { display: block; color: #64748b; font-size: .88rem; line-height: 1.6; }

/* product grid */
.woocommerce ul.products li.product {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden;
  padding: 0 0 18px !important; transition: .25s; box-shadow: 0 1px 3px rgba(15,23,42,.06); text-align: left;
}
.woocommerce ul.products li.product:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,23,42,.13); border-color: #7dd3fc; }
.woocommerce ul.products li.product a img { margin: 0 0 14px; border-radius: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.08rem !important; font-weight: 700; color: #0f172a; padding: 0 18px !important; line-height: 1.45;
}
.woocommerce ul.products li.product .price { color: #0891b2 !important; font-weight: 800; font-size: 1.15rem; padding: 0 18px; display: block; margin-bottom: 12px; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
  background: linear-gradient(90deg,#06b6d4,#3b82f6) !important; color: #fff !important;
  border-radius: 50px !important; font-weight: 700 !important; padding: 12px 26px !important;
  transition: transform .2s, box-shadow .2s; box-shadow: 0 6px 18px rgba(6,182,212,.3);
}
.woocommerce ul.products li.product .button { margin: 0 18px; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(6,182,212,.42); }

/* single product */
.woocommerce div.product .product_title { font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: #0891b2 !important; font-weight: 800; font-size: 1.9rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #06b6d4; }
.woocommerce-product-details__short-description { font-size: 1.02rem; line-height: 1.75; color: #334155; }
.woocommerce div.product form.cart { margin-top: 18px; }
.woocommerce .quantity .qty { border-radius: 10px; border: 1.5px solid #e2e8f0; padding: 8px; }

/* messages, cart, checkout */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: #06b6d4 !important; border-radius: 12px; background: #f0fdff;
}
.woocommerce-message::before, .woocommerce-info::before { color: #06b6d4 !important; }
.woocommerce table.shop_table { border-radius: 12px; border-color: #e2e8f0; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border-radius: 10px; border: 1.5px solid #e2e8f0; padding: 11px 14px;
}
.woocommerce form .form-row input.input-text:focus { border-color: #06b6d4; outline: none; }
.woocommerce-checkout #payment { background: #f8fafc; border-radius: 14px; }
.woocommerce-checkout #payment div.payment_box { background: #ecfeff; border-radius: 10px; }

/* downloads table in My Account */
.woocommerce-MyAccount-content .woocommerce-table--order-downloads { border-radius: 12px; }

@media (max-width: 768px) {
  .ct-shop-hero { padding: 30px 20px; border-radius: 14px; }
  .woocommerce div.product p.price { font-size: 1.5rem; }
}

/* ============================================================
   Header layout — keep logo + menu on one row, never wrapping
   ============================================================ */
#site-header .container,
#site-header #site-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 18px;
}
#site-header #site-logo { flex: 0 0 auto; margin: 0 !important; }
#site-header #site-logo #site-logo-inner { display: flex; align-items: center; height: auto; }
#site-header #site-logo img { max-height: 56px !important; width: auto !important; }
#site-navigation-wrap {
  flex: 1 1 auto; position: static !important; float: none !important;
  display: flex; justify-content: flex-end; align-items: center;
}
#site-navigation-wrap .dropdown-menu { display: flex; flex-wrap: nowrap; align-items: center; }
#site-navigation-wrap .dropdown-menu > li > a {
  padding: 0 13px !important;
  line-height: 62px !important;
  white-space: nowrap;
  font-size: 15px !important;
}
/* right-side icons (search + cart) sit inline, not on their own row */
#site-header .oceanwp-social-menu,
#site-header #search-toggle,
#site-header .search-toggle-li,
#site-header li.woo-menu-icon,
#site-header .right-menu { float: none !important; display: inline-flex !important; align-items: center; }
#site-header li.search-toggle-li a, #site-header li.woo-menu-icon a { line-height: 62px !important; padding: 0 10px !important; }

/* dropdown submenu polish */
#site-navigation-wrap .dropdown-menu ul {
  border-radius: 0 0 12px 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(2,6,23,.4);
  border: 1px solid rgba(255,255,255,.08) !important; min-width: 210px;
}
#site-navigation-wrap .dropdown-menu ul li a { line-height: 1.5 !important; padding: 12px 18px !important; font-size: 14.5px !important; }

/* cart badge */
#site-header .wcmenucart-count, #site-header .wcmenucart .count {
  background: linear-gradient(135deg,#06b6d4,#3b82f6); color: #fff;
  border-radius: 50px; padding: 1px 8px; font-size: 11px; font-weight: 700; margin-left: 4px;
}

@media (max-width: 1200px) {
  #site-navigation-wrap .dropdown-menu > li > a { padding: 0 10px !important; font-size: 14.2px !important; }
  #site-header #site-logo img { max-height: 48px !important; }
}
@media (max-width: 959px) {
  #site-header .container, #site-header #site-header-inner { flex-wrap: wrap !important; }
}
