/* ============================================================
   AFRICAPICKUP — FORUM THREAD LIST (PC) — Grid Tiles
   File: pc-less-threadgrid-cache.css
   Zero CLS — fixed aspect-ratio banner, no overlay
   ============================================================ */

/* ---------- 0. RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  scroll-behavior:smooth;
}
body{
  margin:0;padding:0 0 24px;background:#f5f5f5;color:#3d2a2a;
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  font-size:15px;line-height:1.55;overflow-x:hidden;min-width:0;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit;cursor:pointer}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3,h4{margin:0;padding:0;font:inherit;font-weight:700;line-height:1.3}
p{margin:0;padding:0}
.wrap{max-width:1280px;margin:0 auto;padding:0 16px}

/* ---------- 1. BREADCRUMB ---------- */
.bc{
  margin:20px 0 0;padding:12px 18px;border-radius:12px;
  background:#eef4ef;border-left:5px solid #006400;
  font-size:13px;font-weight:700;color:#2a5a2a;
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
}
.bc a{
  color:#006400;display:inline-flex;align-items:center;gap:5px;
  padding:3px 6px;border-radius:5px;
  transition:all .15s ease;
}
.bc a:hover{background:rgba(0,163,42,.1);color:#00a32a}
.bc-sep{color:#00a32a;font-weight:900;font-size:14px}
.bc-current{
  color:#1a2e1a;font-weight:800;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:340px;
}

/* ---------- 2. HERO ---------- */
.tl-hero{
  margin:16px 0 0;border-radius:20px;
  background:
    repeating-linear-gradient(135deg,rgba(255,255,255,.035) 0 2px,transparent 2px 12px),
    linear-gradient(135deg,#004d00 0%,#006400 45%,#00a32a 85%,#00d135 100%);
  padding:28px 30px;color:#fff;position:relative;overflow:hidden;
  box-shadow:0 12px 30px rgba(0,100,0,.28),inset 0 1px 0 rgba(255,255,255,.18);
  display:flex;align-items:center;gap:24px;flex-wrap:wrap;
  isolation:isolate;contain:layout style paint;
}
.tl-hero::before{
  content:"";position:absolute;top:-50%;right:-20%;width:340px;height:340px;
  background:radial-gradient(circle,rgba(255,255,255,.25),transparent 70%);
  z-index:0;pointer-events:none;
}
.tl-hero-text{position:relative;z-index:1;min-width:0;flex:1}
.tl-hero-text h1{
  font-size:30px;font-weight:900;line-height:1.15;
  display:flex;align-items:center;gap:14px;letter-spacing:-.4px;color:#fff;
}
.tl-hero-text h1 .ico{
  width:52px;height:52px;border-radius:14px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;font-size:24px;
  background:linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.1));
  border:1px solid rgba(255,255,255,.35);
}
.tl-hero-text p{
  margin-top:12px;font-size:15px;font-weight:600;
  color:rgba(255,255,255,.94);line-height:1.55;max-width:640px;
}
.tl-stats{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;flex-shrink:0;
}
.tl-stat{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;padding:12px 18px;text-align:center;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  min-width:96px;
}
.tl-stat b{
  display:block;font-size:22px;font-weight:900;line-height:1.1;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tl-stat span{
  font-size:10px;font-weight:800;letter-spacing:.7px;
  text-transform:uppercase;opacity:.88;display:block;margin-top:4px;
}

/* ---------- 3. ACTIONS + CHIPS ---------- */
.actions{
  margin-top:16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;
}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{
  padding:8px 16px;border-radius:20px;background:#fff;
  border:1.5px solid rgba(0,100,0,.12);
  font-size:12px;font-weight:800;letter-spacing:.3px;
  text-transform:uppercase;color:#2a5a2a;
  transition:all .2s ease;cursor:pointer;display:inline-flex;
  align-items:center;gap:6px;
}
.chip:hover{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;border-color:#006400;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,100,0,.22);
}
.chip.active{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;border-color:#006400;
  box-shadow:0 3px 8px rgba(0,100,0,.25);
}
.action-btns{margin-left:auto;display:flex;gap:10px}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 20px;border-radius:24px;
  font-size:12.5px;font-weight:800;letter-spacing:.3px;
  text-transform:uppercase;line-height:1;
  transition:all .2s ease;cursor:pointer;
}
.btn i{font-style:normal;font-size:14px}
.btn-primary{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;box-shadow:0 4px 12px rgba(0,100,0,.25);
}
.btn-primary:hover{
  transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,100,0,.35);
}

/* ---------- 4. GRID ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:16px;margin-top:20px;
}

/* ---------- 5. TILE ---------- */
.tile{
  background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  border:1px solid rgba(0,100,0,.06);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
  position:relative;display:flex;flex-direction:column;
  contain:layout style;
}
.tile:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,100,0,.15);
  border-color:rgba(0,163,42,.22);
}
.tile-link{display:flex;flex-direction:column;flex:1;color:inherit}

/* Banner — fixed 16:9, ZERO CLS */
.tile-banner{
  height:160px;
  background:linear-gradient(135deg,#006400,#00a32a);
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  aspect-ratio:16/9;
  flex-shrink:0;
}
.tile-banner::before{
  content:"";position:absolute;inset:0;
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.06) 0 2px,transparent 2px 10px);
  pointer-events:none;
}
.tile.is-sticky .tile-banner{
  background:linear-gradient(135deg,#c8930e,#ffd700);
}
.tile.is-locked .tile-banner{
  background:linear-gradient(135deg,#555,#888);
}
.tile-banner-icon{
  font-size:56px;line-height:1;position:relative;z-index:1;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.25));
  font-style:normal;
  transition:transform .3s ease;
}
.tile:hover .tile-banner-icon{transform:scale(1.08)}

