/* Base layout styles (migrated from styles.css) */
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,'Noto Sans','PingFang SC','Hiragino Sans GB','Microsoft YaHei','Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;background: #eef3f8;color: #1a2b3c}

.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;background:#1877f2;color:#fff;height:52px;padding:0 14px;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.brand{font-weight:600;cursor:pointer}
.icon-btn{background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer}

.drawer{position:fixed;left:0;right:0;top:52px;max-height:0;overflow:hidden;background:#1877f2;color:#fff;transition:max-height .25s ease;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.nav-toggle{display:none}
#navToggle:checked + .drawer{max-height:340px}
.drawer a{display:block;padding:10px 16px;color:#fff;text-decoration:none;border-bottom:1px solid rgba(255,255,255,.15)}

.container{max-width:980px;margin:12px auto;padding:0 12px}
.ad{margin:8px 0;text-align:center;color:#999}
.sections{display:flex;flex-direction:column;gap:18px}
.section-head{display:flex;align-items:center;justify-content:space-between}
.section-head h2{margin:0;text-transform:capitalize}
.section-head .more{color:#1877f2;text-decoration:none}

.cards{display:flex;flex-direction:column;gap:14px}
.card{text-decoration:none;color:inherit;display:block}
.card{background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.12);padding:12px;cursor:pointer;border:1px solid #e6eef7}
.card:hover{box-shadow:0 2px 8px rgba(0,0,0,.16)}
.card .thumb{width:100%;height:220px;object-fit:cover;border-radius:6px}
.card .title{font-size:22px;margin:10px 0 6px}
.card .excerpt{color:#556}
.card .date{color:#8aa; font-size:14px}

.category-title{text-transform:capitalize;margin:8px 0 12px}
.sentinel{height:40px}

/* Masonry (waterfall) layout for category page */
.cards.masonry{
  /* override flex list */
  display:block;
  column-count:3;
  column-gap:16px;
}
.masonry .card{
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  margin:0 0 16px;
  width:100%;
  display:inline-block;
}
@media (max-width: 1024px){
  .cards.masonry{ column-count:2 }
}
@media (max-width: 640px){
  .cards.masonry{ column-count:1 }
}

.article-container{display:grid;grid-template-columns:3fr 1.2fr;gap:18px}
#article .hero{width:100%;max-height:360px;object-fit:cover;border-radius:8px}
#article .meta{color:#6a7a8a;margin:6px 0 10px}
#article .content{line-height:1.8}
#article .content img{width:100%}

.recommendations{display:flex;flex-direction:column;gap:12px}
.mini{text-decoration:none;color:inherit;display:flex;gap:10px;align-items:center;background:#fff;border-radius:8px;border:1px solid #e6eef7;padding:8px}
.mini img{width:120px;height:72px;object-fit:cover;border-radius:6px}
.mini .mini-title{font-size:15px;margin:0}
.mini .mini-date{color:#8aa;font-size:12px}

.footer{margin-top:0;background:#1877f2;color:#fff;padding:16px}
.footer .links{display:flex;justify-content:center;align-items:center;gap:16px;flex-wrap:wrap;max-width:980px;margin:0 auto}
.footer a{color:#fff;text-decoration:none}
.footer .copy{opacity:.8;text-align:center;margin-top:8px;font-size:12px}

@media (max-width: 860px){
  .article-container{grid-template-columns:1fr}
}

/* Dark Glassmorphism Theme for RoomLabNews */
/* Palette: background #0b1220, surfaces glass rgba(255,255,255,0.06), accent #7aa2f7 / #67e8f9 */

:root{
  --bg:#0b1220;
  --surface:rgba(255,255,255,.06);
  --surface-strong:rgba(255,255,255,.1);
  --border:rgba(255,255,255,.12);
  --text:#e6edf3;
  --text-dim:#9fb0c3;
  --accent:#7aa2f7;
  --accent-2:#67e8f9;
}

/* Base */
body{
  background: radial-gradient(1200px 800px at 20% -10%, rgba(103,232,249,.15), transparent 60%),
              radial-gradient(1000px 800px at 120% 10%, rgba(122,162,247,.15), transparent 60%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main{ flex: 1 0 auto; }

/* Top bar */
.topbar{
  background: linear-gradient(180deg, rgba(16,23,40,.7), rgba(16,23,40,.35));
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand{ color:#fff; }
.icon-btn{ color:#fff; }

/* Drawer */
.drawer{
  background: rgba(16,23,40,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.drawer a{ color: var(--text); }
.drawer a:hover{ background: rgba(255,255,255,.06); }

/* Links */
.section-head .more,
.footer a{ color: var(--accent); }
a{ color: var(--accent); }
a:hover{ color: var(--accent-2); }

/* Containers */
.container{ /* keep layout from base */ }
.sections{ gap: 20px; }
.section-head h2{ color:#fff; letter-spacing:.2px }

/* Cards */
.card{
  background: var(--surface);
  border:1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
}
.card .title{ color:#fff; }
.card .excerpt{ color: var(--text-dim); }
.card .date{ color: #8aaec9; }
.card .thumb{ border:1px solid rgba(255,255,255,.08) }

/* Article */
#article .meta{ color: #8aaec9; }
#article .content{ color: var(--text); }
#article .content img{width:100%}
#article .hero{ border:1px solid rgba(255,255,255,.08) }

/* Recommendations */
.recommendations{ gap:14px }
.mini{
  background: var(--surface);
  border: 1px solid var(--border);
}
.mini:hover{ background: rgba(255,255,255,.08); }
.mini .mini-title{ color: var(--text); }
.mini .mini-date{ color: #8aaec9; }

/* Footer */
.footer{
  background: rgba(16,23,40,.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
}
.footer .copy{ color: var(--text-dim); }

/* Pages with inline light background: force override */
.page{
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.page h1, .page h2, .page h3{ color:#fff }

/* Inputs (nav checkbox is hidden in base) remain untouched */

/* Misc */
::selection{ background: rgba(122,162,247,.35) }

/* Responsive tweaks */
@media (max-width: 860px){
  .card .thumb{ height: 200px }
}

/* Load more button */
.load-more{
  display:block;
  margin: 8px auto 16px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.load-more:hover{ background: var(--accent-2); }
.load-more:disabled{
  opacity:.65;
  cursor: not-allowed;
}
.page{max-width:800px;margin:16px auto;background:#fff;border:1px solid #e6eef7;border-radius:8px;padding:16px;line-height:1.8}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 40px 0;
}

.page-info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.page-btn {
  padding: 8px 14px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #333;
  font-weight: 600;
  text-decoration: none;
}

.page-btn:hover {
  background: #e2e8f0;
}

.page-btn.active {
  background: #137fec;
  color: #fff;
}

.page-btn.prev,
.page-btn.next {
  font-weight: 700;
}
