/* ============================================================
   AFRICAPICKUP — FORUM CATEGORY PAGE (PC)
   File: pc-less-category-cache.css
   Two-Column Split grid
   Zero CLS — no overlay, no shift
   ============================================================ */

/* ---------- 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:1100px;margin:0 auto;padding:0 16px}

/* ---------- 1. BAN NOTICE ---------- */
.ap-banned{
  margin:20px 0 0;padding:16px 20px;border-radius:12px;
  background:#fff5f5;border-left:5px solid #c0392b;
  color:#5a2a2a;font-size:14px;line-height:1.55;
}
.ap-banned strong{color:#c0392b;display:block;margin-bottom:4px}
.ap-banned em{font-style:italic;color:#7a5a5a}

/* ---------- 2. 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;
}

/* ---------- 3. HERO ---------- */
.hero{
  margin:16px 0 0;border-radius:18px;
  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:26px 28px;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;
}
.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;
}
.hero-text{position:relative;z-index:1;min-width:0;flex:1}
.hero-text h1{
  font-size:26px;font-weight:900;line-height:1.15;
  display:flex;align-items:center;gap:12px;letter-spacing:-.3px;color:#fff;
}
.hero-text h1 .ico{
  width:48px;height:48px;border-radius:13px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;font-size:22px;
  background:linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,.1));
  border:1px solid rgba(255,255,255,.35);
}
.hero-text p{
  margin-top:10px;font-size:14px;font-weight:600;
  color:rgba(255,255,255,.94);line-height:1.55;max-width:600px;
}
.hero-stats{
  position:relative;z-index:1;
  display:flex;gap:12px;flex-shrink:0;
}
.hstat{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;padding:12px 20px;text-align:center;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  min-width:92px;
}
.hstat b{
  display:block;font-size:22px;font-weight:900;line-height:1.1;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.hstat span{
  font-size:10px;font-weight:800;letter-spacing:.7px;
  text-transform:uppercase;opacity:.88;display:block;margin-top:4px;
}

/* ---------- 4. FORUM GRID (2-col on PC) ---------- */
.forum-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;margin-top:20px;
}

/* ---------- 5. FORUM CARD ---------- */
.forum-card{
  background:#fff;border-radius:16px;overflow:hidden;
  border:1px solid rgba(0,100,0,.06);
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
  display:flex;flex-direction:column;
  contain:layout style;
}
.forum-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,100,0,.15);
  border-color:rgba(0,163,42,.22);
}
.forum-link{display:flex;flex-direction:column;flex:1;color:inherit}

/* Card head */
.card-head{
  padding:18px 20px 16px;display:flex;gap:14px;align-items:flex-start;
  border-bottom:1px solid rgba(0,100,0,.06);
  background:linear-gradient(180deg,#f6fbf7,#fff);
}
.card-icon{
  width:52px;height:52px;border-radius:12px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:24px;
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  box-shadow:0 4px 12px rgba(0,100,0,.22);
  font-style:normal;line-height:1;
  transition:transform .25s ease;
}
.forum-card:hover .card-icon{transform:scale(1.06) rotate(-2deg)}
.card-title-wrap{min-width:0;flex:1}
.card-title{
  font-size:16px;font-weight:800;color:#1a2e1a;line-height:1.3;
  margin-bottom:4px;transition:color .2s ease;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
}
.forum-card:hover .card-title{color:#006400}
.card-desc{
  font-size:12.5px;color:#5a6a5a;line-height:1.5;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
}

/* Card body */
.card-body{
  padding:16px 20px;flex:1;display:flex;flex-direction:column;gap:12px;
}

/* Sub-forums */
.subforums{
  display:flex;flex-wrap:wrap;gap:6px;align-items:center;
}
.subforums .label{
  font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:.4px;color:#00a32a;align-self:center;
}
.subforums a{
  font-size:11.5px;font-weight:700;color:#006400;
  background:rgba(0,163,42,.08);padding:4px 11px;border-radius:8px;
  transition:all .15s ease;
  display:inline-flex;align-items:center;gap:4px;white-space:nowrap;
}
.subforums a:hover{
  background:linear-gradient(135deg,#00a32a,#006400);color:#fff;
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(0,100,0,.22);
}

/* Stats */
.card-stats{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;
  padding-top:12px;border-top:1px dashed rgba(0,100,0,.1);
}
.card-stat{text-align:center;min-width:0}
.card-stat b{
  display:block;font-size:20px;font-weight:900;color:#006400;
  line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.card-stat span{
  font-size:10.5px;font-weight:800;letter-spacing:.4px;
  text-transform:uppercase;color:#7a6a5a;display:block;margin-top:3px;
}

/* Last thread */
.card-last{
  padding-top:10px;border-top:1px dashed rgba(0,100,0,.1);
  font-size:11.5px;color:#7a6a5a;line-height:1.45;
  margin-top:auto;
}
.card-last .label{
  font-size:10px;font-weight:800;text-transform:uppercase;
  letter-spacing:.4px;color:#00a32a;display:block;margin-bottom:3px;
}
.card-last .thread-title{
  display:block;font-weight:700;color:#1a2e1a;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  transition:color .2s ease;
}
.forum-card:hover .card-last .thread-title{color:#006400}
.card-last .thread-time{
  display:block;font-weight:600;color:#7a6a5a;
  margin-top:2px;font-size:11px;
}

/* ---------- 6. 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}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:24px;
  font-size:12.5px;font-weight:800;letter-spacing:.3px;
  text-transform:uppercase;line-height:1;transition:all .2s ease;
}
.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);
}

/* ---------- 7. 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}

/* ---------- 8. TABLET (600–940px) ---------- */
@media (min-width:600px) and (max-width:940px){
  .wrap{max-width:900px}
  .hero{padding:22px 24px;gap:20px}
  .hero-text h1{font-size:24px}
  .hero-text h1 .ico{width:44px;height:44px;font-size:20px}
  .hero-text p{font-size:13.5px}
  .hstat b{font-size:19px}
  .hstat span{font-size:9.5px}
  .card-title{font-size:15px}
  .card-desc{font-size:12px}
  .card-stat b{font-size:18px}
  .forum-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}

/* ---------- 9. 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;
  }
}

/* ---------- 10. 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}

/* ---------- 11. SELECTION ---------- */
::selection{background:#75ff75}
::-moz-selection{background:#75ff75}