/* ============================================================
   TrueVitaHub — AI NEWS ARCHIVE
   Phase 1 Premium Archive UI
   ============================================================ */

.tvh-news-page{width:100%;background:#f7f9fc;color:#101828;padding:0 0 96px}
.tvh-news-container{width:min(1180px,calc(100% - 40px));margin:0 auto}

.tvh-news-header{text-align:center;max-width:900px;margin:0 auto;padding:68px 20px 40px}
.tvh-news-eyebrow{display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border:1px solid #dbe5ff;border-radius:999px;background:#eef4ff;color:#295eea;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.tvh-news-eyebrow-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:50%;background:#fff;font-size:11px}
.tvh-news-header h1{margin:20px 0 16px;font-size:clamp(38px,5vw,58px);line-height:1.06;font-weight:850;letter-spacing:-.045em;color:#101828}
.tvh-news-header p{max-width:760px;margin:0 auto;font-size:17px;line-height:1.75;color:#667085}

.tvh-news-toolbar{display:flex;flex-direction:column;gap:18px;margin:0 0 42px;padding:18px;background:#fff;border:1px solid #e4e8ef;border-radius:18px;box-shadow:0 8px 28px rgba(16,24,40,.045)}
.tvh-news-search{display:flex;gap:10px;width:100%}
.tvh-news-search input{flex:1;min-width:0;height:50px;padding:0 16px;border:1px solid #dfe5ee;border-radius:11px;background:#fbfcfe;color:#101828;font-size:14px;outline:none;box-shadow:none}
.tvh-news-search input:focus{border-color:#9eb5ff;box-shadow:0 0 0 4px rgba(41,94,234,.08)}
.tvh-news-search button{height:50px;padding:0 22px;border:0;border-radius:11px;background:#295eea;color:#fff;font-size:14px;font-weight:750;cursor:pointer;transition:transform .2s ease,background .2s ease}
.tvh-news-search button:hover{background:#1748cf;transform:translateY(-1px)}
.tvh-news-category-nav{display:flex;align-items:center;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.tvh-news-category-nav::-webkit-scrollbar{display:none}
.tvh-news-category-nav a{flex:0 0 auto;padding:8px 13px;border:1px solid #e1e6ee;border-radius:999px;background:#fff;color:#667085;font-size:12px;font-weight:700;text-decoration:none;transition:.2s ease}
.tvh-news-category-nav a:hover{border-color:#cbd9ff;background:#eef4ff;color:#295eea}
.tvh-news-category-nav a.is-active{border-color:#295eea;background:#295eea;color:#fff}

.tvh-news-section-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px}
.tvh-news-section-title{display:flex;align-items:center;gap:13px}
.tvh-news-section-icon{display:flex;align-items:center;justify-content:center;width:45px;height:45px;border:1px solid #e5eaf1;border-radius:13px;background:#fff;box-shadow:0 5px 18px rgba(16,24,40,.06);font-size:19px}
.tvh-news-section-title h2{margin:0 0 3px;font-size:26px;line-height:1.2;font-weight:820;letter-spacing:-.02em;color:#101828}
.tvh-news-section-title p{margin:0;font-size:13px;color:#7a8699}
.tvh-news-updated{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #e4e9f0;border-radius:999px;background:#fff;color:#667085;font-size:12px;font-weight:650;white-space:nowrap}
.tvh-news-live-dot{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.1)}

.tvh-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.tvh-news-card{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;background:#fff;border:1px solid #e3e8f0;border-radius:20px;box-shadow:0 7px 24px rgba(16,24,40,.055);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease}
.tvh-news-card:hover{transform:translateY(-5px);border-color:#cedaf4;box-shadow:0 20px 45px rgba(16,24,40,.10)}
.tvh-news-card-featured{grid-column:span 2;border-color:#d7e2ff;box-shadow:0 10px 32px rgba(41,94,234,.075)}

.tvh-news-card-image{display:block;position:relative;width:100%;height:210px;overflow:hidden;background:#eef2f7;text-decoration:none}
.tvh-news-card-featured .tvh-news-card-image{height:320px}
.tvh-news-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.tvh-news-card:hover .tvh-news-card-image img{transform:scale(1.045)}
.tvh-news-card-image:after{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,rgba(15,23,42,0) 52%,rgba(15,23,42,.18) 100%);pointer-events:none}
.tvh-news-image-badge{position:absolute;z-index:2;left:15px;bottom:14px;padding:7px 10px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(15,23,42,.72);backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}

.tvh-news-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;width:100%;height:100%;background:linear-gradient(135deg,#edf3ff,#f7f9fc 50%,#eaf1ff);color:#64748b}
.tvh-news-placeholder-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border:1px solid #e1e8f5;border-radius:16px;background:#fff;box-shadow:0 8px 25px rgba(16,24,40,.07);font-size:25px}
.tvh-news-placeholder>span:last-child{font-size:10px;font-weight:800;letter-spacing:.08em}

.tvh-news-card-content{display:flex;flex-direction:column;flex:1;padding:21px 21px 19px}
.tvh-news-card-featured .tvh-news-card-content{padding:25px 26px 22px}
.tvh-news-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.tvh-news-category{display:inline-flex;align-items:center;max-width:65%;overflow:hidden;padding:6px 9px;border-radius:7px;background:#eef4ff;color:#295eea;font-size:9px;font-weight:800;letter-spacing:.07em;line-height:1;text-overflow:ellipsis;white-space:nowrap}
.tvh-news-date{font-size:11px;font-weight:650;color:#98a2b3;white-space:nowrap}
.tvh-news-title{margin:0 0 10px;font-size:20px;line-height:1.38;font-weight:800;letter-spacing:-.02em}
.tvh-news-card-featured .tvh-news-title{font-size:29px;line-height:1.28;letter-spacing:-.028em}
.tvh-news-title a{color:#111827;text-decoration:none;transition:color .2s ease}
.tvh-news-title a:hover{color:#295eea}
.tvh-news-submeta{display:flex;align-items:center;gap:8px;min-height:19px;margin-bottom:10px;color:#8a95a5;font-size:11px;font-weight:600}
.tvh-news-submeta span+span:before{content:"•";margin-right:8px;color:#c0c7d1}
.tvh-news-excerpt{font-size:13px;line-height:1.72;color:#667085}
.tvh-news-card-featured .tvh-news-excerpt{font-size:14px;line-height:1.75;max-width:760px}
.tvh-news-card-footer{margin-top:auto;padding-top:18px}
.tvh-news-read-more{display:inline-flex;align-items:center;gap:7px;color:#295eea;font-size:13px;font-weight:800;text-decoration:none;transition:gap .2s ease,color .2s ease}
.tvh-news-read-more:hover{gap:11px;color:#1748cf}
.tvh-news-read-arrow{font-size:16px;line-height:1}

.tvh-news-pagination{display:flex;justify-content:center;margin-top:46px}
.tvh-news-pagination ul{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}
.tvh-news-pagination li{margin:0;padding:0;list-style:none}
.tvh-news-pagination a,.tvh-news-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid #e1e6ee;border-radius:10px;background:#fff;color:#475467;font-size:12px;font-weight:700;text-decoration:none;transition:.2s ease}
.tvh-news-pagination a:hover{background:#eef4ff;border-color:#cbd9ff;color:#295eea;transform:translateY(-1px)}
.tvh-news-pagination .current{border-color:#295eea;background:#295eea;color:#fff}

.tvh-news-empty{max-width:700px;margin:20px auto 0;padding:72px 30px;text-align:center;background:#fff;border:1px solid #e4e8ef;border-radius:22px;box-shadow:0 8px 28px rgba(16,24,40,.05)}
.tvh-news-empty-icon{display:flex;align-items:center;justify-content:center;width:68px;height:68px;margin:0 auto 20px;border-radius:18px;background:#eef4ff;color:#295eea;font-size:30px}
.tvh-news-empty h2{margin:0 0 10px;font-size:25px;font-weight:800;color:#101828}
.tvh-news-empty p{max-width:520px;margin:0 auto 22px;font-size:15px;line-height:1.7;color:#667085}
.tvh-news-empty-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border-radius:10px;background:#295eea;color:#fff;font-size:13px;font-weight:750;text-decoration:none}

.tvh-news-card a:focus-visible,.tvh-news-pagination a:focus-visible,.tvh-news-category-nav a:focus-visible,.tvh-news-search input:focus-visible,.tvh-news-search button:focus-visible{outline:3px solid rgba(41,94,234,.22);outline-offset:3px}

@media(max-width:1024px){
 .tvh-news-container{width:min(940px,calc(100% - 32px))}
 .tvh-news-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .tvh-news-card-featured{grid-column:span 2}
 .tvh-news-card-featured .tvh-news-card-image{height:300px}
}

@media(max-width:700px){
 .tvh-news-container{width:min(100% - 28px,560px)}
 .tvh-news-header{padding:42px 7px 32px}
 .tvh-news-header h1{font-size:36px;line-height:1.1}
 .tvh-news-header p{font-size:15px;line-height:1.65}
 .tvh-news-toolbar{padding:13px;margin-bottom:30px}
 .tvh-news-search{gap:7px}
 .tvh-news-search input{height:47px}
 .tvh-news-search button{height:47px;padding:0 16px}
 .tvh-news-section-heading{align-items:flex-start;flex-direction:column;gap:13px}
 .tvh-news-grid{grid-template-columns:1fr;gap:17px}
 .tvh-news-card-featured{grid-column:auto}
 .tvh-news-card-image,.tvh-news-card-featured .tvh-news-card-image{height:230px}
 .tvh-news-card-featured .tvh-news-title{font-size:24px}
 .tvh-news-card-featured .tvh-news-card-content{padding:21px 20px 19px}
}

@media(max-width:420px){
 .tvh-news-container{width:calc(100% - 22px)}
 .tvh-news-header h1{font-size:31px}
 .tvh-news-search button{padding:0 13px}
 .tvh-news-card-image,.tvh-news-card-featured .tvh-news-card-image{height:205px}
 .tvh-news-title{font-size:19px}
}

@media(prefers-reduced-motion:reduce){
 .tvh-news-card,.tvh-news-card-image img,.tvh-news-read-more,.tvh-news-title a,.tvh-news-pagination a,.tvh-news-search button{transition:none}
 .tvh-news-card:hover{transform:none}
 .tvh-news-card:hover .tvh-news-card-image img{transform:none}
}
