/* =========================================================
   PTK FORUM CORE - SAFE UI
========================================================= */

.ptk-forum-wrap,
.ptk-forum-form-wrap,
.ptk-forum-login-box{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

.ptk-forum-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.ptk-forum-title,
.ptk-forum-form-wrap h2{
  margin:0 0 6px;
  color:#f4e3b4;
  font-size:28px;
  line-height:1.25;
}

.ptk-forum-desc{
  margin:0;
  color:#aaa;
  line-height:1.7;
}

.ptk-forum-submit-link,
.ptk-forum-btn-primary,
.ptk-forum-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:9px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  border:1px solid rgba(255,255,255,.08);
  cursor:pointer;
  transition:all .2s ease;
}

.ptk-forum-submit-link,
.ptk-forum-btn-primary{
  background:#c49a3d;
  color:#111;
  border-color:#c49a3d;
}

.ptk-forum-btn-secondary{
  background:#1a1a1a;
  color:#fff;
}

.ptk-forum-submit-link:hover,
.ptk-forum-btn-primary:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}

.ptk-forum-list{
  display:grid;
  gap:12px;
}

.ptk-forum-card{
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
}

.ptk-forum-card-link{
  display:flex;
  gap:12px;
  padding:14px;
  color:inherit;
  text-decoration:none;
}

.ptk-forum-card:hover{
  transform:translateY(-2px);
  border-color:rgba(196,154,61,.18);
}

.ptk-forum-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  background:#111;
}

.ptk-forum-card-body{
  min-width:0;
  flex:1;
}

.ptk-forum-card-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
  color:#9a9a9a;
  font-size:12.5px;
}

.ptk-forum-card-title{
  margin:0 0 6px;
  color:#f2f2f2;
  font-size:17px;
  line-height:1.45;
}

.ptk-forum-card-excerpt{
  color:#bfbfbf;
  font-size:13.5px;
  line-height:1.65;
}

.ptk-forum-card-footer{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.ptk-forum-cat,
.ptk-forum-comments{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
}

.ptk-forum-cat{
  background:rgba(196,154,61,.16);
  color:#f4e3b4;
}

.ptk-forum-comments{
  background:rgba(255,255,255,.04);
  color:#ccc;
}

.ptk-forum-pagination{
  margin-top:20px;
  text-align:center;
}

.ptk-forum-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:0 12px;
  margin:3px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:#ddd;
  text-decoration:none;
}

.ptk-forum-pagination .current{
  background:#c49a3d;
  color:#111;
}

.ptk-forum-form-wrap,
.ptk-forum-login-box{
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
}

.ptk-forum-form .ptk-field{
  margin-bottom:16px;
}

.ptk-forum-form label{
  display:block;
  margin-bottom:8px;
  color:#f2f2f2;
  font-weight:700;
}

.ptk-forum-form input[type="text"],
.ptk-forum-form select,
.ptk-forum-form textarea{
  width:100%;
  box-sizing:border-box;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#111;
  color:#fff;
  outline:none;
}

.ptk-forum-form input[type="text"]:focus,
.ptk-forum-form select:focus,
.ptk-forum-form textarea:focus{
  border-color:rgba(196,154,61,.45);
  box-shadow:0 0 0 3px rgba(196,154,61,.10);
}

.ptk-forum-notice.error{
  margin-bottom:14px;
  padding:12px;
  border-radius:14px;
  background:#fff1f1;
  border:1px solid #f0d1d1;
  color:#8a2d2d;
}

.ptk-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ptk-forum-empty{
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  color:#bbb;
  text-align:center;
}

@media (max-width:640px){
  .ptk-forum-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .ptk-forum-title,
  .ptk-forum-form-wrap h2{
    font-size:24px;
  }

  .ptk-forum-card-link{
    padding:12px;
  }
}

/* =========================================================
   PTK FORUM UI - PRO CLEAN
========================================================= */

.ptk-forum-wrap{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

.ptk-forum-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}

.ptk-forum-title{
  margin:0;
  font-size:28px;
  line-height:1.25;
  color:#f4e3b4;
}

.ptk-forum-desc{
  margin:6px 0 0;
  color:#aaa;
  font-size:14px;
  line-height:1.6;
}

.ptk-forum-submit-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:14px;
  background:#c49a3d;
  color:#111 !important;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 8px 18px rgba(196,154,61,.18);
}

.ptk-forum-submit-link:hover{
  background:#d8ae4d;
  color:#111 !important;
  transform:translateY(-1px);
}

/* LIST */
.ptk-forum-list{
  display:grid;
  gap:14px;
}

.ptk-forum-card{
  overflow:hidden;
  border-radius:18px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
  transition:all .2s ease;
}

.ptk-forum-card:hover{
  transform:translateY(-2px);
  border-color:rgba(196,154,61,.20);
  box-shadow:0 14px 34px rgba(0,0,0,.28);
}

.ptk-forum-card-link{
  display:flex;
  gap:12px;
  padding:14px;
  color:inherit;
  text-decoration:none;
}

.ptk-forum-card-left{
  flex:0 0 46px;
}

.ptk-forum-card-left img,
.ptk-forum-card-left .avatar{
  width:46px;
  height:46px;
  border-radius:999px;
  object-fit:cover;
  display:block;
  border:2px solid rgba(196,154,61,.25);
  background:#111;
}

.ptk-forum-card-body{
  flex:1 1 auto;
  min-width:0;
}

.ptk-forum-card-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:6px;
  font-size:12.5px;
  color:#999;
}

