/* ============================================================
   AFRICAPICKUP — FORUM INDEX (PC)
   File: pc-less-forum-cache.css
   Complete — every selector used by forum.php is defined here
   Grid: 2 columns (main | sidebar), pagination-free
   ============================================================ */

/* ---------- 0. RESET / BASE ---------- */
*,*::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,h5,h6{margin:0;padding:0;font:inherit;font-weight:700;line-height:1.3}
p{margin:0;padding:0}

/* ---------- 1. SHELL: 2-COLUMN GRID ---------- */
.wrap{
  max-width:1200px;margin:0 auto;padding:0 16px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  grid-template-areas:
    "hero     sidebar"
    "cats     sidebar";
  column-gap:24px;
  align-items:start;
  position:relative;z-index:1;
}

/* ---------- 2. 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}

/* ---------- 3. HERO ---------- */
.forum-hero{
  grid-area:hero;
  margin:20px 0 0;
  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%);
  border-radius:20px;padding:32px 30px;
  position:relative;overflow:hidden;
  box-shadow:0 12px 30px rgba(0,100,0,.28),inset 0 1px 0 rgba(255,255,255,.18);
  color:#fff;
  isolation:isolate;
  contain:layout style paint;
}
.forum-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;
}
.forum-hero h1{
  position:relative;z-index:1;
  font-size:32px;font-weight:900;line-height:1.15;
  display:flex;align-items:center;gap:14px;letter-spacing:-.4px;
  color:#fff;
}
.forum-hero 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);
}
.forum-hero p{
  position:relative;z-index:1;
  margin-top:12px;font-size:15px;font-weight:600;
  color:rgba(255,255,255,.94);line-height:1.55;max-width:640px;
}
.forum-stats{
  position:relative;z-index:1;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;margin-top:22px;
}
.fstat{
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.25);
  border-radius:14px;padding:14px;text-align:center;
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
}
.fstat b{
  display:block;font-size:22px;font-weight:900;line-height:1.1;color:#fff;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.fstat span{
  font-size:10px;font-weight:800;letter-spacing:.7px;
  text-transform:uppercase;opacity:.88;display:block;margin-top:4px;
}

/* ---------- 4. CATEGORIES WRAPPER (single grid area for all cats) ---------- */
.forum-cats-wrap{
  grid-area:cats;
  margin-top:20px;
  display:block;
}
.forum-cat + .forum-cat{margin-top:16px}

