/*====================================================

ROOMI 2.0
Forum Post
Version 3.0 FINAL

Part 1
Base / Layout

======================================================*/

/*====================================================
Color System
======================================================*/

:root{

    --post-main:#7da9d8;
    --post-dark:#4f7ca8;
    --post-light:#f5faff;

    --post-bg:#ffffff;
    --post-border:#d7e7f5;

    --post-shadow:
        0 10px 24px rgba(0,0,0,.08);

    --post-radius:18px;

}


/*====================================================
Page
======================================================*/

.post-page{

    width:100%;
    max-width:1400px;

    margin:40px auto;

    padding:0 20px;

    box-sizing:border-box;

}


/*====================================================
Breadcrumb
======================================================*/

.breadcrumb{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    gap:10px;

    margin-bottom:25px;

    font-size:14px;

}

.breadcrumb a{

    color:var(--post-dark);

    text-decoration:none;

    transition:.2s;

}

.breadcrumb a:hover{

    color:var(--post-main);

}

.breadcrumb .current{

    font-weight:700;

    color:#666;

}


/*====================================================
Post Header
======================================================*/

.post-header{

    background:var(--post-bg);

    border:2px solid var(--post-border);

    border-radius:var(--post-radius);

    box-shadow:var(--post-shadow);

    padding:30px 35px;

    margin-bottom:35px;

}


/*====================================================
Header Top
======================================================*/

.post-header-top{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:20px;

}


/*====================================================
Category
======================================================*/

.post-category{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 16px;

    border-radius:999px;

    background:var(--post-main);

    color:#fff;

    font-size:14px;

    font-weight:700;

}


/*====================================================
Header Tools
======================================================*/

.post-tools{

    display:flex;

    align-items:center;

    gap:10px;

}

.icon-btn{

    width:40px;

    height:40px;

    border:none;

    border-radius:12px;

    background:var(--post-light);

    cursor:pointer;

    transition:.25s;

    font-size:16px;

}

.icon-btn:hover{

    background:var(--post-main);

    color:#fff;

}


/*====================================================
Title
======================================================*/

.post-title{

    font-size:34px;

    color:var(--post-dark);

    line-height:1.45;

    margin-bottom:20px;

}


/*====================================================
Meta
======================================================*/

.post-meta{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

    color:#777;

    font-size:15px;

}

.post-meta span{

    display:flex;

    align-items:center;

    gap:6px;

}


/*====================================================
Article Layout
======================================================*/

.post-layout{

    display:grid;

    grid-template-columns:280px minmax(0,1fr);

    gap:30px;

    align-items:start;

}


/*====================================================
Common Card
======================================================*/

.author-card,
.post-content,
.comment-section,
.reply-editor{

    background:var(--post-bg);

    border:2px solid var(--post-border);

    border-radius:var(--post-radius);

    box-shadow:var(--post-shadow);

}/*====================================================

Part 2
Author Card

======================================================*/

/*====================================================
Author Card
======================================================*/

.author-card{

    position:sticky;

    top:25px;

    padding:28px 22px;

    height:fit-content;

}


/*====================================================
Avatar
======================================================*/

.author-avatar{

    width:120px;

    height:120px;

    margin:0 auto 20px;

    border-radius:50%;

    overflow:hidden;

    border:4px solid var(--post-border);

    background:#fff;

}

.author-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}


/*====================================================
Author Name
======================================================*/

.author-name{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin:0 0 14px;

    color:var(--post-dark);

    font-size:26px;

    font-weight:700;

}


/*====================================================
Badge
======================================================*/

.author-badge{

    width:20px;

    height:20px;

    object-fit:contain;

    flex-shrink:0;

}


/*====================================================
Family
======================================================*/

.author-family{

    text-align:center;

    color:#666;

    font-size:15px;

    margin-bottom:10px;

}


/*====================================================
Level
======================================================*/

.author-level{

    text-align:center;

    color:var(--post-main);

    font-size:20px;

    font-weight:700;

    margin-bottom:24px;

}


/*====================================================
Information
======================================================*/

.author-info{

    border-top:1px dashed var(--post-border);

    border-bottom:1px dashed var(--post-border);

    padding:18px 0;

}

