/* LocalCryptoNews — dedicated mobile theme (m.localcryptonews.com) */

.theme-cryptowire-m {
  --cwm-bg: #0b0e14;
  --cwm-panel: #12161f;
  --cwm-border: #232a38;
  --cwm-text: #e7ebf3;
  --cwm-text-dim: #8b93a7;
  --cwm-accent: #1fe0a8;
  --cwm-down: #ff5470;
  margin: 0;
  background: var(--cwm-bg);
  color: var(--cwm-text);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  padding-bottom: 64px; /* space for fixed tabbar */
  -webkit-font-smoothing: antialiased;
}

.theme-cryptowire-m a { color: inherit; }

.theme-cryptowire-m .cwm-accent { color: var(--cwm-accent); }

/* Header */
.theme-cryptowire-m .cwm-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0d1119;
  border-bottom: 1px solid var(--cwm-border);
}

.theme-cryptowire-m .cwm-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.theme-cryptowire-m .cwm-logo-mark {
  color: var(--cwm-accent);
  font-size: 18px;
}

.theme-cryptowire-m .cwm-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.theme-cryptowire-m .cwm-logo-text--sm {
  font-size: 15px;
}

.theme-cryptowire-m .cwm-menu-btn {
  font-size: 20px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--cwm-text);
}

/* Ticker (shares JS/IDs with desktop, styled independently) */
.theme-cryptowire-m .cwm-ticker {
  background: #060810;
  border-bottom: 1px solid var(--cwm-border);
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  display: flex;
  align-items: center;
}

.theme-cryptowire-m .cw-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-left: 14px;
  animation: cwm-scroll 30s linear infinite;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  white-space: nowrap;
}

.theme-cryptowire-m .cw-ticker-loading { color: var(--cwm-text-dim); }
.theme-cryptowire-m .cw-ticker-item { color: var(--cwm-text-dim); }
.theme-cryptowire-m .cw-ticker-item strong { color: var(--cwm-text); }
.theme-cryptowire-m .cw-ticker-up { color: var(--cwm-accent); }
.theme-cryptowire-m .cw-ticker-down { color: var(--cwm-down); }

@keyframes cwm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Nav drawer (checkbox toggle, no JS) */
.theme-cryptowire-m .cwm-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.theme-cryptowire-m .cwm-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(78vw, 300px);
  background: var(--cwm-panel);
  border-left: 1px solid var(--cwm-border);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 41;
  overflow-y: auto;
}

.theme-cryptowire-m .cwm-nav-toggle-input:checked ~ .cwm-nav-backdrop {
  display: block;
}

.theme-cryptowire-m .cwm-nav-toggle-input:checked ~ .cwm-nav-drawer {
  transform: translateX(0);
}

.theme-cryptowire-m .cwm-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--cwm-border);
  font-weight: 700;
  color: var(--cwm-text-dim);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.theme-cryptowire-m .cwm-nav-close {
  font-size: 18px;
  cursor: pointer;
  color: var(--cwm-text);
}

.theme-cryptowire-m .cwm-nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.theme-cryptowire-m .cwm-nav-drawer a {
  display: block;
  padding: 13px 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--cwm-text);
  border-bottom: 1px solid var(--cwm-border);
}

.theme-cryptowire-m .cwm-nav-drawer a:active {
  color: var(--cwm-accent);
}

/* Main */
.theme-cryptowire-m .cwm-main {
  padding: 16px;
}

.theme-cryptowire-m .cwm-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 700;
  color: var(--cwm-accent);
  margin: 0 0 6px;
  text-decoration: none;
}

.theme-cryptowire-m .cwm-meta {
  color: var(--cwm-text-dim);
  font-size: 12px;
  margin: 6px 0 0;
}

.theme-cryptowire-m .cwm-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cwm-accent);
  margin-bottom: 4px;
}

/* Hero */
.theme-cryptowire-m .cwm-hero h1 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 10px;
}

.theme-cryptowire-m .cwm-hero h1 a {
  text-decoration: none;
  color: #fff;
}

.theme-cryptowire-m .cwm-hero-img {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cwm-border);
  margin-bottom: 8px;
}

.theme-cryptowire-m .cwm-hero-img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mood box */
.theme-cryptowire-m .cwm-mood-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cwm-panel);
  border: 1px solid var(--cwm-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--cwm-text-dim);
}

.theme-cryptowire-m .cwm-mood-box strong {
  font-family: "JetBrains Mono", monospace;
  color: var(--cwm-text);
}

/* Sections */
.theme-cryptowire-m .cwm-section {
  margin: 24px 0;
}

.theme-cryptowire-m .cwm-section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cwm-text-dim);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--cwm-border);
}

.theme-cryptowire-m .cwm-trending {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.theme-cryptowire-m .cwm-trending a {
  display: flex;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--cwm-text);
}

