/*
 * 05 PT Author Engagement - Frontend CSS
 * File:
 * wp-content/mu-plugins/css/05-pt-author-engagement-frontend.css
 */

.pt-ae-like-wrap{
    margin:24px 0;
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

/* Tombol Like */

.pt-ae-like-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    padding:9px 14px;

    border:1px solid rgba(233,30,99,.20);
    border-radius:999px;

    background:#ffffff;
    color:#e91e63;

    cursor:pointer;
    line-height:1;

    transition:
        color .15s ease,
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

/* Hover */

.pt-ae-like-button:hover{
    background:#e91e63;
    border-color:#e91e63;
    color:#ffffff;
}

/* Focus keyboard */

.pt-ae-like-button:focus{
    outline:none;
    background:#ffffff;
    color:#e91e63;
    border-color:#e91e63;
    box-shadow:0 0 0 3px rgba(233,30,99,.18);
}

/* Disabled */

.pt-ae-like-button:disabled{
    opacity:.65;
    cursor:not-allowed;
}

/* State sudah like */

.pt-ae-like-button.is-liked,
.pt-ae-like-button[data-liked="1"]{
    background:#e91e63;
    border-color:#e91e63;
    color:#ffffff;
}

/* Icon SVG */

.pt-ae-like-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:22px;
    height:22px;

    flex-shrink:0;
}

.pt-ae-like-icon svg{
    display:block;
    width:22px;
    height:22px;
    fill:currentColor;
}

/* Counter */

.pt-ae-like-count{
    font-weight:700;
    font-size:14px;
    line-height:1;
    font-variant-numeric:tabular-nums;
}

/* Pesan AJAX */

.pt-ae-like-message{
    font-size:13px;
    line-height:1.4;
    color:#646970;
}

/* Mobile */

@media (max-width:480px){

    .pt-ae-like-button{
        padding:10px 14px;
    }

    .pt-ae-like-icon{
        width:24px;
        height:24px;
    }

    .pt-ae-like-icon svg{
        width:24px;
        height:24px;
    }

    .pt-ae-like-count{
        font-size:15px;
    }
}

.pt-ae-post-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    margin:0 0 18px;
    color:#646970;
    font-size:13px;
    line-height:1.5;
}

.pt-ae-post-meta-item{
    display:inline-flex;
    align-items:center;
    gap:5px;
}

.pt-ae-post-meta-sep{
    opacity:.45;
}

.pt-ae-report-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:9px 14px;
    border:1px solid #d0d5dd;
    border-radius:999px;
    background:#ffffff;
    color:#646970;
    cursor:pointer;
    line-height:1;
    transition:color .15s ease, border-color .15s ease, background-color .15s ease;
}

.pt-ae-report-button::before{
    content:"⚑";
    margin-right:6px;
}

.pt-ae-report-button:hover,
.pt-ae-report-button[aria-expanded="true"]{
    color:#b42318;
    border-color:#f04438;
    background:#fff5f5;
}

.pt-ae-report-panel{
    flex-basis:100%;
    width:100%;
    max-width:420px;
    margin-top:8px;
    padding:14px;
    border:1px solid #fecdca;
    border-radius:12px;
    background:#fffafa;
}

.pt-ae-report-panel[hidden]{
    display:none!important;
}

.pt-ae-report-label{
    display:flex;
    flex-direction:column;
    gap:6px;
    margin-bottom:10px;
    color:#344054;
    font-size:13px;
    font-weight:600;
}

.pt-ae-report-reason,
.pt-ae-report-message{
    width:100%;
    border:1px solid #d0d5dd;
    border-radius:8px;
    background:#ffffff;
    color:#344054;
    font-size:14px;
}

.pt-ae-report-reason{
    min-height:38px;
    padding:6px 10px;
}

.pt-ae-report-message{
    padding:9px 10px;
    resize:vertical;
}

.pt-ae-report-submit{
    margin-top:10px;
    padding:9px 14px;
    border:0;
    border-radius:999px;
    background:#b42318;
    color:#ffffff;
    cursor:pointer;
    font-weight:700;
    line-height:1;
}

.pt-ae-report-submit:hover{
    background:#912018;
}

.pt-ae-report-submit:disabled{
    opacity:.65;
    cursor:not-allowed;
}
