/* Libraries page specific styles */
.libraries-hero.week-hero { padding:120px 0 80px; }
.libraries-section { padding:60px 0; }
.libraries-section:nth-of-type(even) { background: var(--bg-light); }
.libraries-section h2 { font-size:2.2rem; text-align:center; margin:0 0 50px; position:relative; font-weight:700; }
.libraries-section h2::after { content:''; position:absolute; width:90px; height:4px; background:linear-gradient(to right,var(--primary-color),var(--secondary-color)); bottom:-14px; left:50%; transform:translateX(-50%); border-radius:2px; }

.library-grid { display:grid; gap:30px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.library-card { background:#fff; border-radius:16px; box-shadow:var(--shadow); overflow:hidden; display:flex; flex-direction:column; transition:var(--transition); border:1px solid var(--border-color); }
.library-card:hover { transform:translateY(-6px); box-shadow:0 10px 28px rgba(0,0,0,0.12); }
.thumb { height:120px; background:#2d3748; display:flex; align-items:center; justify-content:center; font-size:2rem; color:#fff; font-weight:600; position:relative; }
.thumb::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0),rgba(255,255,255,0.08)); }
.thumb-react { background:#20232a url('https://raw.githubusercontent.com/facebook/react/main/fixtures/dom/public/react-logo.svg') center/60px no-repeat; }
.thumb-vue { background:#2c3e50 url('https://vuejs.org/images/logo.png') center/60px no-repeat; }
.thumb-svelte { background:#ff3e00 url('https://raw.githubusercontent.com/sveltejs/branding/master/svelte-logo.svg') center/70px no-repeat; }
.thumb-angular { background:#b52e31 url('https://angular.io/assets/images/logos/angular/angular.svg') center/70px no-repeat; }
.thumb-bootstrap { background:#563d7c url('https://getbootstrap.com/docs/5.3/assets/brand/bootstrap-logo-shadow.png') center/70px no-repeat; }
.thumb-tailwind { background:#0f172a url('https://tailwindcss.com/_next/static/media/tailwindcss-logotype.7c090530.svg') center/160px no-repeat; }
.thumb-d3 { background:#f9f9f9 url('https://raw.githubusercontent.com/d3/d3-logo/master/d3.png') center/80px no-repeat; }
.thumb-three { background:#000 url('https://threejs.org/files/favicon_white.ico') center/64px no-repeat; }
.thumb-gsap { background:#111 url('https://greensock.com/uploads/monthly_2020_03/gsap-logo.svg') center/140px no-repeat; }
.thumb-chartjs { background:#fff url('https://www.chartjs.org/media/logo-title.svg') center/150px no-repeat; }
.thumb-axios { background:#0A192F; display:flex; font-size:1.4rem; font-weight:700; font-family:monospace; }
.thumb-axios::before { content:'AXIOS'; letter-spacing:2px; }
.thumb-zustand { background:#1a1a1a; font-size:1.3rem; font-weight:600; }
.thumb-zustand::before { content:'🐻'; }
.thumb-redux { background:#764abc url('https://raw.githubusercontent.com/reduxjs/redux/master/logo/logo.png') center/70px no-repeat; }
.thumb-next { background:#000 url('https://assets.vercel.com/image/upload/v1662130559/nextjs/Icon_light_background.png') center/70px no-repeat; }
.thumb-astro { background:#1b1b26 url('https://raw.githubusercontent.com/withastro/astro/main/.github/assets/astro-logo-dark.svg') center/90px no-repeat; }
.thumb-lit { background:#202124 url('https://raw.githubusercontent.com/lit/lit/main/packages/lit-dev-content/site/images/logo.svg') center/90px no-repeat; }
.thumb-alpine { background:#2d3748 url('https://raw.githubusercontent.com/alpinejs/alpine/master/packages/alpinejs/logo.svg') center/90px no-repeat; }
.thumb-framer { background:#000 url('https://raw.githubusercontent.com/framer/motion/main/.github/assets/motion.png') center/90px no-repeat; }
.thumb-radix { background:#111 url('https://www.radix-ui.com/favicon.svg') center/70px no-repeat; }
.thumb-query { background:#171923 url('https://raw.githubusercontent.com/TanStack/query/main/media/emblem-light.svg') center/70px no-repeat; }
.thumb-vitest { background:#1e293b url('https://vitest.dev/logo.svg') center/80px no-repeat; }
.thumb-cypress { background:#24292e url('https://raw.githubusercontent.com/cypress-io/cypress/develop/assets/cypress-logo-dark.png') center/120px no-repeat; }
.thumb-preact { background:#673ab8 url('https://raw.githubusercontent.com/preactjs/preact/master/assets/preact-logo.svg') center/80px no-repeat; }
.thumb-solid { background:#2c4f7c url('https://www.solidjs.com/assets/logo-123b04bc.svg') center/80px no-repeat; }
.thumb-emotion { background:#1e293b; font-size:1.1rem; font-weight:600; }
.thumb-emotion::before { content:'emotion'; letter-spacing:1px; }
.thumb-styled { background:#302d41; font-size:0.9rem; font-weight:600; }
.thumb-styled::before { content:'styled'; }
.thumb-swr { background:#000 url('https://raw.githubusercontent.com/vercel/swr/main/.github/swr-logo.png') center/120px no-repeat; }
.thumb-pinia { background:#ffdd57 url('https://pinia.vuejs.org/logo.svg') center/75px no-repeat; }
.thumb-unocss { background:#111827 url('https://raw.githubusercontent.com/unocss/unocss/main/playground/public/icon-gray.svg') center/80px no-repeat; }
.thumb-partytown { background:#5b21b6 url('https://partytown.builder.io/img/partytown-icon.png') center/80px no-repeat; }
.thumb-shoelace { background:#1e1e2d url('https://shoelace.style/assets/images/logo/shoelace-logo.svg') center/120px no-repeat; }

.library-body { padding:22px 22px 20px; display:flex; flex-direction:column; gap:12px; flex:1; }
.library-body h3 { margin:0; font-size:1.25rem; color:var(--primary-color); }
.library-body .summary { margin:0; color:var(--text-light); font-size:0.9rem; line-height:1.55; flex:1; }
.meta { display:flex; gap:14px; flex-wrap:wrap; }
.meta a { font-size:0.75rem; background:var(--primary-color); color:#fff; padding:6px 12px; border-radius:20px; text-decoration:none; font-weight:500; letter-spacing:0.5px; transition:var(--transition); }
.meta a.github { background:#24292e; }
.meta a:hover { transform:translateY(-3px); box-shadow:0 4px 12px rgba(0,0,0,0.18); }

/* Tools section */
.tool-grid { display:grid; gap:28px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.tool-item { background:#fff; border:1px solid var(--border-color); border-radius:14px; padding:20px 18px 18px; position:relative; box-shadow:var(--shadow); transition:var(--transition); }
.tool-item:hover { transform:translateY(-5px); box-shadow:0 8px 24px rgba(0,0,0,0.12); }
.tool-item h4 { margin:0 0 10px; font-size:1.05rem; color:var(--secondary-color); }
.tool-item p { margin:0 0 14px; font-size:0.85rem; line-height:1.5; color:var(--text-light); }
.meta.small a { font-size:0.65rem; padding:5px 10px; }

@media (max-width: 768px) {
  .libraries-hero.week-hero { padding:100px 0 60px; }
  .libraries-section { padding:50px 0; }
  .libraries-section h2 { font-size:2rem; }
  .library-grid { gap:24px; }
  .tool-grid { gap:22px; }
}
@media (max-width: 480px) {
  .libraries-section h2 { font-size:1.8rem; }
  .library-body h3 { font-size:1.15rem; }
  .library-body .summary { font-size:0.85rem; }
}

/* =============================
   Frontend Roadmap Section
   ============================= */
.roadmap-section { padding:60px 0 70px; }
.roadmap-section .container { max-width:1400px; }
.roadmap-intro { margin:0 0 22px; font-size:0.95rem; color:var(--text-light); text-align:center; }
.roadmap-intro a { color:var(--primary-color); font-weight:600; }
.roadmap-grid { display:grid; gap:18px; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }
.roadmap-card { background:#fff; border:1px solid var(--border-color); border-radius:14px; padding:16px 16px 18px; box-shadow:var(--shadow-sm,0 2px 4px rgba(0,0,0,0.05)); display:flex; flex-direction:column; gap:10px; position:relative; overflow:hidden; }
.roadmap-card::before { content:""; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0),rgba(0,0,0,0.04)); pointer-events:none; }
.roadmap-card h3 { margin:0; font-size:0.95rem; font-weight:600; letter-spacing:-0.25px; color:var(--secondary-color); }
.roadmap-card ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.roadmap-card li { font-size:0.7rem; line-height:1.25; color:var(--text-light); }
.roadmap-note { margin-top:28px; font-size:0.8rem; color:var(--text-light); background:linear-gradient(90deg,#f7f7f7,#fcfcfc); border:1px solid var(--border-color); padding:14px 16px; border-radius:12px; text-align:center; }

@media (min-width: 1200px) {
  .roadmap-card h3 { font-size:1.05rem; }
  .roadmap-card li { font-size:0.72rem; }
}
@media (max-width: 640px) {
  .roadmap-grid { gap:14px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
  .roadmap-card { padding:14px 14px 16px; }
  .roadmap-card h3 { font-size:0.9rem; }
  .roadmap-card li { font-size:0.68rem; }
}
@media (prefers-color-scheme: dark) {
  .roadmap-card { background:#1d1f23; border-color:#2b2f36; box-shadow:0 2px 6px rgba(0,0,0,0.55); }
  .roadmap-card::before { background:linear-gradient(135deg,rgba(255,255,255,0.02),rgba(255,255,255,0)); }
  .roadmap-card h3 { color:#e6e8ea; }
  .roadmap-card li, .roadmap-intro, .roadmap-note { color:#b5bcc3; }
  .roadmap-note { background:linear-gradient(90deg,#1e2024,#23252a); border-color:#2b2f36; }
}
