/* styles.css */
:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --text:#e8eefc;
  --muted:#b7c2dd;
  --border:rgba(255,255,255,.10);
  --accent:#7aa2ff;
  --accent2:#4ee6a8;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 700px at 20% 0%, rgba(122,162,255,.18), transparent 60%),
              radial-gradient(900px 600px at 90% 10%, rgba(78,230,168,.14), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:18px}

.header{
  position:sticky;top:0;z-index:50;
  background: rgba(11,18,32,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:.2px}
.logo{width:34px;height:34px;border-radius:10px;background: linear-gradient(135deg, var(--accent), var(--accent2))}
.menu{display:flex;gap:14px;flex-wrap:wrap}
.menu a{opacity:.9}
.menu a:hover{opacity:1;text-decoration:underline}

.search{
  display:flex;gap:8px;align-items:center;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding:8px 10px;border-radius:12px;
}
.search input{width:220px;max-width:40vw;border:0;outline:0;background:transparent;color:var(--text)}
.search button{
  border:0;cursor:pointer;padding:7px 10px;border-radius:10px;
  background: rgba(122,162,255,.16);color: var(--text);
}
.search button:hover{background: rgba(122,162,255,.25)}

.hero{padding:24px 0 10px}
.h1{font-size:34px;line-height:1.15;margin:0 0 8px}
.p{color:var(--muted);max-width:72ch;margin:0 0 14px}

.grid{display:grid;grid-template-columns: 1.2fr .8fr;gap:16px}
@media(max-width:900px){.grid{grid-template-columns:1fr}}

.card{
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px;
}

.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.section-title h2{margin:0;font-size:16px}
.badge{
  font-size:12px;color: var(--muted);
  border:1px solid var(--border);
  padding:6px 10px;border-radius:999px;
}

.list{display:grid;gap:10px}
.item{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
}
.item:hover{background: rgba(255,255,255,.05)}
.meta{margin-top:8px;color:var(--muted);font-size:12px;display:flex;gap:10px;flex-wrap:wrap}

.item-row{display:flex;gap:12px;align-items:flex-start}
.thumb{
  width:120px;height:72px;flex:0 0 120px;
  border-radius:14px;object-fit:cover;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
@media(max-width:520px){
  .thumb{width:96px;height:64px;flex-basis:96px}
}
.item h3{margin:0 0 6px;font-size:15px}
.item p{margin:0;color:var(--muted);font-size:13px}

/* Sponsored cards */
.sponsored-grid{display:grid;grid-template-columns:1fr;gap:10px}
.sponsored-card{
  border:1px solid rgba(122,162,255,.28);
  background: linear-gradient(180deg, rgba(122,162,255,.10), rgba(255,255,255,.03));
  border-radius:18px;
  padding:12px;
}
.sponsored-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.sponsored-label{
  font-size:11px;padding:5px 9px;border-radius:999px;
  background: rgba(78,230,168,.14);border:1px solid rgba(78,230,168,.22);color: var(--text);
}
.sponsored-tag{font-size:11px;color:var(--muted);border:1px solid var(--border);padding:5px 9px;border-radius:999px}
.sponsored-card h3{margin:0 0 6px;font-size:15px}
.sponsored-card p{margin:0;color:var(--muted);font-size:12px}
.sponsored-actions{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-block;padding:9px 12px;border-radius:12px;
  background: rgba(122,162,255,.20);border:1px solid rgba(122,162,255,.22);
}
.btn:hover{background: rgba(122,162,255,.30)}
.btn2{background: rgba(255,255,255,.05);border:1px solid var(--border)}
.btn2:hover{background: rgba(255,255,255,.08)}

/* Article hero image */
.article-hero{
  width:100%;
  border-radius:18px;
  border:1px solid var(--border);
  margin: 0 0 12px;
  max-height: 360px;
  object-fit: cover;
  background: rgba(255,255,255,.03);
}

/* Ad slots */
.ad-slot{
  border:1px dashed rgba(255,255,255,.25);
  color: var(--muted);
  border-radius:16px;
  padding:14px;
  text-align:center;
  font-size:13px;
  background: rgba(255,255,255,.03);
}
.ad-slot small{display:block;opacity:.9;margin-top:6px}

.footer{margin-top:20px;border-top:1px solid var(--border);padding:18px 0;color:var(--muted);font-size:13px}
.footer a{text-decoration:underline}
