/* ==========================================================================
   AXIONMESK — AxionMesk News na home mobile (premium)
   ========================================================================== */

.cm-news-home {
  padding: 10px 14px calc(96px + env(safe-area-inset-bottom, 0px));
  display: block;
}

/* ------------------------------------------------------------------ head */
.cmn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 14px;
  padding: 0 2px;
}

.cmn-brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.cmn-brand__logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.025em;
  color: #F5F7FA;
  line-height: 1.1;
}

.cmn-brand__news {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.025em;
  background: linear-gradient(135deg, #5C86FF, #386BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.cmn-ver {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 40px;
  font-size: 12.5px;
  font-weight: 700;
  color: #386BFF;
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.cmn-ver span { font-size: 15px; opacity: .8; }

/* --------------------------------------------------------------- filtros */
.cmn-filtros {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2px 12px;
  margin: 0 -14px 4px;
  padding-left: 14px;
  padding-right: 14px;
  scroll-snap-type: x proximity;
}
.cmn-filtros::-webkit-scrollbar { display: none; }

.cmn-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .045);
  color: #9AA2AE;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cmn-chip:active { transform: scale(.95); }

.cmn-chip.is-active {
  background: rgba(56,107,255, .14);
  border-color: rgba(56,107,255, .45);
  color: #386BFF;
  font-weight: 700;
}

/* --------------------------------------------------------------- destaque */
.cmn-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px 16px 15px;
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(130% 110% at 92% 0%, color-mix(in srgb, var(--c, #386BFF) 16%, transparent) 0%, transparent 56%),
    linear-gradient(150deg, #1A1E26 0%, #14171D 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  animation: cmnIn .42s cubic-bezier(.22, 1, .36, 1) both;
  transition: transform .15s ease, border-color .15s ease;
}
.cmn-hero:active {
  transform: scale(.985);
  border-color: color-mix(in srgb, var(--c, #386BFF) 45%, transparent);
}

/* linha superior luminosa na cor da categoria */
.cmn-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c, #386BFF), transparent);
  opacity: .8;
}

.cmn-hero__glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, #386BFF) 22%, transparent) 0%, transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

@keyframes cmnIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cmn-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cmn-hero__badge {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 30px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  color: var(--c, #386BFF);
  background: color-mix(in srgb, var(--c, #386BFF) 17%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #386BFF) 34%, transparent);
}

.cmn-hero__tag {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(56,107,255, .78);
  background: rgba(56,107,255, .1);
  border: 1px solid rgba(56,107,255, .22);
  padding: 4px 9px;
  border-radius: 99px;
}

.cmn-hero__titulo {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: #F1F3F6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmn-hero__resumo {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8E96A3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmn-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(56,107,255, .85);
  margin-top: 2px;
}

.cmn-hero__fonte { color: rgba(56,107,255, .85); }

.cmn-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .28);
  flex: 0 0 3px;
}

/* ------------------------------------------------------------------ lista */
.cmn-lista {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmn-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: 14px;
  background: #151920;
  border: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .13s ease, background .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
  animation: cmnIn .38s cubic-bezier(.22, 1, .36, 1) both;
}

.cmn-item:nth-child(1) { animation-delay: .04s; }
.cmn-item:nth-child(2) { animation-delay: .08s; }
.cmn-item:nth-child(3) { animation-delay: .12s; }
.cmn-item:nth-child(4) { animation-delay: .16s; }
.cmn-item:nth-child(5) { animation-delay: .20s; }
.cmn-item:nth-child(6) { animation-delay: .24s; }
.cmn-item:nth-child(7) { animation-delay: .28s; }
.cmn-item:nth-child(8) { animation-delay: .32s; }

.cmn-item:active {
  transform: scale(.985);
  background: #1A1F27;
  border-color: color-mix(in srgb, var(--c, #386BFF) 40%, transparent);
}

.cmn-item__badge {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 900;
  color: var(--c, #386BFF);
  background: color-mix(in srgb, var(--c, #386BFF) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #386BFF) 28%, transparent);
}

.cmn-item__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.cmn-item__titulo {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.34;
  color: #E4E7EC;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cmn-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #8996AA;
}

.cmn-item__arrow {
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, .22);
  margin-left: 2px;
}

/* ------------------------------------------------------------------ vazio */
.cmn-vazio {
  text-align: center;
  padding: 28px 16px;
  font-size: 13.5px;
  color: #8996AA;
}

/* ------------------------------------------------------- fallback cores */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
  .cmn-hero__badge,
  .cmn-item__badge { background: rgba(56,107,255, .14); border-color: rgba(56,107,255, .3); }
  .cmn-hero { background: linear-gradient(150deg, #1A1E26, #14171D); }
}

/* ------------------------------------------------------------ telas <380 */
@media (max-width: 380px) {
  .cm-news-home { padding-left: 12px; padding-right: 12px; }
  .cmn-brand__logo, .cmn-brand__news { font-size: 19px; }
  .cmn-hero { padding: 15px 14px 13px; }
  .cmn-hero__titulo { font-size: 16px; }
  .cmn-hero__resumo { font-size: 12.5px; }
  .cmn-item { padding: 11px 12px; gap: 10px; }
  .cmn-item__badge { flex-basis: 38px; width: 38px; height: 38px; font-size: 10px; }
  .cmn-item__titulo { font-size: 13.5px; }
}

/* -------------------------------------------------------- acessibilidade */
@media (prefers-reduced-motion: reduce) {
  .cmn-hero, .cmn-item { animation: none !important; transition: none !important; }
  .cmn-hero:active, .cmn-item:active { transform: none !important; }
}
