/* =========================================================
   PTK FORUM IMAGE UPLOADER
   SAFE MODE
   - Preview Images
   - Native Drag & Drop
   - Remove Image
========================================================= */
.ptk-forum-upload-zone{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:126px;
    padding:18px;
    border:2px dashed rgba(212,175,55,.48);
    border-radius:16px;
    background:rgba(255,248,229,.72);
    text-align:center;
    cursor:pointer;
    transition:.18s ease;
    box-sizing:border-box;
}
.ptk-forum-upload-zone.is-dragover{
    background:rgba(255,239,185,.95);
    border-color:#b58926;
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(164,117,22,.14);
}
.ptk-forum-upload-zone input[type="file"]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}
.ptk-forum-upload-text strong{
    display:block;
    color:#4b3514;
    font-size:16px;
}
.ptk-forum-upload-text span{
    display:block;
    margin-top:5px;
    color:#806b45;
    font-size:13px;
}
.ptk-forum-preview-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(118px, 1fr));
    gap:12px;
    margin-top:14px;
}
.ptk-forum-preview-item{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    background:#fff;
    border:1px solid rgba(212,175,55,.28);
    box-shadow:0 8px 18px rgba(0,0,0,.08);
    cursor:grab;
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, border-color .18s ease;
}
.ptk-forum-preview-item:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(0,0,0,.12);
    border-color:rgba(212,175,55,.55);
}
.ptk-forum-preview-item.dragging{
    opacity:.55;
    cursor:grabbing;
}
.ptk-forum-preview-item img{
    display:block;
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
}
.ptk-forum-preview-badge{
    position:absolute;
    left:7px;
    top:7px;
    padding:4px 7px;
    border-radius:999px;
    background:rgba(0,0,0,.68);
    color:#fff;
    font-size:12px;
    line-height:1;
}
.ptk-forum-preview-remove{
    position:absolute;
    right:7px;
    top:7px;
    width:28px;
    height:28px;
    border:0;
    border-radius:50%;
    background:rgba(183,28,28,.92);
    color:#fff;
    cursor:pointer;
    line-height:28px;
    text-align:center;
    padding:0;
    transition:.18s ease;
}
.ptk-forum-preview-remove:hover,
.ptk-forum-preview-remove:focus{
    background:#b71c1c;
    transform:scale(1.05);
}
.ptk-forum-preview-remove:active{
    transform:scale(.96);
}

/* =========================================================
   PTK FORUM FORM SUBMIT FEEDBACK
   SAFE MODE
========================================================= */
.ptk-forum-form.is-submitting .ptk-forum-btn-primary{
    opacity:.92;
    pointer-events:none;
    background:#2e7d32 !important;
    border-color:#1b5e20 !important;
    color:#fff !important;
    box-shadow:0 10px 22px rgba(46,125,50,.20);
}