.ptk-forum-card-meta > span:first-child{
  color:#f1f1f1;
  font-weight:700;
}

.ptk-dot{
  opacity:.55;
}

.ptk-forum-card-title{
  margin:0 0 7px;
  font-size:17px;
  line-height:1.45;
  color:#f4e3b4;
}

.ptk-forum-card-excerpt{
  margin:0 0 10px;
  font-size:13.5px;
  line-height:1.65;
  color:#c9c9c9;
}

.ptk-forum-card-footer{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.ptk-forum-cat,
.ptk-forum-comments{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:4px 9px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
}

.ptk-forum-cat{
  background:rgba(196,154,61,.14);
  color:#e0bb63;
  border:1px solid rgba(196,154,61,.18);
}

.ptk-forum-comments{
  background:rgba(255,255,255,.04);
  color:#bdbdbd;
  border:1px solid rgba(255,255,255,.07);
}

/* EMPTY */
.ptk-forum-empty{
  padding:22px;
  border-radius:18px;
  background:#171717;
  border:1px solid rgba(255,255,255,.06);
  color:#aaa;
  text-align:center;
}

/* PAGINATION */
.ptk-forum-pagination{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

.ptk-forum-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  margin:0 3px;
  padding:0 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  color:#ddd;
  text-decoration:none;
}

.ptk-forum-pagination .page-numbers.current{
  background:#c49a3d;
  color:#111;
  border-color:#c49a3d;
}

/* FORM */
.ptk-forum-form-wrap{
  width:100%;
  max-width:820px;
  margin:0 auto;
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#1a1a1a 0%,#121212 100%);
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 26px rgba(0,0,0,.20);
}

.ptk-forum-form-wrap h2{
  margin:0 0 16px;
  color:#f4e3b4;
  font-size:26px;
  line-height:1.3;
}

.ptk-forum-form .ptk-field{
  margin-bottom:14px;
}

.ptk-forum-form .ptk-field label{
  display:block;
  margin-bottom:7px;
  color:#eee;
  font-size:14px;
  font-weight:700;
}

.ptk-forum-form input[type="text"],
.ptk-forum-form select,
.ptk-forum-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#1f1f1f;
  color:#fff;
  outline:none;
}

.ptk-forum-form textarea{
  min-height:180px;
  line-height:1.7;
  resize:vertical;
}

.ptk-forum-form input:focus,
.ptk-forum-form select:focus,
.ptk-forum-form textarea:focus{
  border-color:rgba(196,154,61,.38);
  box-shadow:0 0 0 3px rgba(196,154,61,.08);
}

.ptk-forum-btn-primary,
.ptk-forum-btn-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
  border:0;
}

.ptk-forum-btn-primary{
  background:#c49a3d;
  color:#111;
}

.ptk-forum-btn-secondary{
  background:rgba(255,255,255,.06);
  color:#eee;
  border:1px solid rgba(255,255,255,.08);
}

.ptk-forum-btn-primary:hover,
.ptk-forum-btn-secondary:hover{
  transform:translateY(-1px);
}

/* MOBILE */
@media (max-width:640px){
  .ptk-forum-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .ptk-forum-title{
    font-size:24px;
  }

  .ptk-forum-submit-link{
    width:100%;
  }

  .ptk-forum-card-link{
    padding:12px;
  }

  .ptk-forum-card-left{
    flex-basis:42px;
  }

  .ptk-forum-card-left img,
  .ptk-forum-card-left .avatar{
    width:42px;
    height:42px;
  }

  .ptk-forum-card-title{
    font-size:16px;
  }

  .ptk-forum-form-wrap{
    padding:14px;
    border-radius:16px;
  }

  .ptk-actions{
    flex-direction:column;
  }

  .ptk-forum-btn-primary,
  .ptk-forum-btn-secondary{
    width:100%;
  }
}

/* =========================================================
   PTK FORUM LIST - THUMBNAIL
========================================================= */

.ptk-forum-card-thumb{
  width:56px;
  height:56px;
  border-radius:14px;
  overflow:hidden;
  background:#111;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 6px 16px rgba(0,0,0,.22);
}

.ptk-forum-card-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ptk-forum-card:hover .ptk-forum-card-thumb img{
  transform:scale(1.04);
  transition:transform .35s ease;
}

@media (max-width:640px){
  .ptk-forum-card-thumb{
    width:48px;
    height:48px;
    border-radius:12px;
  }
}

/* =========================================================
   PTK FORUM NAV ACTIONS
========================================================= */

.ptk-forum-nav-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}

.ptk-forum-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;

  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#ddd;

  font-size:13px;
  font-weight:700;
  text-decoration:none;
  transition:all .2s ease;
}

.ptk-forum-nav-btn:hover{
  background:rgba(255,255,255,.08);
  color:#fff;
}

.ptk-forum-nav-btn.is-active{
  background:#c49a3d;
  border-color:#c49a3d;
  color:#111;
}

@media (max-width:640px){
  .ptk-forum-nav-actions{
    gap:6px;
  }

  .ptk-forum-nav-btn{
    flex:1 1 auto;
    min-height:38px;
    padding:0 10px;
    font-size:12.5px;
  }
}

/* =========================================================
   PTK FORUM BADGE SPACING FIX
========================================================= */

.ptk-forum-author-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:6px;
  vertical-align:middle;
}

.ptk-forum-author-badge .ptk-badge,
.ptk-forum-author-badge span{
  margin-left:4px;
}

.ptk-forum-card-meta,
.ptk-author-name{
  gap:6px;
}