/*
Theme Name: FindAIs Directory
Theme URI: https://findais.online
Author: FindAIs
Description: Custom AI tools directory theme for FindAIs.online — white and orange, AIxploria-style, fully integrated with Directorist.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: findais
*/

:root {
  --orange: #ff6600; --od: #e05500; --ol: #fff4ee; --ob: #ffd4b3;
  --white: #ffffff; --bg: #f5f6fa;
  --dark: #1a1a2e; --text: #2d2d44; --muted: #6b6b88; --light: #aaaabc;
  --border: #e3e4ed; --green: #16a34a; --gbg: #dcfce7;
  --blue: #1d4ed8; --bbg: #dbeafe; --purple: #6d28d9; --pbg: #ede9fe;
  --amber: #b45309; --abg: #fef3c7;
  --sh: 0 1px 3px rgba(0,0,0,.07); --shm: 0 4px 12px rgba(0,0,0,.09);
  --r: 8px; --rl: 12px; --rxl: 16px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* NAV */
.findais-nav { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 9999; box-shadow: var(--sh); }
.nav-in { max-width: 1260px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; height: 62px; gap: 8px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 8px; }
.logo-mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #ff6600, #ff8c42); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #fff; flex-shrink: 0; }
.logo-name { font-size: 1.1rem; font-weight: 800; color: var(--orange); letter-spacing: -.3px; line-height: 1.1; }
.logo-name span { color: var(--dark); }
.logo-tag { font-size: 9px; color: var(--light); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: var(--r); transition: all .15s; white-space: nowrap; }
.nav-links a:hover { background: var(--ol); color: var(--orange); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.btn-primary { background: var(--orange); color: #fff; border: none; padding: 9px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-primary:hover { background: var(--od); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-outline:hover { background: var(--ol); }

/* HERO */
.findais-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 40px 20px 28px; }
.hero-in { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--ol); color: var(--orange); font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: 30px; border: 1px solid var(--ob); margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--dark); line-height: 1.2; letter-spacing: -.6px; margin-bottom: 10px; }
.hero h1 .hi { color: var(--orange); }
.hero-sub { font-size: .95rem; color: var(--muted); margin-bottom: 22px; line-height: 1.65; }

