:root{
  --bg: #2b2b2b;
  --panel: #2f2f2f;
  --panel2:#333;
  --text:#e9e9e9;
  --muted:#bdbdbd;
  --border:#1f1f1f;
  --accent:#7a3cff;      /* purple */
  --accent2:#ff2aa6;     /* pink (links) */
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --radius: 14px;
  --max: 980px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{box-sizing:border-box}

html, body{height:100%}

/* Sticky footer setup */
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);

  min-height:100vh;
  display:flex;
  flex-direction:column;
}

a{color:var(--accent2); text-decoration:none}
a:hover{text-decoration:underline}

.topline{
  height:3px;
  background:linear-gradient(90deg, var(--accent), #a855f7, var(--accent));
}

header{
  position:sticky;
  top:0;
  z-index:10;
  background:#262626;
  border-bottom:1px solid #1b1b1b;
}

.nav{
  max-width:var(--max);
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  font-weight:700;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand img{
  width:28px;
  height:28px;
  border-radius:8px;
}

.menu{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}
.menu a{
  color:var(--text);
  opacity:.9;
  font-weight:600;
  font-size:14px;
}
.menu a:hover{opacity:1; text-decoration:none}

/* This makes the footer stay at the bottom when content is short */
main{
  max-width:var(--max);
  margin:0 auto;
  padding:32px 16px 40px;
  flex:1;
}

.hero{
  text-align:center;
  margin:18px 0 18px;
}
.hero h1{
  margin:0;
  font-size:44px;
  letter-spacing:.3px;
}
.hero p{
  margin:10px auto 0;
  max-width:680px;
  color:var(--muted);
  line-height:1.5;
}

.pager{
  display:flex;
  justify-content:center;
  gap:6px;
  margin:18px 0 18px;
  flex-wrap:wrap;
}
.pager a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:32px;
  padding:0 10px;
  border-radius:6px;
  border:1px solid #1d1d1d;
  background:#242424;
  color:var(--text);
  font-weight:700;
  font-size:13px;
  box-shadow:0 2px 0 rgba(0,0,0,.25);
}
.pager a.active{
  background:#eaeaea;
  color:#111;
}
.pager a:hover{text-decoration:none; filter:brightness(1.08)}

.list{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:8px;
}

.card{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap:18px;
  background:linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.thumb{
  background:#1f1f1f;
  display:flex;
  align-items:center;
  justify-content:center;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.content{
  padding:18px 18px 16px 0;
}
.content h2{
  margin:0 0 8px;
  font-size:22px;
}
.meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
  margin-bottom:10px;
}
.content p{
  margin:0;
  color:#d7d7d7;
  line-height:1.55;
  max-width:560px;
}

.badges{
  margin-top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.badge{
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  padding:6px 10px;
  border-radius:999px;
  background:#202020;
  border:1px solid #151515;
  color:#eaeaea;
}

footer{
  margin-top:34px;
  padding:24px 0 26px;
  border-top:1px solid #1b1b1b;
  background:#2a2a2a;
}
.footer-inner{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
}

.social{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
}
.social a{
  width:44px;
  height:44px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#2f2f2f;
  border:1px solid #1c1c1c;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}
.social a:hover{filter:brightness(1.12); text-decoration:none}

.copy{
  color:var(--muted);
  font-weight:700;
}

.small{
  font-size:12px;
  color:var(--muted);
}

/* responsive */
@media (max-width: 860px){
  .card{grid-template-columns:1fr}
  .content{padding:16px}
  .thumb{height:180px}
  .hero h1{font-size:36px}
}

/* Dropdown */
.dropdown{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.dropbtn{
  background:transparent;
  border:0;
  color:var(--text);
  opacity:.9;
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  padding:6px 8px;
  border-radius:8px;
}
.dropbtn:hover{opacity:1}

.dropbtn:after{
  content:"▾";
  margin-left:6px;
  font-size:12px;
  opacity:.8;
}

.dropdown-content{
  position:absolute;
  top:100%;
  right:0;
  min-width:180px;
  background:#222;
  border:1px solid #151515;
  border-radius:12px;
  box-shadow:0 14px 30px rgba(0,0,0,.45);
  padding:8px;
  display:none;
  z-index:99;
}

.dropdown-content a{
  display:block;
  padding:10px 10px;
  border-radius:10px;
  color:var(--text);
  font-weight:700;
  font-size:13px;
  opacity:.92;
}

.dropdown-content a:hover{
  background:#2b2b2b;
  opacity:1;
  text-decoration:none;
}

.dropdown:hover .dropdown-content{display:block}