/* ---------- 5. CATEGORY HEADER ---------- */
.cat-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 22px;
  background:linear-gradient(180deg,#f6fbf7,#fff);
  border:1px solid rgba(0,100,0,.06);
  border-bottom:1px solid rgba(0,100,0,.08);
  border-radius:16px 16px 0 0;
}
.cat-head h2{
  font-size:16px;font-weight:800;text-transform:uppercase;
  letter-spacing:.4px;color:#2a5a2a;
  display:flex;align-items:center;gap:10px;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.cat-head h2::before{
  content:"";width:8px;height:8px;background:#00a32a;
  border-radius:50%;box-shadow:0 0 0 3px rgba(0,163,42,.14);flex-shrink:0;
}
.cat-head h2 a{color:inherit;transition:color .2s ease}
.cat-head h2 a:hover{color:#00a32a}
.cat-count{
  font-size:11px;font-weight:800;color:#fff;
  background:linear-gradient(135deg,#00a32a,#006400);
  padding:4px 11px;border-radius:12px;flex-shrink:0;
  box-shadow:0 2px 6px rgba(0,100,0,.25);
}

/* ---------- 6. FORUM LIST WRAPPER ---------- */
.forum-list{
  background:#fff;border:1px solid rgba(0,100,0,.06);
  border-top:none;border-radius:0 0 16px 16px;overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
  display:grid;gap:0;
}

/* ---------- 7. FORUM ROW (PC) ---------- */
.forum-row{
  position:relative;
  border-bottom:1px solid rgba(0,100,0,.06);
  transition:background .15s ease;
  contain:layout style;
}
.forum-row:last-child{border-bottom:none}
.forum-row:hover{background:#f6fbf7}

.forum-link{
  display:grid;
  grid-template-columns:56px minmax(0,1fr) 32px;
  gap:18px;padding:16px 22px;align-items:center;
  position:relative;color:inherit;
}
.forum-link::before{
  content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;
  background:linear-gradient(180deg,#00d135,#006400);
  border-radius:2px;opacity:0;transition:opacity .2s ease;
}
.forum-row:hover .forum-link::before{opacity:1}

.forum-icon{
  width:56px;height:56px;border-radius:12px;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(0,163,42,.08);color:#006400;font-size:24px;
  border:1px solid rgba(0,163,42,.1);
  font-style:normal;line-height:1;
  transition:all .2s ease;
}
.forum-row:hover .forum-icon{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;transform:scale(1.05);
  border-color:#006400;
  box-shadow:0 6px 14px rgba(0,100,0,.25);
}

.forum-body{min-width:0}
.forum-title{
  font-size:16px;font-weight:800;color:#1a2e1a;line-height:1.3;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
  transition:color .2s ease;
}
.forum-row:hover .forum-title{color:#006400}
.forum-desc{
  font-size:13px;color:#5a6a5a;line-height:1.5;margin-top:4px;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  word-break:break-word;
}

.forum-stats-row{
  display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;
}
.stat-pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:4px 10px;border-radius:8px;
  background:rgba(0,163,42,.08);color:#006400;
  font-size:11px;font-weight:800;
}
.stat-pill i{font-style:normal;font-size:12px;line-height:1}

.forum-lastpost{
  margin-top:8px;padding-top:8px;
  border-top:1px dashed rgba(0,100,0,.1);
  font-size:11.5px;color:#7a6a5a;
  display:flex;flex-wrap:wrap;align-items:center;gap:6px;
}
.lastpost-label{
  font-weight:800;color:#00a32a;
  text-transform:uppercase;letter-spacing:.4px;font-size:10px;
}
.lastpost-prefix{color:#006400;font-weight:800}
.lastpost-time{font-weight:600}
.forum-lastpost.empty .lastpost-label{color:#a0b0a0}

.forum-arrow{
  width:32px;height:32px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,163,42,.1);color:#006400;
  font-size:18px;font-weight:900;flex-shrink:0;line-height:1;
  transition:all .2s ease;
}
.forum-row:hover .forum-arrow{
  background:linear-gradient(135deg,#00a32a,#006400);
  color:#fff;transform:translateX(3px);
  box-shadow:0 4px 10px rgba(0,100,0,.25);
}

/* ---------- 8. EMPTY STATE ---------- */
.forum-empty{
  padding:32px 24px;text-align:center;
  background:#fff;border:1px solid rgba(0,100,0,.06);
  border-top:none;border-radius:0 0 16px 16px;
  color:#5a6a5a;font-size:14px;font-weight:600;
  display:flex;align-items:center;justify-content:center;gap:10px;
}
.forum-empty span{font-size:24px;font-style:normal;line-height:1}
.forum-empty.big{
  padding:60px 24px;margin-top:20px;font-size:15px;
  border-radius:16px;border-top:1px solid rgba(0,100,0,.06);
}

/* ---------- 9. SIDEBAR (sticky right column) ---------- */
.sidebar{
  grid-area:sidebar;
  position:sticky;top:20px;
  align-self:start;
  padding-top:20px;
  contain:layout style;
}
.sb{
  background:#fff;border-radius:12px;border-left:5px solid #006400;
  margin-bottom:16px;overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}
.sb:last-child{margin-bottom:0}
.sb-name{
  display:flex;align-items:center;gap:10px;
  font-size:13.5px;font-weight:800;letter-spacing:.4px;
  text-transform:uppercase;color:#2a5a2a;background:#e4ede6;
  padding:13px 16px;border-bottom:1px solid rgba(0,100,0,.06);
}
.sb-name::before{
  content:"";width:8px;height:8px;background:#00a32a;
  border-radius:50%;box-shadow:0 0 0 3px rgba(0,163,42,.14);flex-shrink:0;
}
.sb ul{padding:0}
.sb li{
  padding:9px 16px;border-bottom:1px solid rgba(0,100,0,.06);
  font-size:13px;line-height:1.5;color:#3d2a2a;
}
.sb li:last-child{border-bottom:none}
.sb li a{
  color:#2a5a2a;font-weight:600;
  display:inline-flex;align-items:center;gap:6px;
  transition:color .2s ease;
}
.sb li a:hover{color:#00a32a}
.sb li a i{color:#00a32a;font-size:11px;font-style:normal}

/* Sidebar ad (uses .sb-ad to avoid .ad-slot margin conflict) */
.sb-ad{padding:12px;text-align:center}
.sb-ad img{max-width:100%;height:auto;border-radius:8px}

/* ---------- 10. AD SLOT (generic) ---------- */
.ad-slot{
  min-height:250px;display:flex;align-items:center;justify-content:center;
  margin:16px 0;background:#eef4ef;border-radius:10px;overflow:hidden;
  contain:layout style;
}
.ad-slot:empty{min-height:0;margin:0}

/* ---------- 11. TABLET (600–940px) ---------- */
@media (min-width:600px) and (max-width:940px){
  .wrap{
    max-width:900px;
    grid-template-columns:1fr;
    grid-template-areas:
      "hero"
      "cats"
      "sidebar";
  }
  .sidebar{position:static;padding-top:0;margin-top:16px}
  .forum-hero h1{font-size:26px}
  .forum-hero h1 .ico{width:44px;height:44px;font-size:22px}
  .forum-hero p{font-size:13.5px}
  .forum-stats{gap:10px;margin-top:18px}
  .fstat b{font-size:19px}
  .fstat span{font-size:9.5px}
  .forum-link{padding:14px 18px;gap:14px;
    grid-template-columns:48px minmax(0,1fr) 28px}
  .forum-icon{width:48px;height:48px;font-size:22px}
  .forum-title{font-size:15px}
}

/* ---------- 12. 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;
  }
}

/* ---------- 13. 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}

/* ---------- 14. SELECTION ---------- */
::selection{background:#75ff75}
::-moz-selection{background:#75ff75}