/* =========================================================
   PTK FORUM SUCCESS ACTION CENTER
   SAFE MODE
   - Success Card
   - Action Buttons
   - Share Buttons
   - Hover / Active Animation
========================================================= */
.ptk-forum-success-center{
    max-width:860px;
    margin:24px auto;
    padding:26px 20px;
    border-radius:22px;
    border:1px solid rgba(76,175,80,.34);
    background:linear-gradient(180deg, #fbfff9, #effaf0);
    text-align:center;
    box-shadow:0 16px 38px rgba(0,0,0,.10);
    animation:ptkForumSuccessIn .28s ease both;
}
.ptk-forum-success-center.is-success{
    border-color:rgba(46,125,50,.30);
}
.ptk-forum-success-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(180deg, #43a047, #2e7d32);
    color:#fff;
    font-size:34px;
    font-weight:800;
    margin-bottom:10px;
    box-shadow:0 10px 22px rgba(46,125,50,.22);
    animation:ptkForumSuccessPop .32s ease both;
}
.ptk-forum-success-center h3{
    margin:6px 0 6px;
    color:#244426;
    font-size:24px;
}
.ptk-forum-success-center p{
    margin:0 auto 16px;
    color:#48614b;
}
.ptk-forum-success-actions,
.ptk-forum-share-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    justify-content:center;
    margin-top:12px;
}
.ptk-forum-success-actions a,
.ptk-forum-success-actions a:visited,
.ptk-forum-share-actions a,
.ptk-forum-share-actions a:visited,
.ptk-forum-share-actions button,
.ptk-forum-action-btn,
.ptk-forum-action-btn:visited,
.ptk-forum-share-btn,
.ptk-forum-share-btn:visited{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:9px 16px;
    border-radius:999px;
    border:1px solid rgba(212,175,55,.45) !important;
    background:#fff !important;
    color:#4f3708 !important;
    text-decoration:none !important;
    cursor:pointer;
    font-weight:700;
    box-sizing:border-box;
    transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    box-shadow:0 6px 16px rgba(0,0,0,.06);
}
.ptk-forum-success-actions a:hover,
.ptk-forum-success-actions a:focus,
.ptk-forum-share-actions a:hover,
.ptk-forum-share-actions a:focus,
.ptk-forum-share-actions button:hover,
.ptk-forum-share-actions button:focus,
.ptk-forum-action-btn:hover,
.ptk-forum-action-btn:focus,
.ptk-forum-share-btn:hover,
.ptk-forum-share-btn:focus{
    background:#f8edd0 !important;
    color:#2b1d00 !important;
    border-color:#d4af37 !important;
    transform:translateY(-2px);
    box-shadow:0 10px 22px rgba(164,117,22,.16);
    outline:none;
}
.ptk-forum-success-actions a:active,
.ptk-forum-share-actions a:active,
.ptk-forum-share-actions button:active,
.ptk-forum-action-btn:active,
.ptk-forum-share-btn:active,
.ptk-forum-action-btn.is-touching,
.ptk-forum-share-btn.is-touching{
    background:#efd68a !important;
    color:#2b1d00 !important;
    border-color:#c79a20 !important;
    transform:translateY(0);
    box-shadow:inset 0 2px 6px rgba(0,0,0,.12), 0 4px 12px rgba(164,117,22,.12);
}
.ptk-forum-success-primary,
.ptk-forum-success-primary:visited{
    background:linear-gradient(180deg, #d4af37, #a47516) !important;
    color:#fff !important;
    border-color:#a47516 !important;
    box-shadow:0 8px 18px rgba(164,117,22,.22) !important;
}
.ptk-forum-success-primary:hover,
.ptk-forum-success-primary:focus{
    background:#f8edd0 !important;
    color:#2b1d00 !important;
    border-color:#d4af37 !important;
}
.ptk-forum-copy-link.is-copied,
.ptk-forum-copy-link.is-copied:hover,
.ptk-forum-copy-link.is-copied:focus{
    background:#e8f5e9 !important;
    color:#1b5e20 !important;
    border-color:#81c784 !important;
    box-shadow:0 8px 18px rgba(46,125,50,.14);
}
@keyframes ptkForumSuccessIn{
    from{opacity:0; transform:translateY(8px);}
    to{opacity:1; transform:translateY(0);}
}
@keyframes ptkForumSuccessPop{
    0%{opacity:0; transform:scale(.88);}
    100%{opacity:1; transform:scale(1);}
}
@media (prefers-reduced-motion:reduce){
    .ptk-forum-success-center,
    .ptk-forum-success-icon,
    .ptk-forum-preview-item,
    .ptk-forum-action-btn,
    .ptk-forum-share-btn{
        animation:none !important;
        transition:none !important;
    }
}
@media (max-width:600px){
    .ptk-forum-preview-grid{grid-template-columns:repeat(3, 1fr);gap:9px;}
    .ptk-forum-success-actions a,
    .ptk-forum-share-actions a,
    .ptk-forum-share-actions button{width:100%;}
}
