/* ============================================================
   Coindaily - Crypto News Wire
   Complements styles.css.
   ============================================================ */

.news-hero { padding: 24px 0 18px; border-bottom: 1px solid var(--hairline); }
.news-hero .nh-title { display: flex; align-items: center; gap: 12px; }
.news-hero h1 { font-size: 27px; font-weight: 700; color: var(--tx-hi); letter-spacing: -0.025em; }
.news-hero .nh-desc { font-size: 13.5px; color: var(--tx-mid); max-width: 780px; margin-top: 12px; line-height: 1.6; }
.news-stat-strip { display: flex; gap: 20px; align-items: center; margin-top: 14px; font-family: var(--mono); font-size: 11.5px; }
.news-stat-strip b { color: var(--tx-hi); font-weight: 600; }
.news-stat-strip .ns-pip { width: 6px; height: 6px; border-radius: 50%; background: var(--up); display: inline-block; margin-right: 7px; animation: nspulse 2.2s infinite; }
@keyframes nspulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* filter chips */
.news-filters { display: flex; gap: 4px; flex-wrap: wrap; margin: 22px 0 16px; }
.news-filters button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; color: var(--tx-mid); font-weight: 500; border: 1px solid var(--hairline); background: var(--panel); transition: .12s; }
.news-filters button:hover { color: var(--tx-hi); border-color: rgba(255,255,255,.16); }
.news-filters button.active { color: var(--tx-hi); border-color: rgba(201,154,75,.4); background: var(--panel-2); }
.news-filters .nf-dot { width: 7px; height: 7px; border-radius: 50%; }
.news-filters .nf-n { font-family: var(--mono); font-size: 10px; color: var(--tx-dim); }

/* feed grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 14px; align-items: start; }
.news-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: .14s; min-height: 150px; }
.news-card:hover { border-color: rgba(255,255,255,.18); background: var(--panel-2); transform: translateY(-2px); }
.nc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 17px; }
.nc-img { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); border-bottom: 1px solid var(--hairline); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.news-card:hover .nc-img img { transform: scale(1.05); }
.news-card.lead { grid-column: span 3; flex-direction: column; }
.news-card.lead.has-img { flex-direction: row; align-items: stretch; }
.news-card.lead.has-img .nc-img { width: 44%; aspect-ratio: auto; min-height: 210px; flex-shrink: 0; border-bottom: none; border-right: 1px solid var(--hairline); }
.news-card.lead .nc-body { justify-content: center; }
.news-card.lead .nc-title { font-size: 22px; line-height: 1.25; }
.news-card.lead .nc-snip { font-size: 13.5px; -webkit-line-clamp: 2; }
.nc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.nc-src { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.nc-src .dot { width: 6px; height: 6px; border-radius: 50%; }
.nc-time { font-family: var(--mono); font-size: 10.5px; color: var(--tx-dim); white-space: nowrap; }
.nc-title { font-size: 14.5px; font-weight: 600; color: var(--tx-hi); line-height: 1.35; letter-spacing: -0.01em; }
.nc-snip { font-size: 12.5px; color: var(--tx-mid); line-height: 1.5; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-go { font-size: 11px; color: var(--amber); margin-top: auto; padding-top: 12px; font-weight: 500; }

/* states */
.news-loading, .news-empty { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--tx-dim); font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.spin { width: 16px; height: 16px; border: 2px solid var(--hairline); border-top-color: var(--amber); border-radius: 50%; animation: nsspin .7s linear infinite; display: inline-block; }
@keyframes nsspin { to { transform: rotate(360deg); } }
.news-error { grid-column: 1 / -1; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 30px 26px; }
.news-error .ne-h { font-size: 15px; font-weight: 600; color: var(--tx-hi); margin-bottom: 10px; }
.news-error p { font-size: 13px; color: var(--tx-mid); line-height: 1.6; max-width: 640px; margin-bottom: 14px; }
.news-error .ne-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: 13px; font-weight: 600; }

/* pager */
.news-pager { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px 0 6px; flex-wrap: wrap; }
.news-pager:empty { display: none; }
.news-pager button { min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid var(--hairline); background: var(--panel); border-radius: 7px; font-family: var(--mono); font-size: 12px; color: var(--tx-mid); transition: .12s; }
.news-pager button:hover:not(:disabled) { color: var(--tx-hi); border-color: rgba(255,255,255,.2); }
.news-pager button.active { background: var(--amber); color: #100B02; border-color: var(--amber); font-weight: 600; }
.news-pager button:disabled { opacity: .35; cursor: default; }
.news-pager .info { font-size: 11.5px; color: var(--tx-dim); margin-left: 10px; font-family: var(--mono); }

.news-foot { font-size: 11.5px; color: var(--tx-dim); line-height: 1.6; padding: 16px 0 40px; max-width: 900px; }

@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } .news-card.lead { grid-column: span 2; } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } .news-card.lead { grid-column: span 1; } .news-card.lead.has-img { flex-direction: column; } .news-card.lead.has-img .nc-img { width: 100%; aspect-ratio: 16 / 9; min-height: 0; border-right: none; border-bottom: 1px solid var(--hairline); } .news-card.lead .nc-title { font-size: 18px; } }