.author-info div{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:12px 0;

    color:#555;

    font-size:15px;

}

.author-info strong{

    color:var(--post-dark);

    font-size:16px;

}


/*====================================================
Status
======================================================*/

.author-status{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:8px;

    margin-top:20px;

    font-weight:700;

    font-size:15px;

}

.status-dot{

    width:10px;

    height:10px;

    border-radius:50%;

}

.author-status.online{

    color:#35a853;

}

.author-status.online .status-dot{

    background:#35a853;

}

.author-status.offline{

    color:#999;

}

.author-status.offline .status-dot{

    background:#999;

}


/*====================================================
Hover
======================================================*/

.author-card:hover{

    transform:translateY(-2px);

    transition:.25s;

}
/*====================================================

Part 3
Rich Content

======================================================*/

/*====================================================
Article
======================================================*/

.post-content{

    padding:40px;

    overflow:hidden;

}

.post-body{

    color:#444;

    font-size:17px;

    line-height:2;

    word-break:break-word;

}

.post-body>*{

    margin:24px 0;

}


/*====================================================
Heading
======================================================*/

.post-body h1{

    font-size:34px;

    color:var(--post-dark);

    margin:35px 0 20px;

}

.post-body h2{

    font-size:28px;

    color:var(--post-dark);

    margin:40px 0 18px;

}

.post-body h3{

    font-size:22px;

    color:var(--post-dark);

    margin:30px 0 15px;

}


/*====================================================
Paragraph
======================================================*/

.post-body p{

    margin:18px 0;

}


/*====================================================
List
======================================================*/

.post-body ul,

.post-body ol{

    padding-left:28px;

}

.post-body li{

    margin:10px 0;

}


/*====================================================
Image
======================================================*/

.post-image{

    margin:40px auto;

    text-align:center;

}

.post-image img{

    display:block;

    width:100%;

    max-width:900px;

    height:auto;

    margin:auto;

    border-radius:16px;

    box-shadow:var(--post-shadow);

}

.post-image figcaption{

    margin-top:12px;

    color:#888;

    font-size:14px;

}


/*====================================================
Blockquote
======================================================*/

.post-body blockquote{

    padding:20px 26px;

    border-left:5px solid var(--post-main);

    background:var(--post-light);

    border-radius:10px;

    color:#555;

    font-style:italic;

}


/*====================================================
Horizontal Line
======================================================*/

.post-body hr{

    border:none;

    border-top:2px dashed var(--post-border);

    margin:45px 0;

}


/*====================================================
Link
======================================================*/

.post-body a{

    color:var(--post-main);

    text-decoration:none;

    font-weight:600;

}

.post-body a:hover{

    text-decoration:underline;

}


/*====================================================
Table
======================================================*/

.post-body table{

    width:100%;

    border-collapse:collapse;

    overflow:hidden;

    border-radius:12px;

}

.post-body th{

    background:var(--post-main);

    color:#fff;

}

.post-body th,

.post-body td{

    border:1px solid var(--post-border);

    padding:14px;

    text-align:left;

}


/*====================================================
Code
======================================================*/

.post-body pre{

    padding:20px;

    overflow:auto;

    border-radius:14px;

    background:#272822;

    color:#f8f8f2;

}

.post-body code{

    font-family:

        Consolas,

        Monaco,

        monospace;

}


/*====================================================
Video (Reserved)

YouTube / iframe

======================================================*/

.post-body iframe{

    width:100%;

    aspect-ratio:16/9;

    border:none;

    border-radius:14px;

}


/*====================================================
Selection
======================================================*/

.post-body ::selection{

    background:var(--post-main);

    color:#fff;

}

/*====================================================

Part 4
Comment

======================================================*/

/*====================================================
Comment Section
======================================================*/

.comment-section{

    margin-top:40px;

    padding:35px;

}

.section-title{

    margin-bottom:30px;

    color:var(--post-dark);

    font-size:28px;

}


/*====================================================
Comment List
======================================================*/

.comment-list{

    display:flex;

    flex-direction:column;

    gap:24px;

}


/*====================================================
Comment Card
======================================================*/

.comment-item{

    background:#fff;

    border:2px solid var(--post-border);

    border-radius:16px;

    overflow:hidden;

    transition:.25s;

}

