/**
 * FriendLink Feed - Frontend styles
 * Version: 1.0.6 - Card width increased to 960px
 */

/* === Timeline container === */
.flf-timeline {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* === Card === */
.flf-card {
    display: flex !important;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.flf-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* === Card left: avatar column === */
.flf-card-left {
    flex-shrink: 0;
    padding: 16px 0 16px 16px;
    display: flex;
    align-items: flex-start;
}

.flf-card-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f0f0f0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.flf-card-avatar img {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* === Card right: content column === */
.flf-card-right {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 14px 14px;
}

/* Head: site name + date */
.flf-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.flf-card-sitename {
    font-size: 14px;
    font-weight: 600;
    color: #07c160;
}

.flf-card-date {
    font-size: 12px;
    color: #999;
}

/* Title */
.flf-card-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.flf-card-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.flf-card-title a:hover {
    color: #07c160;
    text-decoration: underline;
}

/* Excerpt */
.flf-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
    max-height: 4.8em;
    overflow: hidden;
}

/* Foot */
.flf-card-foot {
    text-align: right;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.flf-card-more {
    font-size: 13px;
    color: #07c160;
    text-decoration: none;
    transition: color 0.2s;
}

.flf-card-more:hover {
    color: #059a4c;
    text-decoration: underline;
}

/* === No posts === */
.flf-noposts {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}

/* === Responsive === */
@media (max-width: 600px) {
    .flf-timeline {
        padding: 12px 10px;
    }

    .flf-card {
        border-radius: 8px;
    }

    .flf-card-left {
        padding: 12px 0 12px 12px;
    }

    .flf-card-avatar {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .flf-card-avatar img {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .flf-card-right {
        padding: 12px 12px 12px 12px;
    }

    .flf-card-title {
        font-size: 15px;
    }

    .flf-card-excerpt {
        font-size: 13px;
    }

    .flf-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}
