/* =====================================================================
   PlayToEarn · Feature Requests board (FeedBear-style)
   ===================================================================== */

.FrWrap{
    max-width: 1100px;
    margin: 24px 0 60px;
    padding: 0;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.FrLayout{
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* ---------- Sidebar : New idea ---------- */
.FrSidebar{
    width: 320px;
    flex: 0 0 320px;
    position: sticky;
    top: 88px;
}

.FrCardTitle{
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}

.FrCardSub{
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0 0 18px;
}

.FrField{ margin-bottom: 16px; }

.FrLabel{
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.FrInput,
.FrTextarea{
    width: 100%;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    background: #fff;
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
}
.FrInput::placeholder,
.FrTextarea::placeholder{ color: #9aa1ac; }

.FrInput:focus,
.FrTextarea:focus{
    border-color: #0012ff;
    box-shadow: 0 0 0 3px rgba(0,18,255,.12);
}

.FrTextarea{ min-height: 96px; resize: vertical; border-top-left-radius: 0; border-top-right-radius: 0; }

/* fake rich-text toolbar */
.FrEditorBar{
    display: flex;
    align-items: center;
    gap: 2px;
    border: 1px solid #dcdfe4;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 6px 8px;
    background: #fafbfc;
}
.FrEditorBar i{
    width: 28px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
}
.FrEditorBar i:hover{ background: #eef0f3; color: #111; }
.FrEditorBar .FrEditorSep{
    width: 1px;
    height: 18px;
    background: #e2e5ea;
    margin: 0 4px;
}
.FrEditorBar i.is-active{ background: #e6e9ff; color: #0012ff; }

/* TipTap rich-text editor (mirrors .FrTextarea look) */
.FrEditor{
    border: 1px solid #dcdfe4;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.FrEditor:focus-within{
    border-color: #0012ff;
    box-shadow: 0 0 0 3px rgba(0,18,255,.12);
}
.FrEditor .ProseMirror{
    min-height: 96px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111;
    outline: none;
    line-height: 1.5;
}
.FrEditor .ProseMirror:focus{ outline: none; }
.FrEditor .ProseMirror > * + *{ margin-top: .5em; }
.FrEditor .ProseMirror ul,
.FrEditor .ProseMirror ol{ padding-left: 1.2rem; }
.FrEditor .ProseMirror a{ color: #0012ff; text-decoration: underline; }
.FrEditor .ProseMirror.is-empty::before{
    content: attr(data-placeholder);
    color: #9aa1ac;
    float: left;
    height: 0;
    pointer-events: none;
}

.FrAttach{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin: 2px 0 16px;
    cursor: pointer;
}
.FrAttach:hover{ color: #0012ff; }

.FrCheck{
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
    margin: 4px 0 16px;
}
.FrCheck input{ margin-top: 2px; }
.FrCheck a{ color: #0012ff; text-decoration: none; }
.FrCheck a:hover{ text-decoration: underline; }

.FrButton{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #0012ff;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .15s ease, transform .05s ease;
    font-family: inherit;
}
.FrButton:hover{ background: #000fd6; }
.FrButton:active{ transform: translateY(1px); }
.FrButton[disabled]{ opacity: .6; cursor: not-allowed; }

.FrLoginNote{
    font-size: 13px;
    color: #6b7280;
    background: #f7f8fa;
    border: 1px solid #eceef1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.FrPostingAs{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    margin-bottom: 14px;
}
.FrPostingAs img{ width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%); }

/* ---------- Main : idea list ---------- */
.FrMain{ flex: 1 1 auto; min-width: 0; }

.FrToolbar{
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececef;
    margin-bottom: 4px;
}
.FrToolbarRight{ margin-left: auto; }

.FrDrop{ position: relative; }
.FrDropToggle{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: transparent;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}
.FrDropToggle:hover{ background: #f3f4f6; }
.FrDropToggle i{ font-size: 12px; color: #9aa1ac; }
.FrDropMenu{
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(17,24,39,.12);
    padding: 6px;
    z-index: 40;
    display: none;
}
.FrDropMenuRight{ left: auto; right: 0; }
.FrDrop.is-open .FrDropMenu{ display: block; }
.FrDropMenu a{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    border-radius: 7px;
}
.FrDropMenu a:hover{ background: #f5f6f8; }
.FrDropMenu a.is-active{ color: #0012ff; font-weight: 600; }
.FrDropMenu a{ white-space: nowrap; }
.FrDropMenu{ min-width: 200px; }
.FrDropSep{ height: 1px; background: #eceef1; margin: 6px 4px; }

/* status dots + badge */
.FrStatusDot{
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
    vertical-align: middle;
}
.FrStatusBadge{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 100px;
    white-space: nowrap;
}

/* idea rows */
.FrList{ display: flex; flex-direction: column; }

.FrItem{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 4px;
    border-bottom: 1px solid #f0f0f2;
}
.FrItem:last-child{ border-bottom: none; }

.FrVote{
    flex: 0 0 auto;
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 1px solid #e3e5e9;
    border-radius: 10px;
    background: #fff;
    user-select: none;
    padding: 6px 0;
}
.FrVoteBtn{
    border: none;
    background: transparent;
    cursor: pointer;
    color: #b4bac3;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    transition: color .12s ease;
}
.FrVoteBtn i{ font-size: 17px; line-height: 1; }
.FrVoteUp:hover{ color: #0012ff; }
.FrVoteDown:hover{ color: #ef4444; }
.FrVoteUp.is-active{ color: #0012ff; }
.FrVoteDown.is-active{ color: #ef4444; }
.FrScore{
    font-size: 14px;
    font-weight: 700;
    color: #16181d;
    line-height: 1;
    padding: 1px 0;
}

.FrItemBody{ flex: 1 1 auto; min-width: 0; }
.FrItemTitle{
    font-size: 16px;
    font-weight: 700;
    color: #16181d;
    margin: 0 0 6px;
    text-decoration: none;
    display: inline-block;
}
.FrItemTitle:hover{ color: #0012ff; }
.FrItemDesc{
    font-size: 14px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.FrItemMeta{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
}
.FrAuthor{ display: inline-flex; align-items: center; gap: 7px; }
.FrAuthor img{ width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%); }
.FrAuthor span{ color: #374151; font-weight: 500; }
.FrTag{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9aa1ac;
}
.FrTag::before{
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #c7ccd3;
}
.FrComments{ display: inline-flex; align-items: center; gap: 5px; color: #9aa1ac; }
.FrVotes{ display: inline-flex; align-items: center; gap: 5px; color: #9aa1ac; }
.FrDelete{
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 0;
    padding: 3px 7px;
    font-family: inherit;
    font-size: 13px;
    color: #9aa1ac;
    cursor: pointer;
    border-radius: 6px;
    transition: color .15s ease, background .15s ease;
}
.FrDelete:hover{ color: #e5484d; background: #fdecec; }

.FrEmpty{
    text-align: center;
    color: #9aa1ac;
    font-size: 14px;
    padding: 60px 0;
}

/* =====================================================================
   Detail / item view
   ===================================================================== */
.FrBack{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    margin-bottom: 16px;
}
.FrBack:hover{ color: #0012ff; }

.FrDetailLayout{
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.FrDetailMain{ flex: 1 1 auto; min-width: 0; }
.FrDetailSide{ width: 240px; flex: 0 0 240px; }

.FrDetailHead{
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid #ececef;
}
.FrDetailHeadBody{ flex: 1 1 auto; min-width: 0; }
.FrDetailTitle{
    font-size: 22px;
    font-weight: 700;
    color: #16181d;
    margin: 0 0 10px;
    line-height: 1.3;
}
.FrDetailDesc{
    font-size: 14.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 14px;
}
.FrMetaMuted{ color: #9aa1ac; }

.FrDiscussionTitle{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #9aa1ac;
    margin: 24px 0 14px;
}

/* comment box */
.FrCommentBox{
    border: 1px solid #e3e5e9;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    margin-bottom: 24px;
}
.FrCommentBox .FrEditorBar{ border-radius: 8px 8px 0 0; }
.FrCommentBox .FrTextarea{ min-height: 80px; }
.FrCommentFoot{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}
.FrButtonInline{ width: auto; padding: 9px 22px; font-size: 14px; }
.FrButtonSmall{ padding: 7px 16px; font-size: 13px; }
.FrCommentLogin{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #6b7280;
}

/* comment list */
.FrCommentList{ display: flex; flex-direction: column; gap: 22px; }
.FrComment{ display: flex; align-items: flex-start; gap: 12px; }
.FrCommentAvatar{
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
    flex: 0 0 auto;
}
.FrCommentReply .FrCommentAvatar{ width: 28px; height: 28px; }
.FrCommentBody{ flex: 1 1 auto; min-width: 0; }
.FrCommentHead{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 3px;
}
.FrCommentHead b{ color: #16181d; font-weight: 600; }
.FrCommentHead .FrMetaMuted{ font-size: 12.5px; }
.FrCommentText{
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}
.FrReplyToggle{
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    color: #9aa1ac;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0 0;
    font-family: inherit;
}
.FrReplyToggle:hover{ color: #0012ff; }
.FrReplyForm{ display: none; margin-top: 10px; }
.FrReplyForm.is-open{ display: block; }
.FrReplyForm .FrTextarea{ min-height: 60px; border-radius: 8px; }
.FrReplyForm .FrCommentFoot{ justify-content: flex-end; }
.FrReplies{
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid #f0f0f2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* voters */
.FrVotersTitle{
    font-size: 13px;
    font-weight: 700;
    color: #16181d;
    margin-bottom: 12px;
}
.FrVotersList{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.FrVoterRow{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-radius: 8px;
}
.FrVoterRow:hover{ background: #f6f7f9; }
.FrVoterAvatar{
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
    flex: 0 0 auto;
}
.FrVoterName{
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.FrVoterVote{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
}
.FrVoterVote.is-up{ color: #11823b; background: #e7f6ec; }
.FrVoterVote.is-down{ color: #c0322b; background: #fdecec; }
.FrVotersEmpty{ font-size: 13px; color: #9aa1ac; }

/* ---------- responsive ---------- */
@media screen and (max-width: 860px){
    .FrDetailLayout{ flex-direction: column; gap: 24px; }
    .FrDetailSide{ width: 100%; flex-basis: auto; }
    .FrLayout{ flex-direction: column; gap: 24px; }
    .FrSidebar{ width: 100%; flex-basis: auto; position: static; }
}