.theme-cryptowire-m .cwm-trending-rank {
  font-family: "JetBrains Mono", monospace;
  color: var(--cwm-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* Feed cards */
.theme-cryptowire-m .cwm-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.theme-cryptowire-m .cwm-feed-card {
  display: flex;
  gap: 12px;
  background: var(--cwm-panel);
  border: 1px solid var(--cwm-border);
  border-radius: 10px;
  padding: 10px;
}

.theme-cryptowire-m .cwm-feed-card--text {
  padding: 14px;
}

.theme-cryptowire-m .cwm-feed-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

.theme-cryptowire-m .cwm-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-cryptowire-m .cwm-feed-body {
  flex: 1;
  min-width: 0;
}

.theme-cryptowire-m .cwm-feed-body h3 {
  font-size: 14.5px;
  line-height: 1.3;
  margin: 0 0 4px;
}

.theme-cryptowire-m .cwm-feed-body h3 a {
  text-decoration: none;
  color: var(--cwm-text);
}

.theme-cryptowire-m .cwm-feed-body p {
  font-size: 12.5px;
  color: var(--cwm-text-dim);
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-cryptowire-m .cwm-feed-body time {
  font-size: 11px;
  color: var(--cwm-text-dim);
}

/* Category / pagination */
.theme-cryptowire-m .cwm-breadcrumb {
  font-size: 12px;
  color: var(--cwm-text-dim);
  margin: 0 0 8px;
}

.theme-cryptowire-m .cwm-page-h {
  font-size: 1.3rem;
  margin: 0 0 16px;
}

.theme-cryptowire-m .cwm-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 13px;
  color: var(--cwm-text-dim);
}

.theme-cryptowire-m .cwm-pagination a {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--cwm-panel);
  border: 1px solid var(--cwm-border);
  text-decoration: none;
  font-weight: 600;
  color: var(--cwm-text);
}

/* Article */
.theme-cryptowire-m .cwm-article h1 {
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 0 0 8px;
}

.theme-cryptowire-m .cwm-article-hero {
  margin: 14px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--cwm-border);
}

.theme-cryptowire-m .cwm-article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.theme-cryptowire-m .cwm-article-body {
  font-size: 16px;
  line-height: 1.65;
  color: #dbe1ec;
  margin-top: 12px;
}

.theme-cryptowire-m .cwm-article-body p {
  margin: 0 0 1.1em;
}

.theme-cryptowire-m .cwm-article-body a {
  color: var(--cwm-accent);
}

.theme-cryptowire-m .cwm-article-body h2,
.theme-cryptowire-m .cwm-article-body h3 {
  color: #fff;
  margin: 1.4em 0 0.5em;
  font-size: 1.1rem;
}

.theme-cryptowire-m .cwm-article-body blockquote {
  border-left: 3px solid var(--cwm-accent);
  margin: 1.2em 0;
  padding: 4px 0 4px 14px;
  color: var(--cwm-text-dim);
  font-style: italic;
}

.theme-cryptowire-m .cwm-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.theme-cryptowire-m .article-mid-ad {
  margin: 1.4em 0;
  padding: 14px;
  background: var(--cwm-panel);
  border: 1px solid var(--cwm-border);
  border-left: 3px solid var(--cwm-accent);
  border-radius: 8px;
  font-size: 14px;
}

.theme-cryptowire-m .article-mid-ad-label {
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--cwm-accent);
  font-weight: 700;
}

.theme-cryptowire-m .article-mid-ad a {
  color: var(--cwm-accent);
  font-weight: 600;
  text-decoration: none;
}

.theme-cryptowire-m .cwm-source {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--cwm-border);
  font-size: 14px;
}

.theme-cryptowire-m .cwm-source a {
  color: var(--cwm-accent);
  text-decoration: none;
  font-weight: 600;
}

/* Contact (dark override of shared site-contact.css) */
.theme-cryptowire-m .site-contact-title,
.theme-cryptowire-m .site-contact-intro,
.theme-cryptowire-m .site-contact-empty,
.theme-cryptowire-m .site-contact-breadcrumb {
  color: var(--cwm-text);
}

.theme-cryptowire-m .site-contact-intro {
  color: var(--cwm-text-dim);
}

.theme-cryptowire-m .site-contact-card {
  background: var(--cwm-panel);
  border: 1px solid var(--cwm-border);
  border-left: 4px solid var(--cwm-accent);
  box-shadow: none;
}

.theme-cryptowire-m .site-contact-card-title { color: #fff; }
.theme-cryptowire-m .site-contact-card-desc { color: var(--cwm-text-dim); }
.theme-cryptowire-m .site-contact-card-email { color: var(--cwm-accent) !important; }

/* Footer */
.theme-cryptowire-m .cwm-footer {
  padding: 24px 16px 20px;
  border-top: 1px solid var(--cwm-border);
  background: #080a10;
  font-size: 13px;
  color: var(--cwm-text-dim);
}

.theme-cryptowire-m .cwm-footer p {
  margin: 8px 0;
}

.theme-cryptowire-m .cwm-footer .site-contact-emails {
  margin: 10px 0;
}

.theme-cryptowire-m .cwm-footer .site-contact-email {
  color: var(--cwm-text-dim);
  font-size: 12.5px;
}

.theme-cryptowire-m .cwm-footer-meta a {
  color: var(--cwm-text-dim);
}

.theme-cryptowire-m .cwm-disclaimer {
  font-size: 11.5px;
}

/* Bottom tab bar */
.theme-cryptowire-m .cwm-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  background: #0d1119;
  border-top: 1px solid var(--cwm-border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.theme-cryptowire-m .cwm-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 0 8px;
  text-decoration: none;
  color: var(--cwm-text-dim);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
}

.theme-cryptowire-m .cwm-tab-icon {
  font-size: 18px;
  line-height: 1;
}

.theme-cryptowire-m .cwm-tab:active {
  color: var(--cwm-accent);
}
