/* =========================
   FORUM PAGE
========================= */

.km-forum-page{

    margin-top:18px;
}

/* =========================
   HEADER
========================= */

.km-forum-header{

    padding:18px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1a73e8
        );

    color:white;

    margin-bottom:18px;

    position:relative;

    overflow:hidden;
}

.km-forum-header::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at top right,
            rgba(255,255,255,.18),
            transparent 40%
        );
}

.km-forum-title{

    position:relative;

    z-index:2;

    font-size:24px;

    font-weight:800;

    margin-bottom:6px;
}

.km-forum-subtitle{

    position:relative;

    z-index:2;

    font-size:13px;

    opacity:.9;

    line-height:1.5;
}

/* =========================
   STATS
========================= */

.km-forum-stats{

    display:grid;

    grid-template-columns:
        repeat(2,1fr);

    gap:12px;

    margin-bottom:18px;
}

.km-forum-stat{

    background:white;

    border-radius:20px;

    padding:16px;

    border:1px solid #edf2f7;

    box-shadow:
        0 2px 8px rgba(0,0,0,.03);
}

.km-forum-stat-label{

    font-size:11px;

    color:#64748b;

    margin-bottom:6px;

    font-weight:700;

    text-transform:uppercase;
}

.km-forum-stat-value{

    font-size:18px;

    font-weight:800;

    color:#0f172a;
}

/* =========================
   SEARCH
========================= */

.km-forum-search{

    position:relative;

    margin-bottom:18px;
}

.km-forum-search input{

    width:100%;

    height:50px;

    border-radius:18px;

    border:1px solid #e2e8f0;

    background:white;

    padding:0 18px 0 50px;

    font-size:14px;

    outline:none;

    transition:.2s ease;
}

.km-forum-search input:focus{

    border-color:#1a73e8;

    box-shadow:
        0 0 0 4px rgba(26,115,232,.1);
}

.km-forum-search-icon{

    position:absolute;

    left:18px;
    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;

    font-size:18px;
}

/* =========================
   THREAD LIST
========================= */

.km-thread-list{

    display:flex;

    flex-direction:column;

    gap:14px;
}

/* =========================
   THREAD ITEM
========================= */

.km-thread-item{

    display:flex;

    gap:14px;

    align-items:flex-start;

    background:white;

    border-radius:26px;

    padding:16px;

    border:1px solid #edf2f7;

    text-decoration:none;

    color:inherit;

    transition:.2s ease;

    box-shadow:
        0 2px 10px rgba(0,0,0,.03);

    overflow:hidden;

    position:relative;
}

.km-thread-item:hover{

    transform:translateY(-2px);

    border-color:#bfdbfe;

    box-shadow:
        0 12px 28px rgba(0,0,0,.07);
}



/* avatar */

.km-thread-avatar{

    width:54px;
    height:54px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

    border:3px solid white;

    box-shadow:
        0 4px 12px rgba(0,0,0,.10);
}

/* body */

.km-thread-body{

    flex:1;

    min-width:0;
}

/* meta */

.km-thread-meta{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    align-items:center;

    margin-bottom:6px;

    font-size:11px;

    color:#64748b;
}

.km-thread-author{

    font-weight:700;

    color:#1e293b;
}

/* title */

.km-thread-title{

    font-size:17px;

    font-weight:800;

    color:#0f172a;

    line-height:1.5;

    margin-bottom:8px;

    letter-spacing:-.2px;
}

/* excerpt */

.km-thread-excerpt{

    font-size:13px;

    color:#64748b;

    line-height:1.6;

    margin-bottom:12px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

/* footer */

.km-thread-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:10px;

    flex-wrap:wrap;
}

/* stats */

.km-thread-stats{

    display:flex;

    gap:14px;

    font-size:11px;

    color:#94a3b8;

    font-weight:700;
}

/* badge */

.km-thread-badge{

    background:#eff6ff;

    color:#1d4ed8;

    font-size:10px;

    font-weight:700;

    padding:5px 10px;

    border-radius:999px;
}

/* =========================
   FLOATING BUTTON
========================= */

.km-forum-fab{

    position:fixed;

    right:18px;
    bottom:160px;

    width:62px;
    height:62px;

    border:none;

    border-radius:50%;

    background:
        linear-gradient(
            135deg,
            #1a73e8,
            #1558b0
        );

    color:white;

    font-size:28px;

    font-weight:300;

    cursor:pointer;

    z-index:900;

    box-shadow:
        0 14px 34px rgba(26,115,232,.35);

    transition:.2s ease;
}

.km-forum-fab:hover{

    transform:scale(1.05);
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .km-thread-item{

        border-radius:22px;
    }

    .km-thread-title{

        font-size:15px;
    }

}