/* Card Container Styling */
.threads-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    background-color: #f8f9fa; /* Sleek, light gray panel background */
    border-radius: 16px;       /* Modern, fluid rounded corners */
    text-decoration: none;     /* Suppresses standard web link underlines */
    border: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

/* Tactile lift animation when user positions pointer over card */
.threads-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    background-color: #f1f3f5; /* Subtle background darkening to show focus */
}

/* Profile Header Row */
.threads-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

/* Fallback Logo Avatar Circle */
.threads-avatar {
    width: 36px;
    height: 36px;
    background-color: #212529; /* Deep dark palette matching Threads branding */
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Metadata Text Wrappers */
.threads-user-meta {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    line-height: 1.3;
}

.threads-username {
    color: #212529;
    font-weight: 700;
    font-size: 0.88rem;
}

.threads-date {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Post Typography */
.threads-text {
    color: #495057;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1; /* Pushes potential attached media items uniformly down */
    
    /* Orderly multi-line truncation string limits blocks to 5 lines maximum */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Media Attachment Containers */
.threads-media-box {
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 200px;
    background-color: #dee2e6;
    border: 1px solid #e9ecef;
}

.threads-media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}