/* STATS */
.stats { display: inline-flex; align-items: stretch; background: var(--bg); border: 1px solid var(--border); border-radius: 40px; overflow: hidden; margin-bottom: 24px; flex-wrap: wrap; justify-content: center; }
.stat { padding: 9px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-n { display: block; font-size: 1.05rem; font-weight: 800; color: var(--dark); line-height: 1.2; }
.stat-l { font-size: 11px; color: var(--light); font-weight: 500; }

/* SEARCH */
.search-box { max-width: 720px; margin: 0 auto 16px; display: flex; align-items: stretch; background: var(--white); border: 2px solid var(--border); border-radius: var(--rl); overflow: hidden; box-shadow: var(--sh); transition: border-color .2s; }
.search-box:focus-within { border-color: var(--orange); }
.si { padding: 0 14px; color: var(--light); font-size: 18px; display: flex; align-items: center; flex-shrink: 0; }
.search-box input { flex: 1; border: none; outline: none; font-size: 14px; padding: 13px 0; color: var(--dark); background: transparent; min-width: 0; }
.search-box input::placeholder { color: #bbb; }
.sdiv { width: 1px; background: var(--border); flex-shrink: 0; }
.scat { border: none; outline: none; padding: 0 14px; font-size: 13px; color: var(--muted); background: transparent; cursor: pointer; flex-shrink: 0; }
.sbtn { background: var(--orange); color: #fff; border: none; padding: 0 24px; font-size: 14px; font-weight: 700; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.sbtn:hover { background: var(--od); }

/* PILLS */
.ppills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ppill { display: inline-flex; align-items: center; padding: 5px 15px; border-radius: 30px; border: 1px solid var(--border); background: var(--white); font-size: 12.5px; color: var(--muted); cursor: pointer; font-weight: 600; transition: all .15s; }
.ppill:hover { border-color: var(--orange); color: var(--orange); }
.ppill.on { background: var(--orange); border-color: var(--orange); color: #fff; }

/* TRENDING */
.trending { max-width: 1260px; margin: 14px auto 0; padding: 0 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trend-lbl { font-size: 12px; font-weight: 700; color: var(--light); white-space: nowrap; }
.tchip { font-size: 12px; padding: 4px 12px; border-radius: 30px; background: var(--white); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all .15s; font-weight: 500; }
.tchip:hover { border-color: var(--orange); color: var(--orange); }

/* PAGE GRID */
.findais-page { max-width: 1260px; margin: 18px auto 0; padding: 0 20px 48px; display: grid; grid-template-columns: 230px 1fr; gap: 18px; align-items: start; }

/* SIDEBAR */
.findais-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.sbox { background: var(--white); border: 1px solid var(--border); border-radius: var(--rxl); overflow: hidden; box-shadow: var(--sh); }
.sbox-hd { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .5px; }
.catrow { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; cursor: pointer; border-bottom: 1px solid #f4f4f8; transition: background .13s; }
.catrow:last-child { border-bottom: none; }
.catrow:hover, .catrow.active { background: var(--ol); }
.catrow.active .clabel { color: var(--orange); font-weight: 700; }
.catrow.active .cct { background: rgba(255,102,0,.12); color: var(--orange); }
.crow-l { display: flex; align-items: center; gap: 8px; }
.cbullet { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.clabel { font-size: 12.5px; color: var(--text); font-weight: 500; }
.cct { font-size: 10.5px; background: var(--bg); border-radius: 20px; padding: 1px 7px; color: var(--light); font-weight: 600; }
.sbox-stats { display: grid; grid-template-columns: 1fr 1fr; }
.sstat { text-align: center; padding: 11px 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sstat:nth-child(even) { border-right: none; }
.sstat:nth-last-child(-n+2) { border-bottom: none; }
.sstat-n { display: block; font-size: .95rem; font-weight: 800; color: var(--dark); }
.sstat-l { font-size: 10px; color: var(--light); font-weight: 500; }
.sub-cta { background: linear-gradient(135deg, #ff6600, #ff8c42); border-radius: var(--rxl); padding: 16px; color: #fff; text-align: center; box-shadow: 0 4px 16px rgba(255,102,0,.3); }
.sub-cta h3 { font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.sub-cta p { font-size: 12px; opacity: .88; line-height: 1.55; margin-bottom: 12px; }
.sub-cta a { display: block; background: #fff; color: var(--orange); padding: 8px 20px; border-radius: 30px; font-size: 13px; font-weight: 700; text-align: center; }

/* MAIN */
.findais-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* TOP 10 */
.t10box { background: var(--white); border: 1px solid var(--border); border-radius: var(--rxl); overflow: hidden; box-shadow: var(--sh); }
.t10scroll { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.t10scroll::-webkit-scrollbar { height: 3px; }
.t10scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.t10chip { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 6px 12px; white-space: nowrap; flex-shrink: 0; transition: all .15s; }
.t10chip:hover { border-color: var(--orange); background: var(--ol); }
.t10rank { font-size: 12.5px; font-weight: 800; color: var(--orange); min-width: 16px; }
.t10rank.s { color: #888; } .t10rank.b { color: #b45309; }
.t10logo { width: 20px; height: 20px; border-radius: 4px; object-fit: contain; }
.t10name { font-size: 12px; font-weight: 700; color: var(--dark); }
.t10v { font-size: 11px; color: var(--light); }

/* NEW BAR */
.newbox { background: var(--white); border: 1px solid var(--border); border-radius: var(--rxl); overflow: hidden; box-shadow: var(--sh); }
.newscroll { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.nchip { display: flex; align-items: center; gap: 6px; background: var(--gbg); border: 1px solid #bbf7d0; border-radius: var(--r); padding: 6px 12px; white-space: nowrap; flex-shrink: 0; transition: all .15s; }
.nchip:hover { border-color: var(--green); }
.ndot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.nchip-logo { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.nname { font-size: 12px; font-weight: 700; color: #166534; }

/* TOOLBAR */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.tb-title { font-size: 14px; font-weight: 800; color: var(--dark); }
.tb-right { display: flex; align-items: center; gap: 10px; }
.res-lbl { font-size: 12px; color: var(--light); }
.sort-sel { border: 1px solid var(--border); border-radius: var(--r); padding: 7px 10px; font-size: 12.5px; color: var(--muted); background: var(--white); outline: none; cursor: pointer; }

/* TOOL CARDS */
.cards { display: flex; flex-direction: column; gap: 10px; }
.tcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--rxl); box-shadow: var(--sh); transition: border-color .18s, box-shadow .18s; position: relative; display: flex; flex-direction: row; align-items: center; padding: 14px 16px; gap: 0; width: 100%; }
.tcard:hover { border-color: #ffc4a0; box-shadow: 0 4px 16px rgba(255,102,0,.1); }
.tcard.featured { border-color: rgba(255,102,0,.3); background: linear-gradient(to right, #fff8f3, var(--white) 60%); }
.feat-lbl { position: absolute; top: 8px; right: 12px; font-size: 10px; font-weight: 700; color: var(--orange); }
.new-lbl { position: absolute; top: 8px; left: 12px; background: var(--green); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; text-transform: uppercase; }
.tlogo { width: 52px; height: 52px; min-width: 52px; border-radius: 10px; border: 1px solid var(--border); background: var(--white); overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh); margin-right: 14px; }
.tlogo img { width: 38px; height: 38px; object-fit: contain; border-radius: 6px; }
.tlogo .lf { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; }
.tinfo { flex: 1; min-width: 0; margin-right: 16px; overflow: hidden; }
.ttop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.tname { font-size: 14px; font-weight: 800; color: var(--dark); white-space: nowrap; }
.vbadge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.vg { background: var(--abg); color: var(--amber); }
.vb { background: var(--bbg); color: var(--blue); }
.cpill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.tdesc { font-size: 12.5px; color: #555; line-height: 1.5; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tfoot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pbadge { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.pf { background: var(--gbg); color: var(--green); }
.pfm { background: var(--bbg); color: var(--blue); }
.pp { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }
.pt { background: var(--pbg); color: var(--purple); }
.trate { font-size: 11.5px; color: var(--light); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.star { color: #f59e0b; }
.tactions { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 130px; }
.upvote { display: flex; flex-direction: column; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r); padding: 5px 8px; cursor: pointer; background: var(--white); color: var(--light); transition: all .15s; width: 56px; }
.upvote:hover { border-color: var(--orange); color: var(--orange); background: var(--ol); }
.upvote .ua { font-size: 13px; line-height: 1; }
.upvote .un { font-size: 11px; font-weight: 800; line-height: 1.4; }
.vbtn { background: var(--orange); color: #fff !important; border: none; padding: 8px 14px; border-radius: var(--r); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; width: 100%; text-align: center; display: block; }
.vbtn:hover { background: var(--od); }
.fbtn { width: 34px; height: 34px; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: #ddd; transition: all .15s; }
.fbtn:hover { border-color: #ec4899; color: #ec4899; background: #fce7f3; }
.act-row { display: flex; align-items: center; gap: 6px; width: 100%; }

/* DIRECTORIST OVERRIDES */
.directorist-btn-primary, .atbdp .btn-primary { background-color: #ff6600 !important; border-color: #ff6600 !important; color: #fff !important; }
.directorist-btn-primary:hover { background-color: #e05500 !important; }
.directorist a { color: #ff6600 !important; }
.directorist-listing-card { border-radius: 16px !important; border: 1px solid #e3e4ed !important; box-shadow: 0 1px 3px rgba(0,0,0,.07) !important; }
.directorist-listing-card:hover { border-color: #ffc4a0 !important; box-shadow: 0 4px 16px rgba(255,102,0,.1) !important; }
.atbdp-pagination .page-numbers.current { background: #ff6600 !important; border-color: #ff6600 !important; color: #fff !important; }
.directorist-search-form__btn { background: #ff6600 !important; border-color: #ff6600 !important; }
.directorist-rating-stars .filled { color: #f59e0b !important; }
.directorist-single__title { font-size: 1.9rem !important; font-weight: 900 !important; color: #1a1a2e !important; }
.directorist-category-title { font-size: 1.5rem !important; font-weight: 800 !important; color: #1a1a2e !important; }

/* BREADCRUMB */
.findais-breadcrumb { max-width: 1260px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.findais-breadcrumb a { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.findais-breadcrumb a:hover { color: var(--orange); }
.bc-sep { color: var(--light); font-size: 12px; }
.bc-cur { font-size: 12.5px; color: var(--dark); font-weight: 600; }

/* FOOTER */
.findais-footer { background: var(--white); border-top: 2px solid var(--border); padding: 32px 20px 0; margin-top: 20px; }
.foot-grid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 24px; }
.foot-brand p { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.foot-col h4 { font-size: 11.5px; font-weight: 800; color: var(--dark); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.foot-col a { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; transition: color .15s; }
.foot-col a:hover { color: var(--orange); }
.foot-bottom { max-width: 1260px; margin: 0 auto; padding: 14px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.foot-bottom p { font-size: 12px; color: var(--light); }
.foot-bottom a { color: var(--orange); }

/* RESPONSIVE */
@media (max-width: 1024px) { .findais-page { grid-template-columns: 1fr; } .findais-sidebar { display: none; } .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .nav-in { padding: 0 14px; height: 54px; } .logo-tag { display: none; } .btn-primary { display: none; } .btn-outline { padding: 6px 12px; font-size: 12px; } .findais-hero { padding: 22px 14px 18px; } .hero h1 { font-size: 1.55rem; } .search-box { flex-direction: column; border-radius: var(--rl); } .search-box input { padding: 12px 14px; border-bottom: 1px solid var(--border); } .si, .sdiv { display: none; } .scat { padding: 10px 14px; border-bottom: 1px solid var(--border); height: 44px; } .sbtn { height: 46px; border-radius: 0; } .trending, .findais-page { padding: 10px 14px; } .findais-page { margin-top: 12px; gap: 12px; } .tcard { flex-direction: column; padding: 12px; gap: 8px; } .tinfo { margin-right: 0; } .tname { white-space: normal; } .tdesc { white-space: normal; font-size: 12px; } .tactions { flex-direction: row; width: 100%; border-top: 1px solid var(--border); padding-top: 8px; justify-content: space-between; } .upvote { flex-direction: row; width: auto; flex: 1; justify-content: center; gap: 4px; padding: 6px 10px; } .act-row { flex: 2; } .vbtn { width: 100%; } .fbtn { width: 36px; height: 36px; flex-shrink: 0; } .findais-footer { padding: 24px 14px 0; } .foot-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; } .foot-bottom { flex-direction: column; text-align: center; padding: 12px 0; } }

/* ── MOBILE CARD FIXES ── */
@media (max-width: 680px) {
  .tcard {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 14px !important;
    gap: 0 !important;
  }
  .tcard-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
  }
  .tlogo {
    width: 44px !important; height: 44px !important;
    min-width: 44px !important; margin-right: 0 !important;
    flex-shrink: 0; border-radius: 9px !important;
  }
  .tlogo img { width: 32px !important; height: 32px !important; }
  .tlogo .lf { width: 32px !important; height: 32px !important; font-size: 13px !important; }
  .tinfo { margin-right: 0 !important; overflow: visible !important; flex: 1; min-width: 0; }
  .tname { white-space: normal !important; font-size: 13.5px !important; }
  .tdesc {
    white-space: normal !important; font-size: 12px !important;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
  }
  .tactions {
    flex-direction: row !important; width: 100% !important;
    border-top: 1px solid #e3e4ed; padding-top: 10px;
    margin-top: 4px; justify-content: space-between !important;
    align-items: center !important; gap: 8px !important;
  }
  .upvote {
    flex-direction: row !important; width: auto !important;
    padding: 7px 12px !important; gap: 5px !important; flex-shrink: 0;
  }
  .act-row { flex: 1 !important; }
  .vbtn { width: 100% !important; font-size: 13px !important; padding: 9px 10px !important; }
  .fbtn { width: 36px !important; height: 36px !important; flex-shrink: 0 !important; }

  /* Directorist cards on mobile */
  .directorist-listing-card { padding: 12px !important; border-radius: 12px !important; }
  .directorist-listing-card__thumbnail { width: 48px !important; height: 48px !important; border-radius: 8px !important; }
  .directorist-listing-card__title a { font-size: 14px !important; }

  /* Single tool page mobile */
  .tool-two-col { grid-template-columns: 1fr !important; }
  .tool-sidebar { position: static !important; }
}
