/*
Theme Name: ToolList
Theme URI: https://example.com/
Author: ChatGPT
Author URI: https://example.com/
Description: A clean, modern, card-list WordPress theme inspired by simple tool directories. Uses featured images, titles, and tags prominently.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toollist
Tags: blog, one-column, two-columns, custom-logo, featured-images, translation-ready
*/

:root{
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface2: #fbfcff;
  --border: rgba(15, 23, 42, .10);
  --border2: rgba(15, 23, 42, .14);
  --text: rgba(15, 23, 42, .92);      /* slate-900 */
  --muted: rgba(15, 23, 42, .70);
  --muted2: rgba(15, 23, 42, .55);
  --accent: #2563eb;                  /* blue-600 */
  --radius: 14px;
  --shadow-sm: 0 10px 30px rgba(15,23,42,.08);
  --maxw: 1120px;
  --ring: 0 0 0 4px rgba(37,99,235,.14);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(37,99,235,.08), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(99,102,241,.07), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family: var(--font);
  line-height:1.55;
}
a{color:inherit; text-decoration:none}
a:hover{color:var(--text)}
img{max-width:100%; height:auto; display:block}

.container{
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(246,247,251,.78);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(99,102,241,.92));
  box-shadow: 0 10px 28px rgba(37,99,235,.18);
}
.brand-title{
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-sub{
  display:block;
  font-size: 13px;
  color: var(--muted2);
  margin-top: -2px;
}
.search{
  flex:1;
  display:flex;
  justify-content:flex-end;
}
.search form{
  width: min(520px, 100%);
  position:relative;
}
.search .search-field{
  width:100%;
  padding: 11px 12px 11px 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.75);
  color: var(--text);
  outline: none;
}
.search .search-field:focus{
  border-color: rgba(37,99,235,.35);
  box-shadow: var(--ring);
}
.search .search-submit{display:none}
.search .icon{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .65;
}

.main{
  padding: 26px 0 64px;
}

.page-title{
  margin: 18px 0 10px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.meta-line{
  color: var(--muted2);
  font-size: 13px;
  margin: 0 0 18px;
}

.layout{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

.cards{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.card{
  display:flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,252,255,.90));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  border-color: rgba(15,23,42,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(251,252,255,.95));
}
.thumb{
  width: 150px;
  min-width: 150px;
  height: 110px;
  border-radius: 12px;
  overflow:hidden;
  background: rgba(15,23,42,.04);
  border: 1px solid var(--border);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
}
.card-body{
  min-width: 0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.card-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.card-excerpt{
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chips{
  display:flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(37,99,235,.04);
  color: rgba(15,23,42,.76);
  font-size: 12px;
}
.chip:hover{
  border-color: rgba(37,99,235,.28);
  color: rgba(15,23,42,.92);
}
.chip-dot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(37,99,235,.80);
}

/* Sidebar */
.sidebar{
  position: sticky;
  top: 88px;
}
.widget-area{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.widget{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}
.widget-title{
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.widget ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.widget a{
  color: rgba(15,23,42,.86);
}
.widget a:hover{
  color: var(--accent);
}

.pagination{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:center;
}
.pagination a, .pagination span{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  font-size: 13px;
}
.pagination a:hover{
  border-color: rgba(15,23,42,.18);
  color: var(--text);
}

.single{
  max-width: 820px;
}
.single h1{
  margin: 10px 0 10px;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.single .byline{
  color: var(--muted2);
  font-size: 13px;
  margin-bottom: 18px;
}
.single .single-thumb{
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.02);
  margin: 18px 0 18px;
}
.single .content{
  color: rgba(15,23,42,.88);
}
.single .content h2, .single .content h3{
  letter-spacing: -0.02em;
  margin-top: 26px;
}
.single .content a{
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer{
  border-top: 1px solid var(--border);
  padding: 22px 0 26px;
  color: var(--muted2);
  font-size: 13px;
}

/* Mobile */
@media (max-width: 920px){
  .layout{grid-template-columns: 1fr}
  .sidebar{position: static}
}

@media (max-width: 680px){
  .container{width: calc(100% - 28px);}
  .header-inner{flex-direction:column; align-items:stretch}
  .search{justify-content:stretch}
  .card{flex-direction: column; gap: 10px}
  .thumb{width: 100%; min-width: 100%; height: 190px}
}
