/* ══════════════════════════════════════════
   TOOLORA PRO — Extended Styles
   Adds onto main.css
══════════════════════════════════════════ */

/* Rename .tlr → .tlrp (override main prefix) */
.tlrp { --tlr-primary: #6c63ff; }

/* ── HERO EXTRAS ────────────────────────── */
.tlrp-hero { background: linear-gradient(135deg,#6c63ff 0%,#a855f7 60%,#ec4899 100%); padding:56px 40px 52px; text-align:center; border-radius:0 0 32px 32px; position:relative; overflow:hidden; margin-bottom:0; }
.tlrp-hero::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%23fff' stroke-opacity='.04' stroke-width='2'/%3E%3C/svg%3E"); pointer-events:none; }
.tlrp-hero__eyebrow { display:inline-block; background:rgba(255,255,255,.2); color:#fff; font-size:.78rem; font-weight:800; letter-spacing:1px; text-transform:uppercase; padding:5px 16px; border-radius:50px; margin-bottom:14px; border:1px solid rgba(255,255,255,.3); }
.tlrp-hero__title  { font-size:clamp(1.8rem,5vw,2.8rem); font-weight:900; color:#fff; margin-bottom:10px; letter-spacing:-.5px; }
.tlrp-hero__sub    { font-size:1.05rem; color:rgba(255,255,255,.88); margin-bottom:28px; max-width:600px; margin-left:auto; margin-right:auto; }
.tlrp-hero__inner  { max-width:680px; margin:0 auto; position:relative; z-index:1; }
.tlrp-hero__actions { position:absolute; top:16px; right:20px; z-index:2; }

/* ── STATS BAR ──────────────────────────── */
.tlrp-statsbar { display:flex; justify-content:center; gap:0; background:#fff; border-bottom:2px solid #f0f0f0; }
.tlrp--dark .tlrp-statsbar { background:var(--tlr-surface); border-color:var(--tlr-border); }
.tlrp-statsbar__item { flex:1; text-align:center; padding:14px 8px; font-size:.85rem; color:var(--tlr-muted); border-right:1px solid #f0f0f0; }
.tlrp--dark .tlrp-statsbar__item { border-color:var(--tlr-border); }
.tlrp-statsbar__item strong { display:block; font-size:1.3rem; font-weight:900; color:var(--tlr-primary); }

/* ── TABS ───────────────────────────────── */
.tlrp-tabs { display:flex; gap:8px; overflow-x:auto; padding:20px 28px 12px; scrollbar-width:none; }
.tlrp-tabs::-webkit-scrollbar { display:none; }
.tlrp-tab { display:flex; align-items:center; gap:6px; padding:8px 16px; border-radius:50px; border:2px solid var(--tlr-border); background:var(--tlr-surface); color:var(--tlr-muted); font-size:.85rem; font-weight:700; cursor:pointer; white-space:nowrap; transition:all .2s; }
.tlrp-tab:hover,.tlrp-tab.active { background:var(--cc,var(--tlr-primary)); border-color:transparent; color:#fff; }
.tlrp-tab__pill { background:rgba(255,255,255,.25); padding:1px 7px; border-radius:50px; font-size:.72rem; }
.tlrp-tab:not(.active) .tlrp-tab__pill { background:var(--tlr-border); color:var(--tlr-muted); }

/* ── GRID & CARDS ───────────────────────── */
.tlrp-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; padding:8px 28px 32px; }
.tlrp-card { background:var(--tlr-surface); border:2px solid var(--tlr-border); border-radius:16px; padding:20px 16px 16px; position:relative; display:flex; flex-direction:column; gap:5px; transition:transform .25s,box-shadow .25s,border-color .25s; text-decoration:none; color:var(--tlr-text); overflow:hidden; }
.tlrp-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--tlr-primary),#a855f7); transform:scaleX(0); transform-origin:left; transition:transform .3s; }
.tlrp-card:hover { transform:translateY(-5px); box-shadow:0 8px 32px rgba(108,99,255,.18); border-color:var(--tlr-primary); color:var(--tlr-text); }
.tlrp-card:hover::after { transform:scaleX(1); }
.tlrp-card__badge { position:absolute; top:12px; right:12px; font-size:.65rem; font-weight:800; padding:3px 8px; border-radius:50px; text-transform:uppercase; letter-spacing:.5px; }
.tlrp-card__badge--hot { background:linear-gradient(135deg,#ff6b6b,#ff8c42); color:#fff; }
.tlrp-card__badge--ai  { background:linear-gradient(135deg,#6c63ff,#a855f7); color:#fff; }
.tlrp-card__badge--new { background:linear-gradient(135deg,#10b981,#059669); color:#fff; }
.tlrp-card__icon { font-size:2.2rem; line-height:1; }
.tlrp-card__catlabel { font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.6px; }
.tlrp-card__title { font-size:.98rem; font-weight:800; }
.tlrp-card__desc { font-size:.8rem; color:var(--tlr-muted); line-height:1.5; flex:1; }
.tlrp-card__footer { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding-top:8px; border-top:1px solid var(--tlr-border); }
.tlrp-card__rating { font-size:.75rem; color:var(--tlr-muted); }
.tlrp-card__rating span { color:var(--tlr-muted); }
.tlrp-card__uses { font-size:.72rem; color:var(--tlr-muted); }
.tlrp-card__cta { font-size:.78rem; font-weight:800; color:var(--tlr-primary); opacity:0; transition:opacity .2s; margin-top:4px; }
.tlrp-card:hover .tlrp-card__cta { opacity:1; }
.tlrp-no-results { grid-column:1/-1; text-align:center; padding:48px; color:var(--tlr-muted); }
.tlrp-link { background:none; border:none; color:var(--tlr-primary); cursor:pointer; font-weight:700; }

/* ── TOOL HERO EXTRAS ───────────────────── */
.tlrp-tool-hero { display:flex; gap:20px; padding:20px 28px 24px; border-bottom:2px solid var(--tlr-border); margin-bottom:20px; }
.tlrp-tool-hero__icon { font-size:3rem; flex-shrink:0; }
.tlrp-tool-hero__cat { font-size:.75rem; font-weight:800; text-transform:uppercase; letter-spacing:.7px; margin-bottom:3px; }
.tlrp-tool-hero__title { font-size:1.7rem; font-weight:900; margin-bottom:4px; }
.tlrp-tool-hero__desc { font-size:.9rem; color:var(--tlr-muted); margin-bottom:10px; }
.tlrp-tool-hero__meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tlrp-uses-counter { font-size:.82rem; color:var(--tlr-muted); background:var(--tlr-surface2); padding:4px 12px; border-radius:50px; border:1px solid var(--tlr-border); }
.tlrp-feature-pill { font-size:.72rem; font-weight:700; background:rgba(108,99,255,.1); color:var(--tlr-primary); padding:4px 10px; border-radius:50px; border:1px solid rgba(108,99,255,.2); }

/* ── RATING STARS ───────────────────────── */
.tlrp-rating { display:flex; align-items:center; gap:2px; }
.tlrp-rating__star { background:none; border:none; font-size:1.3rem; cursor:pointer; color:#ddd; padding:0; line-height:1; transition:color .15s,transform .15s; }
.tlrp-rating__star.active,.tlrp-rating__star:hover { color:#fbbf24; transform:scale(1.15); }
.tlrp-rating__val { font-size:.88rem; font-weight:800; color:var(--tlr-text); margin-left:4px; }
.tlrp-rating__count { font-size:.78rem; color:var(--tlr-muted); }

/* ── BULK UPLOAD ────────────────────────── */
.tlrp-bulk-zone { border:3px dashed var(--tlr-primary); border-radius:16px; padding:40px 20px; text-align:center; cursor:pointer; background:var(--tlr-surface2); transition:all .25s; position:relative; }
.tlrp-bulk-zone:hover,.tlrp-bulk-zone.over { background:rgba(108,99,255,.07); transform:scale(1.01); }
.tlrp-bulk-zone input { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; }
.tlrp-bulk-list { margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.tlrp-bulk-item { display:flex; align-items:center; gap:10px; background:var(--tlr-surface2); border:1px solid var(--tlr-border); border-radius:10px; padding:10px 14px; }
.tlrp-bulk-item__name { flex:1; font-size:.88rem; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tlrp-bulk-item__size { font-size:.75rem; color:var(--tlr-muted); }
.tlrp-bulk-item__status { font-size:.78rem; font-weight:700; }
.tlrp-bulk-item__status--done { color:var(--tlr-success); }
.tlrp-bulk-item__status--proc { color:var(--tlr-primary); }
.tlrp-bulk-item__status--err  { color:var(--tlr-danger); }
.tlrp-bulk-item__dl { color:var(--tlr-primary); font-size:.78rem; font-weight:700; text-decoration:none; }
.tlrp-bulk-progress { height:4px; background:var(--tlr-border); border-radius:50px; overflow:hidden; flex-shrink:0; width:80px; }
.tlrp-bulk-progress__fill { height:100%; background:var(--tlr-primary); border-radius:50px; transition:width .3s; }

/* ── BEFORE/AFTER SLIDER ────────────────── */
.tlrp-ba { position:relative; overflow:hidden; border-radius:12px; border:2px solid var(--tlr-border); user-select:none; cursor:ew-resize; }
.tlrp-ba__before,.tlrp-ba__after { display:block; max-width:100%; }
.tlrp-ba__after { position:absolute; top:0; left:0; clip-path:inset(0 50% 0 0); transition:clip-path 0s; }
.tlrp-ba__handle { position:absolute; top:0; bottom:0; left:50%; width:4px; background:#fff; box-shadow:0 0 8px rgba(0,0,0,.4); cursor:ew-resize; transform:translateX(-50%); }
.tlrp-ba__handle::before,.tlrp-ba__handle::after { content:''; position:absolute; left:50%; transform:translateX(-50%); width:36px; height:36px; background:#fff; border-radius:50%; box-shadow:0 2px 8px rgba(0,0,0,.3); display:flex; align-items:center; justify-content:center; }
.tlrp-ba__handle::before { top:50%; margin-top:-18px; }
.tlrp-ba__label { position:absolute; top:10px; font-size:.72rem; font-weight:800; padding:3px 10px; border-radius:50px; }
.tlrp-ba__label--before { left:10px; background:rgba(0,0,0,.6); color:#fff; }
.tlrp-ba__label--after  { right:10px; background:var(--tlr-primary); color:#fff; }

/* ── FAQ ────────────────────────────────── */
.tlrp-faq { padding:8px 28px 28px; }
.tlrp-faq__title { font-size:1.1rem; font-weight:800; margin-bottom:14px; color:var(--tlr-text); }
.tlrp-faq__item  { border:2px solid var(--tlr-border); border-radius:12px; margin-bottom:8px; overflow:hidden; }
.tlrp-faq__q { width:100%; text-align:left; background:var(--tlr-surface); border:none; padding:14px 18px; font-size:.93rem; font-weight:700; color:var(--tlr-text); cursor:pointer; display:flex; justify-content:space-between; align-items:center; transition:background .2s; }
.tlrp-faq__q:hover { background:var(--tlr-surface2); }
.tlrp-faq__icon  { font-size:1.2rem; font-weight:400; color:var(--tlr-primary); transition:transform .2s; }
.tlrp-faq__icon.open { transform:rotate(45deg); }
.tlrp-faq__a { padding:0 18px 14px; font-size:.88rem; line-height:1.7; color:var(--tlr-muted); background:var(--tlr-surface); }

/* ── RELATED TOOLS ──────────────────────── */
.tlrp-related { padding:8px 28px 28px; }
.tlrp-related__title { font-size:.82rem; font-weight:800; text-transform:uppercase; letter-spacing:.7px; color:var(--tlr-muted); margin-bottom:12px; }
.tlrp-related__grid  { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:10px; }
.tlrp-related__card  { display:flex; align-items:center; gap:10px; background:var(--tlr-surface); border:2px solid var(--tlr-border); border-radius:10px; padding:11px 14px; font-size:.85rem; font-weight:700; transition:all .2s; text-decoration:none; color:var(--tlr-text); }
.tlrp-related__card:hover { border-color:var(--tlr-primary); color:var(--tlr-primary); transform:translateX(4px); }
.tlrp-related__arr { margin-left:auto; opacity:0; transition:opacity .2s; }
.tlrp-related__card:hover .tlrp-related__arr { opacity:1; }

/* ── AD SLOTS ───────────────────────────── */
.tlrp-ad { margin:8px 28px; }
.tlrp-ad--hub_top    { margin-bottom:20px; }
.tlrp-ad--tool_side  { max-width:340px; }

/* ── TRUST FOOTER ───────────────────────── */
.tlrp-trust { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; padding:20px 28px 32px; border-top:2px solid var(--tlr-border); margin:0 28px; }
.tlrp-trust__item { font-size:.82rem; font-weight:600; color:var(--tlr-muted); }

/* ── PWA INSTALL BANNER ─────────────────── */
.tlrp-pwa-banner { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:var(--tlr-surface); border:2px solid var(--tlr-primary); border-radius:16px; padding:14px 20px; display:flex; align-items:center; gap:12px; box-shadow:0 8px 32px rgba(0,0,0,.2); z-index:9999; min-width:300px; max-width:90vw; }
.tlrp-pwa-banner__text { flex:1; font-size:.88rem; font-weight:700; color:var(--tlr-text); }
.tlrp-pwa-banner__sub { font-size:.75rem; color:var(--tlr-muted); font-weight:400; display:block; }
.tlrp-pwa-banner__close { background:none; border:none; font-size:1.2rem; cursor:pointer; color:var(--tlr-muted); padding:2px; }

/* ── TOPBAR ─────────────────────────────── */
.tlrp-topbar { display:flex; align-items:center; justify-content:space-between; padding:14px 28px 8px; }
.tlrp-back { display:inline-flex; align-items:center; gap:6px; background:var(--tlr-surface); border:2px solid var(--tlr-border); color:var(--tlr-text); padding:7px 16px; border-radius:50px; font-size:.88rem; font-weight:700; transition:all .2s; text-decoration:none; }
.tlrp-back:hover { border-color:var(--tlr-primary); color:var(--tlr-primary); }
.tlrp-theme-btn { background:rgba(255,255,255,.2); border:2px solid rgba(255,255,255,.4); color:#fff; font-size:1.1rem; width:42px; height:42px; border-radius:50%; cursor:pointer; transition:all .25s; }
.tlrp-theme-btn:hover { background:rgba(255,255,255,.35); }
.tlrp--tool .tlrp-theme-btn { background:var(--tlr-surface); border-color:var(--tlr-border); color:var(--tlr-text); }

/* ── BREADCRUMB ─────────────────────────── */
.tlrp-breadcrumb { padding:10px 28px 0; }
.tlrp-breadcrumb ol { display:flex; align-items:center; gap:8px; list-style:none; margin:0; padding:0; flex-wrap:wrap; }
.tlrp-breadcrumb li { font-size:.8rem; color:var(--tlr-muted); }
.tlrp-breadcrumb li::after { content:'›'; margin-left:8px; }
.tlrp-breadcrumb li:last-child::after { display:none; }
.tlrp-breadcrumb a { color:var(--tlr-primary); font-weight:600; text-decoration:none; }

/* ── SEARCH ─────────────────────────────── */
.tlrp-search { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.95); border-radius:50px; padding:6px 18px 6px 14px; max-width:560px; margin:0 auto; box-shadow:0 4px 20px rgba(0,0,0,.15); }
.tlrp-search__icon { font-size:1rem; }
.tlrp-search__input { flex:1; border:none; outline:none; font-size:.95rem; background:transparent; color:#1a1a2e; padding:6px 0; }
.tlrp-search__clear { border:none; background:none; cursor:pointer; font-size:.9rem; color:#999; }

/* ── RESPONSIVE ─────────────────────────── */
@media(max-width:768px){
  .tlrp-hero { padding:32px 16px; }
  .tlrp-grid { grid-template-columns:1fr 1fr; padding:8px 14px 24px; gap:10px; }
  .tlrp-tabs { padding:14px 14px 10px; }
  .tlrp-statsbar__item { font-size:.72rem; padding:10px 4px; }
  .tlrp-tool-hero { flex-direction:column; padding:14px 16px; }
  .tlrp-related,.tlrp-faq,.tlrp-trust,.tlrp-ad { padding-left:14px; padding-right:14px; }
  .tlrp-trust { margin:0; }
  .tlrp-topbar,.tlrp-breadcrumb { padding-left:14px; padding-right:14px; }
}
@media(max-width:480px){
  .tlrp-grid { grid-template-columns:1fr; }
  .tlrp-statsbar { flex-wrap:wrap; }
  .tlrp-statsbar__item { width:50%; border-bottom:1px solid #f0f0f0; }
}