.comment-item:hover{

    border-color:var(--post-main);

    box-shadow:var(--post-shadow);

}


/*====================================================
User Area
======================================================*/

.comment-user{

    display:flex;

    align-items:center;

    gap:18px;

    padding:18px 22px;

    background:var(--post-light);

    border-bottom:1px solid var(--post-border);

}


/*====================================================
Avatar
======================================================*/

.comment-avatar{

    width:68px;

    height:68px;

    border-radius:50%;

    overflow:hidden;

    border:3px solid var(--post-border);

    flex-shrink:0;

}

.comment-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}


/*====================================================
User Info
======================================================*/

.comment-user-info{

    flex:1;

}

.comment-name-row{

    display:flex;

    align-items:center;

    gap:8px;

    margin-bottom:6px;

}

.comment-name{

    font-size:18px;

    font-weight:700;

    color:var(--post-dark);

}

.comment-family{

    color:#666;

    font-size:14px;

    margin-bottom:4px;

}

.comment-level{

    color:var(--post-main);

    font-size:15px;

    font-weight:700;

}


/*====================================================
Comment Main
======================================================*/

.comment-main{

    padding:22px;

}


/*====================================================
Comment Header
======================================================*/

.comment-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

    padding-bottom:12px;

    border-bottom:1px dashed var(--post-border);

    color:#888;

    font-size:14px;

}

.comment-floor{

    font-weight:700;

    color:var(--post-dark);

}


/*====================================================
Comment Text
======================================================*/

.comment-text{

    font-size:16px;

    line-height:1.9;

    color:#444;

}

.comment-text p{

    margin:0 0 18px;

}

.comment-text p:last-child{

    margin-bottom:0;

}


/*====================================================
Image
======================================================*/

.comment-text img{

    display:block;

    width:100%;

    max-width:450px;

    margin:20px auto;

    border-radius:12px;

    box-shadow:var(--post-shadow);

}


/*====================================================
Quote
======================================================*/

.comment-text blockquote{

    margin:18px 0;

    padding:16px 20px;

    background:var(--post-light);

    border-left:4px solid var(--post-main);

    border-radius:10px;

}


/*====================================================
Code
======================================================*/

.comment-text pre{

    margin:20px 0;

    padding:18px;

    overflow:auto;

    border-radius:12px;

    background:#272822;

    color:#f8f8f2;

}

.comment-text code{

    font-family:

        Consolas,

        Monaco,

        monospace;

}
/*====================================================

Part 5
Reply Editor
Navigation

======================================================*/

/*====================================================
Reply Editor
======================================================*/

.reply-editor{

    margin-top:35px;

    padding:35px;

}

.reply-editor h3{

    margin:0 0 20px;

    font-size:24px;

    color:var(--post-dark);

}


/*====================================================
Textarea
======================================================*/

.reply-editor textarea{

    width:100%;

    min-height:180px;

    padding:18px;

    border:2px solid var(--post-border);

    border-radius:14px;

    resize:vertical;

    font-size:16px;

    line-height:1.8;

    font-family:inherit;

    background:#fff;

    transition:.25s;

    box-sizing:border-box;

}

.reply-editor textarea:focus{

    outline:none;

    border-color:var(--post-main);

    box-shadow:

        0 0 0 4px rgba(125,169,216,.15);

}


/*====================================================
Toolbar
======================================================*/

.reply-toolbar{

    display:flex;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;

    margin-top:18px;

}

.reply-toolbar button{

    padding:10px 18px;

    border:none;

    border-radius:10px;

    background:var(--post-light);

    color:var(--post-dark);

    cursor:pointer;

    transition:.25s;

    font-size:15px;

}

.reply-toolbar button:hover{

    background:var(--post-main);

    color:#fff;

}


/*====================================================
Reply Button
======================================================*/

.reply-action{

    display:flex;

    justify-content:flex-end;

    margin-top:24px;

}

.reply-action .btn-primary{

    min-width:140px;

    padding:12px 28px;

}


/*====================================================
Post Navigation
======================================================*/

.post-navigation{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin:40px 0;

}

