
/* HK AI Tools Directory – frontend */
.hk-atd-container{max-width:1200px;margin:0 auto;padding:24px 18px;}
.hk-atd-wrap{font-family:inherit;}
.hk-atd-page-title{letter-spacing:.08em;text-transform:uppercase;text-align:center;margin:18px 0 22px;font-weight:700;}
.hk-atd-grid{display:grid;gap:20px;}
.hk-atd-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
@media (max-width: 980px){.hk-atd-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width: 640px){.hk-atd-grid-3{grid-template-columns:1fr;}}

.hk-atd-card{display:block;background:#e6e6e6;border-radius:18px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 1px 0 rgba(0,0,0,.05);}
.hk-atd-cat-card{padding:18px;display:flex;gap:16px;align-items:flex-start;min-height:150px;}
.hk-atd-cat-img{width:120px;height:120px;border-radius:16px;overflow:hidden;background:#d5d5d5;flex:0 0 120px;}
.hk-atd-cat-img img{width:100%;height:100%;object-fit:cover;display:block;}
.hk-atd-cat-fallback{width:100%;height:100%;background:linear-gradient(135deg,#d4d4d4,#bfbfbf);}
.hk-atd-cat-body{display:flex;flex-direction:column;gap:8px;}
.hk-atd-cat-title{font-size:22px;font-weight:800;margin-top:2px;}
.hk-atd-cat-sub{font-size:14px;opacity:.8;line-height:1.25;}
.hk-atd-link{margin-top:auto;font-weight:700;opacity:.9;}
.hk-atd-link:after{content:" →";}

.hk-atd-hero{background:#e6e6e6;border-radius:20px;padding:24px;margin:8px 0 24px;display:flex;gap:22px;align-items:stretch;}
.hk-atd-hero-center{justify-content:center;text-align:left;}
.hk-atd-hero-title{font-size:40px;line-height:1.05;margin:0 0 10px;font-weight:900;}
.hk-atd-hero-desc{margin:0 0 14px;opacity:.85;max-width:64ch;}
.hk-atd-hero-buttons{display:flex;gap:12px;flex-wrap:wrap;}
.hk-atd-pill{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--hk-atd-accent,#6b7280);color:#fff;border-radius:999px;padding:10px 18px;font-weight:700;text-decoration:none;}
.hk-atd-pill.hk-atd-pill-ghost{background:#cfcfcf;color:#111;}
.hk-atd-hero-split{padding:0;overflow:hidden;}
.hk-atd-hero-left{padding:24px;flex:1;}
.hk-atd-hero-right{flex:1;min-height:260px;}
.hk-atd-hero-image{width:100%;height:100%;object-fit:cover;display:block;}
.hk-atd-hero-image-fallback{background:linear-gradient(135deg,#d4d4d4,#bfbfbf);}

.hk-atd-section-title{margin:26px 0 14px;font-size:20px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;text-align:center;}
.hk-atd-trust{margin:30px auto 10px;max-width:880px;text-align:center;}

.hk-atd-tool-card{padding:18px;min-height:260px;display:flex;flex-direction:column;gap:12px;}
.hk-atd-tool-top{display:flex;gap:14px;align-items:flex-start;}
.hk-atd-tool-icon{width:92px;height:92px;border-radius:18px;background:#d5d5d5;overflow:hidden;flex:0 0 92px;}
.hk-atd-tool-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.hk-atd-tool-fallback{width:100%;height:100%;background:linear-gradient(135deg,#d4d4d4,#bfbfbf);border-radius:18px;}
.hk-atd-tool-title{font-size:22px;font-weight:900;margin-top:4px;}
.hk-atd-tool-meta{font-weight:800;opacity:.95;}
.hk-atd-tool-excerpt{margin-top:auto;opacity:.85;line-height:1.35;text-align:center;}

.hk-atd-tabs{display:flex;justify-content:center;gap:26px;margin:12px 0 18px;}
.hk-atd-tab{font-size:26px;font-weight:900;text-decoration:none;color:#111;opacity:.8;padding:6px 14px;border-radius:999px;}
.hk-atd-tab.is-active{background:#cfcfcf;opacity:1;}
.hk-atd-note{margin:6px auto 18px;text-align:center;opacity:.8;}

.hk-atd-single{background:#fff;}
.hk-atd-single-hero{background:#e6e6e6;border-radius:20px;padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:center;flex-wrap:wrap;}
.hk-atd-single-left{display:flex;gap:16px;align-items:center;min-width:280px;flex:1;}
.hk-atd-single-icon img{width:92px;height:92px;object-fit:cover;border-radius:18px;}
.hk-atd-single-title{margin:0;font-size:44px;line-height:1.05;font-weight:900;}
.hk-atd-single-sub{margin-top:8px;opacity:.85;font-weight:700;}
.hk-atd-stars{margin-top:8px;font-size:26px;line-height:1;}
.hk-atd-star{margin-right:4px;opacity:.25;}
.hk-atd-star.full{opacity:1;}
.hk-atd-star.half{opacity:.65;}
.hk-atd-single-cats{margin-top:10px;display:flex;gap:10px;flex-wrap:wrap;}
.hk-atd-badge{background:#d0d0d0;color:#111;border-radius:999px;padding:6px 12px;font-weight:800;text-decoration:none;}
.hk-atd-single-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
.hk-atd-btn{background:var(--hk-atd-accent,#6b7280);color:#fff;border-radius:999px;padding:12px 18px;font-weight:900;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;}
.hk-atd-content{padding:22px 6px 6px;}
.hk-atd-content :is(h2,h3){margin-top:22px;}
.hk-atd-footer{padding:10px 6px 26px;}
.hk-atd-link{text-decoration:none;font-weight:900;color:var(--hk-atd-accent,#6b7280);}

@media (max-width: 640px){
  .hk-atd-single-title{font-size:32px;}
  .hk-atd-hero-title{font-size:32px;}
}

.hk-atd-tool-stats{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:-6px;}
.hk-atd-mini{background:#d0d0d0;color:#111;border-radius:999px;padding:4px 10px;font-weight:800;font-size:12px;display:inline-flex;align-items:center;gap:6px;}
.hk-atd-tool-cta{margin-top:10px;font-weight:900;text-align:center;color:var(--hk-atd-accent,#6b7280);}
.hk-atd-overview{margin:18px 0 8px;}
.hk-atd-overview-grid{display:grid;grid-template-columns:1.4fr .9fr;gap:16px;}
@media (max-width: 900px){.hk-atd-overview-grid{grid-template-columns:1fr;}}
.hk-atd-overview-box{background:#e6e6e6;border-radius:18px;padding:16px;}
.hk-atd-overview-title{font-weight:900;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px;}
.hk-atd-overview-text{opacity:.9;line-height:1.45;}
.hk-atd-kv{margin:0;padding-left:18px;}
.hk-atd-kv li{margin:6px 0;}
.hk-atd-btn.hk-atd-btn-full{width:100%;margin-top:10px;justify-content:center;}
.hk-atd-related{margin:24px 0 10px;}
.hk-atd-related-title{margin:0 0 14px;font-size:20px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;text-align:center;}

/* v1.0.3 tweaks */
.hk-atd-tool-excerpt{text-align:left;}
.hk-atd-tool-card{min-height:unset}
.hk-atd-tool-icon img,.hk-atd-single-icon img,.hk-atd-cat-img img{max-width:100%;height:100%;object-fit:cover;display:block}
.hk-atd-img{width:100%;height:100%;object-fit:cover;display:block}
.hk-atd-tool-top{align-items:center}
.hk-atd-tool-title{line-height:1.1}
.hk-atd-tool-cta{text-align:left}

.hk-atd-single-hero{display:grid;grid-template-columns:1fr auto;align-items:center}
.hk-atd-single-actions{justify-content:flex-end}
@media (max-width: 900px){
  .hk-atd-single-hero{grid-template-columns:1fr}
  .hk-atd-single-actions{justify-content:flex-start}
}
.hk-atd-content{padding:14px 2px 2px}
.hk-atd-overview-box{background:#ededed}
.hk-atd-hero{padding:20px}
.hk-atd-hero-right{min-height:220px}
.hk-atd-tabs{margin-top:6px}

@media (max-width: 640px){
  .hk-atd-tab{font-size:20px}
  .hk-atd-cat-card{min-height:unset}
  .hk-atd-cat-img{width:92px;height:92px;flex-basis:92px}
}

/* v1.0.4 alignment + meta line */
.hk-atd-tool-card{padding:20px;}
.hk-atd-tool-top{gap:14px;align-items:center;}
.hk-atd-tool-icon{width:84px;height:84px;border-radius:18px;}
.hk-atd-tool-title{font-size:22px;font-weight:900;margin:0;}
.hk-atd-tool-meta-line{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-weight:900;opacity:.95;margin-top:2px}
.hk-atd-dot{opacity:.45}
.hk-atd-views,.hk-atd-rating{opacity:.9}
.hk-atd-tool-excerpt{margin-top:8px}
.hk-atd-tool-cta{margin-top:auto;padding-top:10px}
.hk-atd-tool-stats,.hk-atd-mini{display:none !important;} /* hide old pill row if any */

/* Single header polish (fix star + title alignment) */
.hk-atd-single-left{display:flex;gap:16px;align-items:center;min-width:0}
.hk-atd-single-head{min-width:0}
.hk-atd-single-title{margin:0 0 6px}
.hk-atd-stars{margin:6px 0 0}
.hk-atd-single-sub{margin-top:6px}
.hk-atd-single-hero{padding:20px}
.hk-atd-single-actions .hk-atd-pill{white-space:nowrap}

/* Mobile tightening */
@media (max-width: 640px){
  .hk-atd-tool-card{padding:16px}
  .hk-atd-tool-icon{width:76px;height:76px}
  .hk-atd-tool-title{font-size:20px}
}

/* v1.0.5 card buttons */
.hk-atd-card-buttons{margin-top:14px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.hk-atd-card-link{font-weight:900;color:var(--hk-atd-accent,#6b7280);text-decoration:none}
.hk-atd-card-link:hover{text-decoration:underline}
.hk-atd-card-btn{background:#cfcfcf;border-radius:999px;padding:10px 14px;font-weight:900;text-decoration:none;color:#111;white-space:nowrap}
.hk-atd-card-btn:hover{filter:brightness(0.97)}

/* v1.0.5 single tool page typography reset */
.hk-atd-wrap .hk-atd-content{max-width:1100px;margin:0 auto}
.hk-atd-wrap .hk-atd-content,
.hk-atd-wrap .hk-atd-content p,
.hk-atd-wrap .hk-atd-content li{
  font-size:16px;
  line-height:1.75;
  font-weight:500;
  letter-spacing:0;
}
.hk-atd-wrap .hk-atd-content p{margin:0 0 14px}
.hk-atd-wrap .hk-atd-content h2{margin:22px 0 10px;font-size:22px;font-weight:900}
.hk-atd-wrap .hk-atd-content h3{margin:18px 0 8px;font-size:18px;font-weight:900}
.hk-atd-related{margin-top:28px}
.hk-atd-footer{margin-top:18px}

/* Mobile */
@media (max-width: 640px){
  .hk-atd-card-buttons{flex-direction:column;align-items:flex-start}
  .hk-atd-card-btn{width:100%;text-align:center}
}

/* v1.0.6 fixes */
.hk-atd-tool-card{display:flex;flex-direction:column;min-height:340px;}
.hk-atd-tool-mainlink{display:flex;gap:14px;align-items:center;text-decoration:none;color:inherit}
.hk-atd-tool-mainlink:hover .hk-atd-tool-title{text-decoration:underline}
.hk-atd-card-buttons{margin-top:auto;}
.hk-atd-card{border-radius:10px;} /* reduce curves */
.hk-atd-hero,.hk-atd-overview-box,.hk-atd-single-hero{border-radius:10px;}
.hk-atd-pill,.hk-atd-card-btn{border-radius:10px;}
.hk-atd-single-actions .hk-atd-pill{border-radius:10px;}

/* v1.0.7 – flatten UI + comments padding */

/* remove curves completely */
.hk-atd-card,
.hk-atd-hero,
.hk-atd-single-hero,
.hk-atd-overview-box,
.hk-atd-details-box,
.hk-atd-pill,
.hk-atd-card-btn,
.hk-atd-single-actions .hk-atd-pill{
  border-radius:0 !important;
}

/* comments section spacing */
.hk-atd-wrap .comments-area{
  margin-top:40px;
  padding:32px;
  background:#f7f7f7;
}
.hk-atd-wrap .comment-respond{
  margin-top:24px;
}
.hk-atd-wrap .comment-form textarea{
  width:100%;
  min-height:140px;
}
.hk-atd-wrap .comment-list{
  margin-top:20px;
}

/* v1.0.9 breadcrumbs */
.hk-atd-breadcrumbs{margin:6px 0 18px;font-size:14px;line-height:1.4;opacity:.9;}
.hk-atd-breadcrumbs a{color:inherit;text-decoration:none;}
.hk-atd-breadcrumbs a:hover{text-decoration:underline;}
.hk-atd-bc-sep{margin:0 8px;opacity:.55;}
.hk-atd-bc-current{font-weight:600;}
.hk-atd-yoast-bc .breadcrumb_last{font-weight:600;}

/* v1.1.0 subtitle in overview */


/* v1.1.1 subtitle alignment */
.hk-atd-overview-subtitle{
  text-align: inherit;
  margin: 6px 0 0;
  font-weight: 600;
}
