/* Single game comments and comment actions. */

/* Single game comments surface. */
.game-comments-section{
    position: relative;
    margin: 40px auto 34px;
    padding: 26px 24px 28px;
    border: 2px solid var(--border-soft);
    border-top: 4px solid var(--mustard-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(250,245,252,0.98) 100%);
    color: var(--text-dark);
}

.game-comments-head{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    margin-bottom: 22px;
    padding-bottom: 4px;
}

.game-comments-title{
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--text-dark-2);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.game-comments-form-shell{
    margin: 0 0 26px;
    padding: 0;
    background: transparent;
    border: 0;
}

.game-comment-form{
    display: grid;
    gap: 16px;
}

.game-comment-form .comment-form-author,
.game-comment-form .comment-form-email,
.game-comment-form .comment-form-comment{
    margin: 0;
}

.game-comment-form label{
    display: block;
    margin: 0 0 8px;
    color: var(--text-dark-2);
    font-size: 14px;
    font-weight: 800;
}

.game-comment-form input[type="text"],
.game-comment-form input[type="email"],
.game-comment-form textarea{
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(142, 43, 178, 0.18);
    background: rgba(109, 90, 115, 0.10);
    color: var(--text-dark-2);
    padding: 16px 18px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.game-comment-form textarea{
    min-height: 146px;
    resize: vertical;
}

.game-comment-form input[type="text"]::placeholder,
.game-comment-form input[type="email"]::placeholder,
.game-comment-form textarea::placeholder{
    color: #8f7c98;
}

.game-comment-form input[type="text"]:focus,
.game-comment-form input[type="email"]:focus,
.game-comment-form textarea:focus{
    border-color: rgba(142, 43, 178, 0.34);
    background: #ffffff;
}

.game-comment-submit-wrap{
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.game-comment-submit{
    min-width: 220px;
    height: 46px;
    border: 2px solid var(--mustard-line);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.game-comment-submit:hover{
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
}

.game-comment-submit:active{
    transform: translateY(0);
}

.game-comment-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-comment-item{
    list-style: none;
    margin: 0;
    padding: 0;
}

.game-comment-card{
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid rgba(109, 90, 115, 0.18);
}

.game-comment-list > .game-comment-item:first-child > .game-comment-card{
    border-top: 1px solid rgba(109, 90, 115, 0.20);
}

.game-comment-avatar img,
.game-comment-avatar .avatar{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(122, 45, 160, 0.35);
}

.game-comment-author-line{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.game-comment-author{
    color: var(--text-dark-2);
    font-size: 15px;
    font-weight: 800;
}

.game-comment-dot{
    color: #9b85a3;
    font-size: 12px;
}

.game-comment-time{
    color: #8f7c98;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.game-comment-edited{
    color: #8f7c98;
    font-size: 13px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
}

.game-comment-content{
    color: #1f2937;
    font-size: 16px;
    line-height: 1.7;
    word-break: break-word;
}

.game-comment-content a{
    color: #1f2937;
    text-decoration: underline;
}

.game-comment-content p{
    margin: 0;
    color: #1f2937;
}

.game-comment-mention{
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 8px;
    color: var(--purple-1);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.game-comment-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
}

.game-comment-reply a,
.game-comment-edit a,
.game-comment-edit-button{
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--mustard-3);
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.game-comment-reply a:hover,
.game-comment-edit a:hover,
.game-comment-edit-button:hover{
    color: var(--purple-1);
    transform: translateY(-1px);
}

.game-comment-card.is-editing .game-comment-text{
    display: none;
}

.game-comment-edit-form{
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.game-comment-edit-field{
    width: 100%;
    min-height: 112px;
    border-radius: 18px;
    border: 1px solid rgba(142, 43, 178, 0.18);
    background: rgba(109, 90, 115, 0.10);
    color: var(--text-dark-2);
    padding: 14px 16px;
    font: inherit;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    transition: border-color .2s ease, background-color .2s ease;
}

.game-comment-edit-field:focus{
    border-color: rgba(142, 43, 178, 0.34);
    background: #ffffff;
}

.game-comment-edit-actions{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.game-comment-edit-actions .game-comment-submit{
    min-width: 126px;
    height: 40px;
    border-radius: 13px;
    padding: 0 18px;
    font-size: 14px;
}

.game-comment-edit-actions .game-comment-edit-cancel{
    color: var(--mustard-3);
}

.game-comment-delete-button{
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #b42318;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.game-comment-delete-button:hover{
    color: #7a1f8f;
    transform: translateY(-1px);
}

.game-comment-delete-button.is-loading{
    opacity: 0.62;
    pointer-events: none;
}

.game-comment-awaiting,
.game-comments-empty{
    margin: 16px 0 0;
    color: #8f7c98;
    font-size: 14px;
    font-weight: 700;
}

.game-comment-item .children{
    list-style: none;
    margin: 10px 0 0 22px;
    padding: 0 0 0 20px;
    border-left: 2px solid rgba(142, 43, 178, 0.18);
}

.game-comment-item .children .children{
    margin-top: 8px;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
}

.game-comment-item .children .game-comment-card{
    border-top-color: rgba(109, 90, 115, 0.14);
    padding-top: 18px;
    padding-bottom: 18px;
}

.comment-respond{
    margin-top: 16px;
}

.game-comments-section .comment-navigation,
.game-comments-section .comments-pagination,
.game-comments-section .navigation{
    margin-top: 18px;
}

.game-comments-section .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 6px 0 0;
    padding: 0 14px;
    border-radius: 14px;
    border: 2px solid rgba(142, 43, 178, 0.16);
    background: #fffef9;
    color: var(--text-dark);
    font-weight: 800;
    text-decoration: none;
}

.game-comments-section .page-numbers.current,
.game-comments-section .page-numbers:hover{
    border-color: var(--mustard-line);
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
}

@media (max-width: 768px) {
    .game-comments-section{
        margin-top: 32px;
        padding: 22px 16px 24px;
    }

    .game-comments-head{
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 0;
        gap: 10px;
        margin-bottom: 18px;
    }

    .game-comments-title{
        font-size: 24px;
    }

    .game-comment-form textarea{
        min-height: 124px;
    }

    .game-comment-card{
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 18px 0;
    }

    .game-comment-item .children{
        margin-left: 12px;
        padding-left: 14px;
    }

    .game-comment-item .children .children{
        margin-left: 0;
        padding-left: 0;
    }

    .game-comment-actions{
        gap: 10px 14px;
    }

    .game-comment-votes{
        flex-wrap: wrap;
        max-width: 100%;
    }

    .game-comment-submit{
        width: 100%;
        min-width: 0;
    }
}

.game-comments-lockbox{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,238,251,0.88));
    border: 1px solid rgba(120, 42, 160, 0.10);
}

.game-comments-lock-content{
    display: grid;
    gap: 6px;
}

.game-comments-lock-content strong{
    color: #5a2874;
}

.game-comments-lock-content p{
    margin: 0;
    color: rgba(58, 36, 76, 0.76);
}

.game-comments-lock-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .game-comments-lockbox{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .game-comments-lock-content{
        width: 100%;
        justify-items: center;
    }

    .game-comments-lock-actions{
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .game-comments-lock-actions .game-comment-submit,
    .game-comments-lock-actions .game-comment-submit-secondary{
        width: 100%;
        max-width: 220px;
        min-width: 0;
        text-align: center;
    }
}

.game-comment-submit-secondary{
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    border: 2px solid var(--mustard-line);
}

.game-comments-lock-actions .game-comment-submit,
.game-comments-lock-actions .game-comment-submit-secondary{
    background: linear-gradient(180deg, var(--purple-1) 0%, var(--purple-2) 100%);
    color: #fff4c7;
    border: 2px solid var(--mustard-line);
}

.game-comments-lock-actions .game-comment-submit:hover,
.game-comments-lock-actions .game-comment-submit-secondary:hover{
    transform: translateY(-1px);
    border-color: #ffd15a;
    background: linear-gradient(180deg, #9f32c7 0%, #74208e 100%);
    color: #fff4c7;
}

.game-comment-votes{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.game-comment-vote-button{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(123, 31, 162, 0.12);
    background: rgba(255,255,255,0.90);
    color: #5a2874;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.game-comment-vote-button:hover{
    transform: translateY(-1px);
    border-color: rgba(236, 181, 0, 0.34);
}

.game-comment-vote-button.is-active{
    border-color: rgba(236, 181, 0, 0.44);
}

.game-comment-vote-button.is-loading{
    opacity: 0.65;
    pointer-events: none;
}

.game-comment-vote-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    line-height: 1;
}

.game-comment-vote-icon svg{
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.game-comment-vote-count{
    min-width: 10px;
    text-align: center;
}