.tile-badge{
  position:absolute;top:12px;left:12px;
  padding:5px 12px;border-radius:12px;
  background:rgba(0,0,0,.42);color:#fff;
  font-size:10.5px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;z-index:2;line-height:1;
}
.tile-type{
  position:absolute;top:12px;right:12px;
  padding:5px 12px;border-radius:12px;
  background:rgba(255,255,255,.28);color:#fff;
  font-size:10.5px;font-weight:800;letter-spacing:.5px;
  text-transform:uppercase;z-index:2;line-height:1;
  max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tile.is-sticky .tile-type{
  background:rgba(0,0,0,.25);color:#3d2a2a;
}

/* Body */
.tile-body{
  padding:16px 18px 16px;flex:1;display:flex;flex-direction:column;
}
.tile-title{
  font-size:15.5px;font-weight:800;color:#1a2e1a;line-height:1.35;
  margin-bottom:8px;
  overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
  transition:color .2s ease;
}
.tile:hover .tile-title{color:#006400}
.tile-desc{
  font-size:12.5px;color:#5a6a5a;line-height:1.55;
  overflow:hidden;display:-webkit-box;
  -webkit-line-clamp:2;-webkit-box-orient:vertical;
  margin-bottom:12px;flex:1;word-break:break-word;
}
.tile-meta{
  display:flex;align-items:center;gap:8px;
  font-size:11.5px;color:#7a6a5a;margin-bottom:12px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tile-avatar{
  width:24px;height:24px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  font-size:11px;font-weight:900;
}
.tile-author{color:#006400;font-weight:700;flex-shrink:0}
.tile-dot{color:#00a32a;font-weight:900;flex-shrink:0}

.tile-stats{
  display:flex;gap:14px;align-items:center;
  padding-top:12px;border-top:1px solid rgba(0,100,0,.06);
  font-size:12px;color:#7a6a5a;flex-wrap:wrap;
}
.tile-stat{
  display:inline-flex;align-items:center;gap:5px;font-weight:600;
}
.tile-stat i{font-style:normal;font-size:13px}
.tile-stat b{color:#006400;font-weight:900}
.tile-last{margin-left:auto;font-size:11px}
.tile-last b{color:#006400;font-weight:700}

/* ---------- 6. PAGINATION ---------- */
.pages{
  margin-top:24px;padding:18px;border-radius:12px;
  background:linear-gradient(135deg,#e4ede6,#eef4ef);
  border-left:4px solid #006400;
  display:flex;flex-direction:column;gap:10px;
  contain:layout style;
}
.page-listing{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.pg{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;padding:0 13px;
  background:#fff;color:#006400;
  border:1px solid rgba(0,100,0,.15);border-radius:999px;
  font-size:13px;font-weight:700;transition:all .2s ease;
}
.pg:not(.disabled):not(.dots):not(.now):hover{
  background:linear-gradient(135deg,#00a32a,#006400);
  border-color:#006400;color:#fff;transform:translateY(-1px);
}
.pg.now{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;border-color:#006400;
  box-shadow:0 3px 8px rgba(0,100,0,.3);
}
.pg.disabled{opacity:.4}
.pg.dots{background:transparent;border:none;color:#7a6a5a;padding:0 3px}
.pages-info{
  display:block;text-align:center;color:#4a5a4a;
  font-size:12.5px;font-weight:600;
}

/* ---------- 7. EMPTY STATE ---------- */
.empty{
  margin-top:20px;padding:60px 24px;text-align:center;
  background:#fff;border-radius:16px;
  border:1px solid rgba(0,100,0,.08);
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}
.empty-ico{
  font-size:64px;display:block;margin-bottom:16px;
  font-style:normal;line-height:1;
}
.empty strong{
  display:block;font-size:20px;color:#1a2e1a;
  font-weight:800;margin-bottom:8px;
}
.empty p{
  color:#5a6a5a;font-size:14px;margin-bottom:20px;
  line-height:1.55;
}
.empty .btn{display:inline-flex;flex:none;width:auto}

/* ---------- 8. AD SLOT ---------- */
.ad-slot{
  min-height:250px;display:flex;align-items:center;justify-content:center;
  margin:16px 0;background:#eef4ef;border-radius:10px;overflow:hidden;
}
.ad-slot:empty{min-height:0;margin:0}

/* ---------- 9. TABLET (600–940px) ---------- */
@media (min-width:600px) and (max-width:940px){
  .wrap{max-width:900px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .tl-hero{padding:24px}
  .tl-hero-text h1{font-size:26px}
  .tl-hero-text h1 .ico{width:44px;height:44px;font-size:22px}
  .tl-hero-text p{font-size:13.5px}
  .tl-stats{gap:10px}
  .tl-stat b{font-size:18px}
  .tl-stat span{font-size:9.5px}
  .tile-banner{height:140px}
  .tile-banner-icon{font-size:48px}
  .tile-title{font-size:14.5px}
}

/* ---------- 10. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
}

/* ---------- 11. SCROLLBAR ---------- */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:#f0f0f0;border-radius:5px}
::-webkit-scrollbar-thumb{background:#006400;border-radius:5px}
::-webkit-scrollbar-thumb:hover{background:#00a32a}
::-webkit-scrollbar-thumb:window-inactive{background:#999}

/* ---------- 12. SELECTION ---------- */
::selection{background:#75ff75}
::-moz-selection{background:#75ff75}