.nav-button{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    min-width:180px;

    padding:14px 22px;

    background:#fff;

    border:2px solid var(--post-border);

    border-radius:14px;

    color:var(--post-dark);

    text-decoration:none;

    font-weight:700;

    transition:.25s;

    box-shadow:var(--post-shadow);

}

.nav-button:hover{

    background:var(--post-main);

    border-color:var(--post-main);

    color:#fff;

}


/*====================================================
Footer
======================================================*/

.site-footer{

    margin-top:60px;

    padding:30px 20px;

    text-align:center;

    color:#666;

    border-top:2px solid var(--post-border);

}

.footer-inner{

    max-width:1200px;

    margin:auto;

}

.footer-inner p{

    margin:6px 0;

}

/*====================================================

Part 6
Responsive
FINAL

======================================================*/

/*====================================================
Desktop
======================================================*/

@media (max-width:1280px){

.post-page{

    padding:0 24px;

}

.post-layout{

    grid-template-columns:250px minmax(0,1fr);

    gap:24px;

}

.post-title{

    font-size:30px;

}

.post-content{

    padding:35px;

}

}


/*====================================================
Tablet
======================================================*/

@media (max-width:1024px){

.post-layout{

    grid-template-columns:1fr;

    gap:24px;

}

/* 作者卡 */

.author-card{

    position:static;

}

.author-avatar{

    width:90px;

    height:90px;

}

.author-name{

    justify-content:flex-start;

}

.author-family,

.author-level,

.author-status{

    text-align:left;

}

.author-status{

    justify-content:flex-start;

}

/* Header */

.post-header{

    padding:24px;

}

.post-title{

    font-size:28px;

}

/* 文章 */

.post-content{

    padding:28px;

}

/* 留言 */

.comment-user{

    padding:16px 18px;

}

.comment-main{

    padding:18px;

}

/* 回覆 */

.reply-editor{

    padding:24px;

}

/* 導航 */

.post-navigation{

    flex-wrap:wrap;

    justify-content:center;

}

}


/*====================================================
Mobile
======================================================*/

@media (max-width:768px){

.post-page{

    padding:0 15px;

}


/* Header */

.post-header{

    padding:20px;

}

.post-header-top{

    flex-direction:column;

    align-items:flex-start;

}

.post-title{

    font-size:24px;

}

.post-meta{

    gap:12px;

    font-size:14px;

}


/* 作者卡 */

.author-card{

    padding:20px;

    text-align:center;

}

.author-avatar{

    margin:0 auto 18px;

}

.author-name{

    justify-content:center;

}

.author-family,

.author-level,

.author-status{

    justify-content:center;

    text-align:center;

}

.author-info{

    margin-top:18px;

}


/* 文章 */

.post-content{

    padding:22px;

}

.post-body{

    font-size:16px;

    line-height:1.9;

}

.post-body h1{

    font-size:30px;

}

.post-body h2{

    font-size:24px;

}

.post-body h3{

    font-size:20px;

}

.post-image img{

    max-width:100%;

}


/* 表格 */

.post-body table{

    display:block;

    overflow-x:auto;

    white-space:nowrap;

}


/* 留言 */

.comment-section{

    padding:20px;

}

.comment-user{

    flex-direction:column;

    align-items:center;

    text-align:center;

}

.comment-name-row{

    justify-content:center;

}

.comment-family,

.comment-level{

    text-align:center;

}

.comment-main{

    padding:18px;

}

.comment-header{

    flex-direction:column;

    align-items:flex-start;

    gap:8px;

}

.comment-text img{

    max-width:100%;

}


/* 回覆 */

.reply-editor{

    padding:20px;

}

.reply-toolbar{

    gap:8px;

}

.reply-toolbar button{

    flex:1;

    min-width:110px;

}

.reply-action{

    justify-content:center;

}

.reply-action .btn-primary{

    width:100%;

}


/* Navigation */

.post-navigation{

    flex-direction:column;

}

.nav-button{

    width:100%;

}

}


/*====================================================
Small Mobile
======================================================*/

@media (max-width:480px){

.post-title{

    font-size:21px;

}

.post-meta{

    flex-direction:column;

    gap:6px;

}

.post-body{

    font-size:15px;

}

.reply-toolbar{

    flex-direction:column;

}

.reply-toolbar button{

    width:100%;

}

}