@charset "utf-8";

/* =========================
   Article List (Common)
========================= */

.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ITEM */
.article-list__item {
    display: flex;
    gap: 20px;
    padding: 22px 24px;
    background: #26272B;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
    flex-direction: row-reverse;
    align-items: center;
}

.article-list__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

/* CONTENT */
.article-list__content {
    flex: 1;
    min-width: 0;
}

/* TAG */
.article-list__tags {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 6px;
}

/* TITLE */
.article-list__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

/* EXCERPT */
.article-list__excerpt {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    overflow: hidden;
}

/* META */
.article-list__meta {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.article-list__meta span::before {
    content: '|';
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.35);
}

.article-list__meta span:first-child::before {
    display: none;
}

/* THUMB */
.article-list__thumb {
    width: 240px;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #2a2b30;
}

.article-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* EMPTY */
.article-list__empty {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.5);
}

/* META DETAIL */
.article-list__meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

/* AVATAR */
.article-list__avatar img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ea541a;
    flex-shrink: 0;
}

/* SEPARATOR */
.article-list__meta span:not(:first-child)::before {
    content: '|';
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.35);
}

/* CATEGORY FILTER */
.article-list__category {
    display: flex;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.article-list__category-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
}

.article-list__category-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media(max-width:960px) {
    .article-list__item {
        flex-direction: column-reverse;
    }

    .article-list__thumb {
        width: 100%;
    }

    .article-list__content {
        width: 100%;
    }

    .article-list__item {
        padding: 18px;
    }

    .article-list__title {
        font-size: 18px;
    }

    .article-write-btn {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        bottom: 30px;
    }

    .article-list__category {
        flex-wrap: nowrap;
        overflow-x: auto;
        text-wrap: nowrap;
    }
}